/* =========================================================
   JayG HTML Helper 42
   Phase 1.5.9 - READABLE FULL CSS

   Includes:
   - Themes
   - HTML Elements mode
   - Build Recipes mode
   - Image zoom
   - Back to Toptop
   - Smaller card fix
   - Pricing Card recipe
   - 1.5.9 Notes button fix
========================================================= */

/* =========================================================
   RESET / BASE
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  --bg-1: #020403;
  --bg-2: #090909;
  --bg-3: #101006;

  --page-text: #ffffff;
  --soft-text: #dbe6f5;
  --muted-text: #b8c2d1;

  --primary: #ffd21f;
  --primary-text-dark: #000000;

  --secondary: #20d36b;
  --secondary-text-dark: #00180b;

  --panel-bg-a: rgba(11, 12, 15, 0.96);
  --panel-bg-b: rgba(7, 21, 16, 0.88);

  --panel-border: rgba(255, 210, 31, 0.22);
  --panel-border-strong: rgba(255, 210, 31, 0.28);

  --soft-card-bg: rgba(255, 255, 255, 0.045);
  --soft-card-border: rgba(255, 255, 255, 0.075);

  --input-border: rgba(255, 210, 31, 0.35);
  --input-bg: rgba(0, 0, 0, 0.55);

  --preview-panel-border: rgba(32, 211, 107, 0.28);

  --glow-left: #00ff99;
  --glow-right: #ffd21f;

  margin: 0;
  min-height: 100vh;

  font-family: Arial, Helvetica, sans-serif;
  color: var(--page-text);

  background:
    radial-gradient(
      circle at top left,
      color-mix(in srgb, var(--glow-left) 12%, transparent),
      transparent 35%
    ),
    radial-gradient(
      circle at top right,
      color-mix(in srgb, var(--glow-right) 10%, transparent),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      var(--bg-1),
      var(--bg-2) 55%,
      var(--bg-3)
    );

  overflow-x: hidden;
}

/* =========================================================
   THEMES
========================================================= */

body.theme-emerald-night {
  --bg-1: #02110d;
  --bg-2: #071a14;
  --bg-3: #0b251e;

  --primary: #32e58d;
  --primary-text-dark: #032514;

  --secondary: #7df7ff;
  --secondary-text-dark: #042629;

  --panel-border: rgba(50, 229, 141, 0.24);
  --panel-border-strong: rgba(50, 229, 141, 0.3);

  --input-border: rgba(50, 229, 141, 0.35);
  --preview-panel-border: rgba(125, 247, 255, 0.28);

  --glow-left: #2fe28a;
  --glow-right: #59f6c3;
}

body.theme-blue-ice {
  --bg-1: #03111b;
  --bg-2: #071b29;
  --bg-3: #0d2a3a;

  --primary: #75cfff;
  --primary-text-dark: #082133;

  --secondary: #9cf1e8;
  --secondary-text-dark: #0d2c28;

  --panel-border: rgba(117, 207, 255, 0.24);
  --panel-border-strong: rgba(117, 207, 255, 0.32);

  --input-border: rgba(117, 207, 255, 0.35);
  --preview-panel-border: rgba(156, 241, 232, 0.28);

  --glow-left: #6ecbff;
  --glow-right: #9cf1e8;
}

body.theme-ruby-steel {
  --bg-1: #13070a;
  --bg-2: #1a0b10;
  --bg-3: #261217;

  --primary: #ff5f84;
  --primary-text-dark: #300612;

  --secondary: #c0d0df;
  --secondary-text-dark: #17242f;

  --panel-border: rgba(255, 95, 132, 0.24);
  --panel-border-strong: rgba(255, 95, 132, 0.3);

  --input-border: rgba(255, 95, 132, 0.35);
  --preview-panel-border: rgba(192, 208, 223, 0.26);

  --glow-left: #ff6288;
  --glow-right: #9eb3c7;
}

body.theme-midnight-violet {
  --bg-1: #0b0718;
  --bg-2: #120b22;
  --bg-3: #1b1230;

  --primary: #b984ff;
  --primary-text-dark: #1d0e35;

  --secondary: #73d6ff;
  --secondary-text-dark: #092235;

  --panel-border: rgba(185, 132, 255, 0.24);
  --panel-border-strong: rgba(185, 132, 255, 0.32);

  --input-border: rgba(185, 132, 255, 0.35);
  --preview-panel-border: rgba(115, 214, 255, 0.28);

  --glow-left: #b984ff;
  --glow-right: #73d6ff;
}

/* =========================================================
   BACKGROUND GLOWS
========================================================= */

.page-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.page-glow-left {
  left: -140px;
  top: 120px;
  background: var(--glow-left);
}

.page-glow-right {
  right: -150px;
  bottom: 40px;
  background: var(--glow-right);
}

/* =========================================================
   APP SHELL
========================================================= */

.app-shell {
  position: relative;
  z-index: 1;

  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 28px;
}

/* =========================================================
   TOP NAV
========================================================= */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  width: 100vw;
  margin: 0 0 30px calc(50% - 50vw);
  padding: 8px max(20px, calc((100vw - 1100px) / 2 + 20px));

  background:
    radial-gradient(circle at top left, rgba(125, 255, 189, 0.12), transparent 48%),
    rgba(2, 8, 5, 0.92);
  border-bottom: 1px solid rgba(247, 211, 107, 0.18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.back-link,
.build-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 34px;
  padding: 0 15px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.back-link {
  color: #f7d36b;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(247, 211, 107, 0.36);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(247, 211, 107, 0.22);
  box-shadow:
    0 0 0 1px rgba(247, 211, 107, 0.04) inset,
    0 10px 22px rgba(0, 0, 0, 0.20);

  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.back-link:visited {
  color: #f7d36b;
}

.back-link:hover,
.back-link:focus-visible {
  color: #ffe38a;
  background: rgba(0, 0, 0, 0.48);
  border-color: rgba(247, 211, 107, 0.62);
  box-shadow:
    0 0 0 1px rgba(247, 211, 107, 0.08) inset,
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(247, 211, 107, 0.10);
  transform: translateY(-1px);
  text-decoration: none;
}

.build-pill {
  color: var(--secondary);
  background: color-mix(
    in srgb,
    var(--secondary) 12%,
    transparent
  );

  border: 1px solid color-mix(
    in srgb,
    var(--secondary) 24%,
    transparent
  );
}

/* =========================================================
   PHASE 1.5.9 NOTES BUTTON FIX
========================================================= */

.top-nav-actions {
  position: absolute;
  right: max(20px, calc((100vw - 1100px) / 2 + 20px));
  top: 50%;
  transform: translateY(-50%);

  display: inline-flex;
  align-items: center;
  justify-content: flex-end;

  gap: 10px;
  flex-wrap: wrap;
}

.notes-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 36px;
  padding: 0 14px;

  border-radius: 999px;
  border: 1px solid color-mix(
    in srgb,
    var(--secondary) 35%,
    transparent
  );

  color: var(--secondary-text-dark);
  background: var(--secondary);

  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;

  box-shadow: 0 0 18px color-mix(
    in srgb,
    var(--secondary) 18%,
    transparent
  );

  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.notes-link:visited {
  color: var(--secondary-text-dark);
}

.notes-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  text-decoration: none;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  text-align: center;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 14px;

  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.45em;
}

.hero h1 {
  margin: 0;

  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1;
  color: var(--primary);

  text-shadow:
    0 0 10px color-mix(in srgb, var(--primary) 35%, transparent),
    0 0 24px color-mix(in srgb, var(--primary) 18%, transparent);
}

.hero-text {
  width: min(800px, 100%);
  margin: 18px auto 0;

  color: var(--soft-text);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* =========================================================
   MODE TABS
========================================================= */

.mode-tabs {
  display: flex;
  justify-content: center;

  gap: 12px;
  margin: 0 0 18px;
}

.mode-tab {
  min-height: 44px;
  padding: 0 18px;

  border-radius: 999px;
  border: 1px solid var(--panel-border);

  color: var(--page-text);
  background: rgba(255, 255, 255, 0.06);
}

.mode-tab.is-active {
  color: var(--primary-text-dark);
  background: var(--primary);
}

/* =========================================================
   CONTROL PANEL
========================================================= */

.control-panel {
  display: grid;
  grid-template-columns: 1fr 230px 210px 130px;

  gap: 16px;
  padding: 18px;
  margin-bottom: 24px;

  background: linear-gradient(
    135deg,
    rgba(9, 12, 14, 0.94),
    rgba(8, 20, 16, 0.88)
  );

  border: 1px solid var(--panel-border-strong);
  border-radius: 24px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.search-box,
.filter-box,
.theme-box,
.reset-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 48px;

  padding: 0 14px;

  color: var(--page-text);
  background: var(--input-bg);

  border: 1px solid var(--input-border);
  border-radius: 16px;

  outline: none;
  font-size: 1rem;
}

select option {
  color: #111111;
}

.reset-btn {
  min-height: 48px;

  color: var(--secondary-text-dark);
  background: var(--secondary);

  border-radius: 16px;
}

/* =========================================================
   MAIN LAYOUT
========================================================= */

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;

  gap: 24px;
  align-items: start;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 12px;
  margin-bottom: 14px;
}

.section-title-row h2 {
  margin: 0;

  color: var(--page-text);
  font-size: 1.45rem;
}

.section-subtitle {
  margin: 6px 0 0;

  color: var(--muted-text);
  font-size: 0.92rem;
}

.result-count {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

/* =========================================================
   CARDS
========================================================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 18px;

  /* Keeps cards from stretching to match the tallest card */
  align-items: start;
}

.html-card {
  display: flex;
  flex-direction: column;

  gap: 14px;
  min-height: auto;
  padding: 20px;

  background: linear-gradient(
    145deg,
    var(--panel-bg-a),
    var(--panel-bg-b)
  );

  border: 1px solid var(--panel-border);
  border-radius: 24px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 14px;
}

.tag-name {
  margin: 0;

  color: var(--primary);
  font-size: 1.55rem;
  line-height: 1.1;
}

.category-pill {
  flex: 0 0 auto;

  padding: 7px 10px;
  border-radius: 999px;

  color: var(--secondary);
  background: color-mix(
    in srgb,
    var(--secondary) 12%,
    transparent
  );

  border: 1px solid color-mix(
    in srgb,
    var(--secondary) 22%,
    transparent
  );

  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-description {
  margin: 0;

  color: #eaf0fb;
  line-height: 1.55;
}

.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recipe-tag {
  display: inline-flex;

  padding: 6px 8px;
  border-radius: 999px;

  color: var(--primary);
  background: color-mix(
    in srgb,
    var(--primary) 12%,
    transparent
  );

  border: 1px solid color-mix(
    in srgb,
    var(--primary) 20%,
    transparent
  );

  font-size: 0.78rem;
  font-weight: 800;
}

.info-block {
  padding: 12px;

  background: var(--soft-card-bg);
  border: 1px solid var(--soft-card-border);
  border-radius: 16px;
}

.info-block h4 {
  margin: 0 0 7px;

  color: var(--secondary);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-block p,
.info-block ol {
  margin: 0;

  color: #dce4f3;
  font-size: 0.92rem;
  line-height: 1.5;
}

.info-block ol {
  padding-left: 18px;
}

/* =========================================================
   CODE BOXES
========================================================= */

.code-box {
  position: relative;
  overflow: hidden;

  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
}

.code-box pre {
  margin: 0;
  padding: 14px;

  overflow-x: auto;
}

.code-box code {
  color: #f7f2d1;
  font-size: 0.9rem;
  line-height: 1.5;

  white-space: pre-wrap;
  word-break: break-word;
}

/* =========================================================
   BUTTONS
========================================================= */

.card-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
  margin-top: 4px;
}

button {
  border: none;
  cursor: pointer;

  font-size: 0.92rem;
  font-weight: 900;
}

.copy-btn,
.preview-btn,
.copy-css-btn {
  min-height: 42px;
  padding: 0 14px;

  border-radius: 14px;
}

.copy-btn {
  color: var(--primary-text-dark);
  background: var(--primary);
}

.copy-css-btn {
  color: #111111;
  background: #ffffff;
}

.preview-btn {
  color: var(--secondary-text-dark);
  background: var(--secondary);
}

/* =========================================================
   PREVIEW PANEL
========================================================= */

.preview-panel {
  position: sticky;
  top: 18px;

  padding: 20px;

  background: linear-gradient(
    150deg,
    rgba(8, 9, 12, 0.98),
    rgba(5, 26, 18, 0.9)
  );

  border: 1px solid var(--preview-panel-border);
  border-radius: 24px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.preview-header {
  margin-bottom: 14px;
}

.preview-label {
  margin: 0 0 8px;

  color: var(--secondary);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.preview-header h2 {
  margin: 0;

  color: var(--primary);
  font-size: 1.25rem;
}

.preview-area {
  min-height: 220px;
  padding: 18px;

  color: #111111;
  background: #ffffff;

  border-radius: 18px;
  overflow: auto;
}

.preview-area h1,
.preview-area h2,
.preview-area h3,
.preview-area p {
  color: #111111;
}

.preview-area a {
  color: #005fc7;
}

.empty-preview {
  color: #555555;
  line-height: 1.5;
}

.preview-note {
  margin-top: 12px;

  color: #c9d5e6;
  font-size: 0.86rem;
  line-height: 1.5;
}

.preview-media-wrap {
  margin-bottom: 14px;
}

.preview-image-button {
  width: 100%;
  padding: 0;

  background: transparent;
  border: none;

  cursor: pointer;
  text-align: center;
}

.preview-photo {
  display: block;

  width: 100%;
  max-height: 190px;

  object-fit: contain;

  background: #ffffff;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
}

.preview-zoom-hint {
  display: inline-block;

  margin-top: 10px;

  color: #005fc7;
  font-size: 0.92rem;
  font-weight: 800;
}

.preview-render {
  margin-top: 10px;
  padding: 14px;

  color: #111111;
  background: #ffffff;

  border: 1px solid #dcdcdc;
  border-radius: 14px;
}

.preview-helper-note {
  margin: 12px 0 0;

  color: #333333;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* =========================================================
   RECIPE PREVIEW BASE
========================================================= */

.recipe-demo-wrap {
  padding: 14px;

  background: #f3f4f6;
  border-radius: 14px;
}

/* =========================================================
   SIMPLE NAVBAR RECIPE PREVIEW
========================================================= */

.simple-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 14px;
  padding: 14px 16px;

  background: #111111;
  border: 1px solid #ffd21f;
  border-radius: 18px;
}

.navbar-logo {
  color: #ffd21f !important;
  font-weight: 900;
  text-decoration: none;
}

.navbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.navbar-links a {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
}

.navbar-links a:hover {
  color: #20d36b !important;
}

/* =========================================================
   INFO CARD RECIPE PREVIEW
========================================================= */

.info-card {
  max-width: 360px;
  padding: 24px;

  background: #111111;
  border: 1px solid #ffd21f;
  border-radius: 22px;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.info-card-tag {
  display: inline-block;

  margin-bottom: 14px;
  padding: 7px 10px;

  color: #20d36b !important;
  background: rgba(32, 211, 107, 0.14);

  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.info-card h2 {
  margin: 0 0 10px;

  color: #ffd21f !important;
  font-size: 1.6rem;
}

.info-card p {
  margin: 0 0 18px;

  color: #f2f2f2 !important;
  line-height: 1.55;
}

.info-card-link {
  display: inline-block;

  padding: 12px 14px;

  color: #000000 !important;
  background: #ffd21f;

  border-radius: 12px;

  font-weight: 900;
  text-decoration: none;
}

/* =========================================================
   BUTTON ROW RECIPE PREVIEW
========================================================= */

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 12px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 0 16px;

  border: 1px solid transparent;
  border-radius: 14px;

  cursor: pointer;

  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  color: #000000 !important;
  background: #ffd21f;
}

.secondary-action {
  color: #00180b !important;
  background: #20d36b;
}

.ghost-action {
  color: #ffffff !important;
  background: #111111;
  border-color: #ffffff;
}

/* =========================================================
   IMAGE CARD RECIPE PREVIEW
========================================================= */

.image-card {
  max-width: 380px;
  overflow: hidden;

  background: #111111;
  border: 1px solid #ffd21f;
  border-radius: 22px;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.image-card img {
  display: block;

  width: 100%;
  height: 190px;

  object-fit: cover;
}

.image-card-content {
  padding: 20px;
}

.image-card h2 {
  margin: 0 0 10px;

  color: #ffd21f !important;
  font-size: 1.45rem;
}

.image-card p {
  margin: 0 0 18px;

  color: #f2f2f2 !important;
  line-height: 1.55;
}

.image-card-link {
  display: inline-block;

  padding: 12px 14px;

  color: #000000 !important;
  background: #ffd21f;

  border-radius: 12px;

  font-weight: 900;
  text-decoration: none;
}

/* =========================================================
   FOOTER RECIPE PREVIEW
========================================================= */

.simple-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;

  gap: 14px;
  padding: 18px 20px;

  background: #111111;
  border: 1px solid #ffd21f;
  border-radius: 18px;
}

.simple-footer p {
  margin: 0;

  color: #f2f2f2 !important;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #ffd21f !important;
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  color: #20d36b !important;
}

/* =========================================================
   TWO-COLUMN LAYOUT RECIPE PREVIEW
========================================================= */

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);

  gap: 14px;
  align-items: start;
  padding: 16px;

  background: #111111;
  border: 1px solid #ffd21f;
  border-radius: 24px;
}

.two-column-text,
.two-column-feature {
  min-width: 0;
}

.layout-kicker {
  margin: 0 0 8px;

  color: #20d36b !important;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.two-column-text h2 {
  margin: 0 0 10px;

  color: #ffd21f !important;
  font-size: 1.08rem;
  line-height: 1.15;
}

.two-column-text p {
  margin: 0 0 12px;

  color: #f2f2f2 !important;
  font-size: 0.86rem;
  line-height: 1.4;
}

.layout-button {
  display: inline-block;

  margin-top: 2px;
  padding: 9px 12px;

  color: #000000 !important;
  background: #ffd21f;

  border-radius: 12px;

  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.two-column-feature {
  padding: 14px;

  background: rgba(32, 211, 107, 0.12);
  border: 1px solid rgba(32, 211, 107, 0.35);
  border-radius: 18px;
}

.two-column-feature h3 {
  margin: 0 0 8px;

  color: #20d36b !important;
  font-size: 0.98rem;
  line-height: 1.2;
}

.two-column-feature p {
  margin: 0;

  color: #f2f2f2 !important;
  font-size: 0.84rem;
  line-height: 1.4;
}

/* =========================================================
   CONTACT FORM RECIPE PREVIEW
========================================================= */

.contact-form {
  display: grid;

  gap: 10px;
  max-width: 420px;
  padding: 22px;

  background: #111111;
  border: 1px solid #ffd21f;
  border-radius: 22px;
}

.contact-form label {
  color: #ffd21f !important;
  font-size: 0.9rem;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;

  color: #111111;
  background: #ffffff;

  border: 1px solid #d6d6d6;
  border-radius: 12px;

  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  min-height: 44px;
  margin-top: 8px;

  color: #000000;
  background: #ffd21f;

  border: none;
  border-radius: 14px;

  cursor: pointer;

  font-weight: 900;
}

/* =========================================================
   SEARCH BOX RECIPE PREVIEW
========================================================= */

.search-box-recipe {
  display: grid;

  gap: 10px;
  max-width: 520px;
  padding: 20px;

  background: #111111;
  border: 1px solid #ffd21f;
  border-radius: 22px;
}

.search-box-recipe label {
  color: #ffd21f !important;
  font-weight: 900;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input {
  flex: 1;
  min-width: 0;

  padding: 12px;

  color: #111111;
  background: #ffffff;

  border: 1px solid #d6d6d6;
  border-radius: 12px;

  font: inherit;
}

.search-row input:focus {
  outline: 3px solid rgba(32, 211, 107, 0.35);
  border-color: #20d36b;
}

.search-row button {
  padding: 0 16px;

  color: #000000;
  background: #ffd21f;

  border: none;
  border-radius: 12px;

  cursor: pointer;

  font-weight: 900;
}

/* =========================================================
   PRICING CARD RECIPE PREVIEW
========================================================= */

.pricing-card {
  max-width: 360px;
  padding: 24px;

  background: #111111;
  border: 1px solid #ffd21f;
  border-radius: 24px;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.pricing-badge {
  display: inline-block;

  margin: 0 0 14px;
  padding: 7px 10px;

  color: #20d36b !important;
  background: rgba(32, 211, 107, 0.14);

  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pricing-card h2 {
  margin: 0 0 10px;

  color: #ffd21f !important;
  font-size: 1.6rem;
}

.pricing-price {
  margin: 0 0 10px;

  color: #ffffff !important;
  font-size: 2.2rem;
  font-weight: 900;
}

.pricing-summary {
  margin: 0 0 16px;

  color: #f2f2f2 !important;
  line-height: 1.55;
}

.pricing-features {
  margin: 0 0 20px;
  padding-left: 20px;

  color: #f2f2f2 !important;
  line-height: 1.7;
}

.pricing-button {
  display: inline-block;

  padding: 12px 14px;

  color: #000000 !important;
  background: #ffd21f;

  border-radius: 12px;

  font-weight: 900;
  text-decoration: none;
}

/* =========================================================
   IMAGE ZOOM
========================================================= */

body.zoom-open {
  overflow: hidden;
}

.image-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 22px;

  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.image-zoom-overlay.is-open {
  display: flex;
}

.image-zoom-dialog {
  position: relative;

  width: min(960px, 100%);
  max-height: 92vh;
  padding: 22px 22px 18px;

  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
}

.image-zoom-close {
  position: absolute;
  top: 10px;
  right: 12px;

  width: 42px;
  height: 42px;

  color: #111111;
  background: #ffffff;

  border-radius: 999px;

  font-size: 1.5rem;
  line-height: 1;
}

.image-zoom-img {
  display: block;

  width: 100%;
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;

  object-fit: contain;

  background: #ffffff;
  border-radius: 14px;
}

.image-zoom-caption {
  margin: 14px 0 0;

  color: #d7e2f0;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;

  display: none;
  align-items: center;

  min-height: 42px;
  padding: 0 14px;

  color: var(--primary-text-dark);
  background: var(--primary);

  border-radius: 999px;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.back-to-top-btn.is-visible {
  display: inline-flex;
}

/* =========================================================
   FOOTER / NO RESULTS
========================================================= */

.footer {
  margin-top: 32px;

  color: var(--muted-text);
  font-size: 0.9rem;
  text-align: center;
}

.no-results {
  grid-column: 1 / -1;

  padding: 24px;

  color: #f2f2f2;
  background: rgba(255, 255, 255, 0.045);

  border: 1px dashed color-mix(
    in srgb,
    var(--primary) 35%,
    transparent
  );

  border-radius: 20px;

  text-align: center;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1120px) {
  .control-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 0;
  }

  .top-nav {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 24px;
    padding: 10px 12px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .top-nav-actions {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    justify-content: center;
  }

  .control-panel {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .mode-tabs {
    flex-direction: column;
  }

  .eyebrow {
    letter-spacing: 0.25em;
  }

  .simple-navbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .two-column-layout {
    grid-template-columns: 1fr;
  }

  .image-zoom-dialog {
    padding: 18px 16px 14px;
  }
}


/* Top nav project text */
.top-nav-actions h5 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.45rem 0.9rem;
  border-radius: 999px;

  color: #ffd84a;
  background: #101812;
  border: 1px solid rgba(255, 216, 74, 0.75);

  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1;

  text-shadow: none;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

footer {
  display: block;
  width: 100%;
  text-align: center;
  padding: 24px 0;
  color: #b9d8ff;
  font-size: 14px;
}
