/* Custom site overrides and enhancements */

/* 1) Brand accent: warm amber-orange for a friendlier feel */
:root {
  /* Cool, subtle, slightly futuristic (indigo/blue-violet) */
  --primary-hue: 262deg;           /* light mode accent hue */
  --primary-saturation: 86%;
  --primary-lightness: 56%;
}
.dark {
  /* Dark mode: a touch brighter for contrast */
  --primary-hue: 262deg;           /* dark mode accent hue */
  --primary-saturation: 90%;
  --primary-lightness: 62%;
}

/* 2) Glassy navbar with subtle blur and border */
.nav-container-blur {
  backdrop-filter: saturate(115%) blur(6px);
  -webkit-backdrop-filter: saturate(115%) blur(6px);
  border-bottom: 1px solid hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) / 50 * 39) / 0.08);
}

/* 3) Post list cards */
.post-card {
  position: relative;
  border-radius: 12px;
  border: 1px solid hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) / 50 * 39) / 0.08);
  background: linear-gradient(
      180deg,
      hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) / 50 * 45) / 0.02),
      transparent 70%
    );
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}
.post-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0,0,0,.05), 0 0 0 1px hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) / 50 * 45) / 0.08);
  border-color: hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) + ((100% - var(--primary-lightness)) / 50) * 20) / 0.18);
  background: linear-gradient(
      180deg,
      hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) / 50 * 45) / 0.03),
      transparent 80%
    );
}
.post-card h3 a {
  /* Subtle: neutral title with a faint neon underline on hover */
  color: inherit;
  text-decoration: none;
  position: relative;
}
.post-card h3 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) / 50 * 60) / 0.0) 10%,
    hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) / 50 * 65) / 0.25) 50%,
    hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) / 50 * 60) / 0.0) 90%,
    transparent 100%
  );
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.post-card:hover h3 a::after,
.post-card h3 a:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.post-card p:last-child a {
  color: hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) / 50 * 45));
}

/* 4) Tag chips */
.tag-chip {
  border: 1px solid hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) / 50 * 39) / 0.12);
  background-color: hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) / 50 * 45) / 0.06);
  transition: all 120ms ease;
}
.tag-chip:hover {
  border-color: hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) + ((100% - var(--primary-lightness)) / 50) * 20) / 0.22);
  background-color: hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) / 50 * 48) / 0.10);
  box-shadow: 0 0 0 2px hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) / 50 * 45) / 0.08);
}

/* 5) Content polish: headings underline + image treatment */
.content h2, .content h3 {
  position: relative;
}
.content h2::after, .content h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    hsl(var(--primary-hue) 100% 50%),
    hsl(var(--primary-hue) calc(var(--primary-saturation) - 30%) 65%)
  );
}
.content img,
.prose img {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* 6) Improve readable measure slightly */
.content p, .content li {
  max-width: 70ch;
}

/* 7) Keep existing extended override working */
.first-entry.home-info {
  padding: 10px 0;
  margin: 0;
  min-height: 0;
}

/* 8) Dark mode text tone: soften pure white to light grey */
html.dark {
  --text-strong: hsl(220 12% 88%);
  --text-base:   hsl(220 12% 82%);
  --text-muted:  hsl(220 10% 70%);
}
html.dark body { color: var(--text-base); }
html.dark main, html.dark article, html.dark .content { color: var(--text-base); }
html.dark p, html.dark li { color: var(--text-base); }

/* Tame common near-white utility classes in dark mode */
html.dark .hx-text-slate-100,
html.dark .hx-text-gray-100,
html.dark .hx-text-white { color: var(--text-strong) !important; }
html.dark .hx-text-slate-400,
html.dark .hx-text-gray-400 { color: var(--text-muted) !important; }

/* 9) Subtle geometric background (faint dots) */
:root {
  --bg-dot-size: 1.8px;      /* dot radius */
  --bg-dot-step: 26px;       /* spacing */
  --bg-dot-color: rgba(0,0,0,0.028); /* light mode dot */
}
.dark {
  --bg-dot-size: 1.8px;
  --bg-dot-step: 26px;
  --bg-dot-color: rgba(255,255,255,0.04); /* dark mode dot */
}
body {
  /* Keep theme background colors; add faint dots on top */
  background-image: radial-gradient(var(--bg-dot-color) var(--bg-dot-size), transparent var(--bg-dot-size));
  background-size: var(--bg-dot-step) var(--bg-dot-step);
  background-attachment: fixed;
  background-position: top left;
}

/* ========================================
   APHORISMS COLLECTION STYLING
   ======================================== */

.aphorisms-collection {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 100%;
  margin: 2rem 0;
}

/* Base aphorism styling */
.aphorism {
  margin: 0;
  padding: 1.25rem 1.5rem;
  position: relative;
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.03);
  border-radius: 6px;
}

.aphorism__quote {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.aphorism__text {
  display: block;
  line-height: 1.6;
  font-size: 1.05rem;
}

.aphorism__attribution {
  margin-top: 0.75rem;
  display: block;
  font-size: 0.9rem;
  opacity: 0.7;
}

.aphorism__author {
  font-weight: 500;
}

.aphorism__author::before {
  content: "\2014\00a0";
}

.aphorism__source {
  font-style: italic;
}

.aphorism__source::before {
  content: ", ";
}

/* Style 1: Default - clean card with left accent */
.aphorism--default {
  border-left: 3px solid hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.4);
}
.aphorism--default .aphorism__text {
  font-style: italic;
}

/* Style 2: Centered - dramatic centered presentation */
.aphorism--centered {
  text-align: center;
  padding: 2rem;
}
.aphorism--centered .aphorism__text {
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
}

/* Style 3: Serif - classic book typography */
.aphorism--serif {
  font-family: Georgia, "Times New Roman", Times, serif;
  background: transparent;
  border-top: 1px solid hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.1);
  border-bottom: 1px solid hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.1);
  border-radius: 0;
  padding: 1.5rem 0;
}
.aphorism--serif .aphorism__text {
  font-size: 1.1rem;
  line-height: 1.7;
}
.aphorism--serif .aphorism__author {
  font-variant: small-caps;
  letter-spacing: 0.05em;
}

/* Style 4: Minimal - stark, right-aligned */
.aphorism--minimal {
  text-align: right;
  background: transparent;
  padding: 1rem 0;
}
.aphorism--minimal .aphorism__text {
  font-size: 1rem;
}

/* Style 5: Bold - strong statement style */
.aphorism--bold {
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.06);
  padding: 1.75rem;
}
.aphorism--bold .aphorism__text {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Style 6: Indent - hanging quote mark */
.aphorism--indent {
  padding-left: 2.5rem;
  position: relative;
}
.aphorism--indent::before {
  content: "\201C";
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  font-size: 2rem;
  font-family: Georgia, serif;
  color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.3);
  line-height: 1;
}

/* Style 7: Compact - inline author */
.aphorism--compact {
  padding: 1rem 1.25rem;
}
.aphorism--compact .aphorism__text {
  font-size: 0.95rem;
  display: inline;
}
.aphorism--compact .aphorism__attribution {
  display: inline;
  margin-top: 0;
  margin-left: 0.25rem;
}

/* Style 8: Whisper - delicate, light */
.aphorism--whisper {
  background: transparent;
  text-align: center;
  padding: 1.5rem 2rem;
}
.aphorism--whisper .aphorism__text {
  font-weight: 300;
  font-style: italic;
  opacity: 0.8;
}
.aphorism--whisper .aphorism__attribution {
  opacity: 0.5;
}

/* Style 9: Boxed - stronger border */
.aphorism--boxed {
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.02);
  border: 1px solid hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.12);
  border-radius: 8px;
  padding: 1.5rem;
}

/* Style 10: Wide - full width dramatic */
.aphorism--wide {
  background: transparent;
  padding: 2.5rem 1rem;
  border-top: 1px solid hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.15);
  border-bottom: 1px solid hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.15);
  border-radius: 0;
  text-align: center;
}
.aphorism--wide .aphorism__text {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Section headers within aphorisms */
.aphorisms-section-title {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.15);
  color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness));
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .aphorism {
    padding: 1rem 1.25rem;
  }
  .aphorism--centered .aphorism__text,
  .aphorism--wide .aphorism__text {
    font-size: 1.05rem;
  }
  .aphorism--bold .aphorism__text {
    font-size: 1.1rem;
  }
  .aphorism--minimal {
    text-align: left;
  }
}

/* ========================================
   RECIPE CARD STYLING
   ======================================== */

.recipe-card {
  margin: 2.5rem 0;
  padding: 0;
  border-radius: 12px;
  border: 2px solid hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.25);
  background: linear-gradient(
    180deg,
    hsl(var(--primary-hue) 30% 97%),
    hsl(var(--primary-hue) 20% 99%) 100%
  );
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 0 0 1px hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.05);
}

.recipe-card__header {
  padding: 1.5rem 1.75rem 1.25rem;
  background: linear-gradient(
    135deg,
    hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.12),
    hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.06)
  );
  border-bottom: 2px solid hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.15);
}

.recipe-card__title {
  margin: 0 0 0.75rem 0;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) * 0.85));
}

/* Override the default h3::after underline inside recipe cards */
.recipe-card__title::after {
  display: none;
}

.recipe-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  opacity: 0.85;
}

.recipe-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.recipe-card__meta-item strong {
  font-weight: 500;
  opacity: 0.7;
}

.recipe-card__content {
  padding: 1.5rem 1.75rem 1.75rem;
}

/* Section headers within recipe (h4 for sub-sections) */
.recipe-card__content h4 {
  margin: 1.75rem 0 0.75rem 0;
  padding-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness));
  border-bottom: 1px solid hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.12);
}

.recipe-card__content h4:first-child {
  margin-top: 0;
}

/* Sub-sub-sections (h5) for ingredient groups */
.recipe-card__content h5 {
  margin: 1.25rem 0 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  font-style: italic;
  color: inherit;
  opacity: 0.85;
}

/* Ingredient lists */
.recipe-card__content ul {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.recipe-card__content ul li {
  margin: 0.35rem 0;
  padding-left: 0.25rem;
  line-height: 1.5;
}

/* Nested ingredient lists (for sub-ingredients) */
.recipe-card__content ul ul {
  margin: 0.25rem 0 0.5rem 0;
  list-style-type: circle;
}

/* Instruction lists */
.recipe-card__content ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  counter-reset: recipe-step;
  list-style: none;
}

.recipe-card__content ol li {
  margin: 0.75rem 0;
  padding-left: 0.5rem;
  line-height: 1.6;
  position: relative;
  counter-increment: recipe-step;
}

.recipe-card__content ol li::before {
  content: counter(recipe-step);
  position: absolute;
  left: -1.75rem;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness));
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.1);
  border-radius: 50%;
}

/* Paragraphs within recipe */
.recipe-card__content p {
  margin: 0.75rem 0;
  line-height: 1.6;
}

.recipe-card__content p:first-child {
  margin-top: 0;
}

.recipe-card__content p:last-child {
  margin-bottom: 0;
}

/* Bold text for ingredient quantities */
.recipe-card__content strong {
  font-weight: 600;
}

/* Dark mode adjustments */
.dark .recipe-card {
  background: linear-gradient(
    180deg,
    hsl(var(--primary-hue) 25% 18%),
    hsl(var(--primary-hue) 20% 14%) 100%
  );
  border-color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.35);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.1);
}

.dark .recipe-card__header {
  background: linear-gradient(
    135deg,
    hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.18),
    hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.1)
  );
  border-bottom-color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.2);
}

.dark .recipe-card__title {
  color: hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) * 1.1));
}

.dark .recipe-card__content h4 {
  border-bottom-color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.2);
}

/* Responsive adjustments for recipe cards */
@media (max-width: 640px) {
  .recipe-card {
    margin: 1.5rem 0;
    border-radius: 8px;
  }

  .recipe-card__header {
    padding: 1.25rem 1.25rem 1rem;
  }

  .recipe-card__title {
    font-size: 1.2rem;
  }

  .recipe-card__meta {
    font-size: 0.8rem;
    gap: 0.4rem 1rem;
  }

  .recipe-card__content {
    padding: 1.25rem;
  }

  .recipe-card__content h4 {
    font-size: 0.9rem;
  }

  .recipe-card__content ol li::before {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.75rem;
    left: -1.5rem;
  }
}

/* ========================================
   TIMELINE COMPONENT
   ======================================== */

.timeline {
  margin: 2rem 0;
}

.timeline__header {
  margin: 0 0 1.5rem 0;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Override default h3::after underline inside timeline headers */
.timeline__header::after {
  display: none;
}

.timeline__container {
  position: relative;
  padding-left: 28px;
}

/* The vertical line */
.timeline__line {
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.2);
  border-radius: 1px;
}

/* Individual event */
.timeline__event {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline__event:last-child {
  padding-bottom: 0;
}

/* The dot marker */
.timeline__dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness));
  border-radius: 50%;
  border: 2px solid hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.3);
  box-shadow: 0 0 0 3px hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.08);
}

.timeline__content {
  padding-left: 4px;
}

.timeline__date {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness));
  margin-bottom: 0.25rem;
}

.timeline__title {
  margin: 0 0 0.35rem 0;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Override default h4 styles */
.timeline__title::after {
  display: none;
}

.timeline__description {
  font-size: 0.925rem;
  line-height: 1.55;
  opacity: 0.85;
}

.timeline__description p {
  margin: 0.35rem 0;
}

.timeline__description p:first-child {
  margin-top: 0;
}

.timeline__description p:last-child {
  margin-bottom: 0;
}

.timeline__error {
  color: #c53030;
  font-style: italic;
}

/* Dark mode adjustments */
.dark .timeline__line {
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.25);
}

.dark .timeline__dot {
  border-color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.4);
  box-shadow: 0 0 0 3px hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.12);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .timeline__container {
    padding-left: 24px;
  }

  .timeline__dot {
    left: -24px;
    width: 8px;
    height: 8px;
  }

  .timeline__event {
    padding-bottom: 1.25rem;
  }

  .timeline__title {
    font-size: 1rem;
  }

  .timeline__description {
    font-size: 0.875rem;
  }
}

/* ========================================
   RECIPE CAROUSEL (Wishlist)
   ======================================== */

.recipe-carousel {
  margin: 2.5rem 0;
  position: relative;
}

.recipe-carousel__header {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Override default h3::after */
.recipe-carousel__header::after {
  display: none;
}

.recipe-carousel__track-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.recipe-carousel__track-wrapper {
  overflow: hidden;
  min-width: 0;
}

.recipe-carousel__track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.recipe-carousel__card {
  flex: 0 0 260px;
  min-width: 260px;
  max-width: 260px;
}

@media (max-width: 768px) {
  .recipe-carousel__card {
    flex: 0 0 220px;
    min-width: 220px;
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .recipe-carousel__card {
    flex: 0 0 200px;
    min-width: 200px;
    max-width: 200px;
  }
}

.recipe-carousel__card-inner {
  height: 100%;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border: 1px solid hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.15);
  background: linear-gradient(
    160deg,
    hsl(var(--primary-hue) 30% 97%),
    hsl(var(--primary-hue) 20% 99%) 100%
  );
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.recipe-carousel__card-inner:hover {
  transform: translateY(-2px);
  border-color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.recipe-carousel__cuisine {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness));
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.1);
  border-radius: 4px;
}

.recipe-carousel__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Override default h4::after */
.recipe-carousel__title::after {
  display: none;
}

.recipe-carousel__description {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-carousel__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  opacity: 0.65;
}

.recipe-carousel__time::before {
  content: "\23F1 ";
}

.recipe-carousel__difficulty::before {
  content: "\2728 ";
}

/* Navigation buttons */
.recipe-carousel__nav {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.08);
  border: 1px solid hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness));
}

.recipe-carousel__nav:hover:not(:disabled) {
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.15);
  border-color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.3);
}

.recipe-carousel__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Dot indicators */
.recipe-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.recipe-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.recipe-carousel__dot:hover {
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.4);
}

.recipe-carousel__dot.active {
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness));
  transform: scale(1.2);
}

.recipe-carousel__error {
  color: #c53030;
  font-style: italic;
}

/* Dark mode */
.dark .recipe-carousel__card-inner {
  background: linear-gradient(
    160deg,
    hsl(var(--primary-hue) 25% 18%),
    hsl(var(--primary-hue) 20% 14%) 100%
  );
  border-color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.2);
}

.dark .recipe-carousel__card-inner:hover {
  border-color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.dark .recipe-carousel__nav {
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.12);
  border-color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.2);
}

.dark .recipe-carousel__nav:hover:not(:disabled) {
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.2);
}

@media (max-width: 640px) {
  .recipe-carousel__nav {
    width: 32px;
    height: 32px;
  }

  .recipe-carousel__nav svg {
    width: 18px;
    height: 18px;
  }
}

/* Make cards clickable */
.recipe-carousel__card-inner {
  cursor: pointer;
}

/* Recipe Modal */
.recipe-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.recipe-modal.active {
  display: flex;
}

.recipe-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.recipe-modal__content {
  position: relative;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.recipe-modal__header {
  padding: 1.5rem 1.5rem 0;
}

.recipe-modal__cuisine {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness));
  background: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness) / 0.1);
  border-radius: 4px;
}

.recipe-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.recipe-modal__meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

.recipe-modal__time::before {
  content: "\23F1 ";
}

.recipe-modal__difficulty::before {
  content: "\2728 ";
}

.recipe-modal__body {
  padding: 0 1.5rem 1.5rem;
}

.recipe-modal__description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin: 0 0 1.5rem;
  font-style: italic;
}

.recipe-modal__section {
  margin-bottom: 1.5rem;
}

.recipe-modal__section:last-child {
  margin-bottom: 0;
}

.recipe-modal__section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness));
}

.recipe-modal__ingredients {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #444;
  padding-left: 1.25rem;
  margin: 0;
}

.recipe-modal__ingredients li {
  margin-bottom: 0.25rem;
}

.recipe-modal__method {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #444;
  padding-left: 1.25rem;
  margin: 0;
}

.recipe-modal__method li {
  margin-bottom: 0.75rem;
}

.recipe-modal__method strong {
  color: #222;
}

.recipe-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #666;
  transition: background 0.2s, color 0.2s;
}

.recipe-modal__close:hover {
  background: #f0f0f0;
  color: #333;
}

/* Dark mode modal */
.dark .recipe-modal__content {
  background: hsl(var(--primary-hue) 20% 12%);
}

.dark .recipe-modal__description {
  color: #aaa;
}

.dark .recipe-modal__ingredients,
.dark .recipe-modal__method {
  color: #ccc;
}

.dark .recipe-modal__method strong {
  color: #fff;
}

.dark .recipe-modal__meta {
  color: #999;
}

.dark .recipe-modal__close {
  color: #999;
}

.dark .recipe-modal__close:hover {
  background: hsl(var(--primary-hue) 20% 20%);
  color: #fff;
}

/* ========================================
   IZZY MODE - MAXIMUM RAINBOW UNICORN CHAOS
   For a 3-year-old who loves ALL THE SPARKLES
   ======================================== */

/* Toggle Button - Minimalist style in Dad Mode */
.izzy-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary-hue) 30% 40%);
  background: transparent;
  border: 1px solid hsl(var(--primary-hue) 20% 80%);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.izzy-mode-toggle:hover {
  background: hsl(var(--primary-hue) 30% 96%);
  border-color: hsl(var(--primary-hue) 30% 70%);
}

.izzy-mode-toggle .emoji {
  font-size: 1rem;
}

/* Rainbow button ONLY when Izzy Mode is active (for the "Dad Mode" button) */
body.izzy-mode .izzy-mode-toggle {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg,
    #ff0080, #ff00ff, #8000ff, #0080ff, #00ff80, #ffff00, #ff8000, #ff0080);
  background-size: 400% 100%;
  animation: izzy-button-rainbow 2s linear infinite;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  box-shadow:
    0 0 20px rgba(255, 0, 255, 0.5),
    0 0 40px rgba(255, 0, 128, 0.3),
    0 0 60px rgba(128, 0, 255, 0.2);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes izzy-button-rainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

body.izzy-mode .izzy-mode-toggle:hover {
  transform: scale(1.15) rotate(-3deg);
  box-shadow:
    0 0 30px rgba(255, 0, 255, 0.7),
    0 0 60px rgba(255, 0, 128, 0.5),
    0 0 90px rgba(128, 0, 255, 0.3);
}

body.izzy-mode .izzy-mode-toggle .emoji {
  font-size: 1.5rem;
  animation: izzy-emoji-bounce 0.5s ease-in-out infinite;
}

@keyframes izzy-emoji-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Izzy Mode Active State - RAINBOW EXPLOSION */
body.izzy-mode {
  --izzy-pink: #ff69b4;
  --izzy-purple: #9932cc;
  --izzy-magenta: #ff00ff;
  --izzy-violet: #8a2be2;
  --izzy-rainbow-1: #ff0080;
  --izzy-rainbow-2: #ff8c00;
  --izzy-rainbow-3: #ffff00;
  --izzy-rainbow-4: #00ff00;
  --izzy-rainbow-5: #00bfff;
  --izzy-rainbow-6: #8000ff;
  --izzy-rainbow-7: #ff00ff;
  background: linear-gradient(
    45deg,
    #ffe4f3 0%,
    #e8d5f9 15%,
    #d4e5ff 30%,
    #d4fff4 45%,
    #ffffd4 60%,
    #ffe4d4 75%,
    #ffd4e8 90%,
    #ffe4f3 100%
  ) !important;
  background-size: 400% 400% !important;
  background-attachment: fixed !important;
  animation: izzy-bg-rainbow 8s ease infinite !important;
}

@keyframes izzy-bg-rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glitter overlay effect */
body.izzy-mode::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 0, 255, 0.15) 0%, transparent 15%),
    radial-gradient(circle at 80% 20%, rgba(255, 105, 180, 0.15) 0%, transparent 15%),
    radial-gradient(circle at 40% 70%, rgba(138, 43, 226, 0.12) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 20, 147, 0.15) 0%, transparent 15%),
    radial-gradient(circle at 10% 90%, rgba(186, 85, 211, 0.12) 0%, transparent 20%),
    radial-gradient(circle at 60% 10%, rgba(255, 0, 128, 0.1) 0%, transparent 25%);
  pointer-events: none;
  z-index: -1;
  animation: izzy-glitter-shift 10s ease-in-out infinite;
}

@keyframes izzy-glitter-shift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Rainbow stripe overlay */
body.izzy-mode::after {
  content: "";
  position: fixed;
  top: 0;
  left: -100%;
  width: 300%;
  height: 8px;
  background: linear-gradient(
    90deg,
    #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0080ff, #8000ff, #ff00ff,
    #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0080ff, #8000ff, #ff00ff,
    #ff0000
  );
  animation: izzy-rainbow-stripe 3s linear infinite;
  pointer-events: none;
  z-index: 9999;
}

@keyframes izzy-rainbow-stripe {
  0% { transform: translateX(0); }
  100% { transform: translateX(33.33%); }
}

/* Cards get MAXIMUM rainbow treatment */
body.izzy-mode .book-card,
body.izzy-mode .album-card {
  position: relative;
  border: 4px solid transparent;
  background:
    linear-gradient(#fff5fa, #faf5ff) padding-box,
    linear-gradient(90deg,
      #ff0080, #ff00ff, #8000ff, #0080ff, #00ff80, #ffff00, #ff8000, #ff0080
    ) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: izzy-card-rainbow 2s linear infinite;
  border-radius: 20px;
  box-shadow:
    0 0 15px rgba(255, 0, 255, 0.3),
    0 0 30px rgba(255, 105, 180, 0.2),
    inset 0 0 20px rgba(255, 182, 193, 0.3);
  transform-style: preserve-3d;
}

body.izzy-mode .book-card:hover,
body.izzy-mode .album-card:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow:
    0 0 25px rgba(255, 0, 255, 0.5),
    0 0 50px rgba(255, 105, 180, 0.3),
    inset 0 0 30px rgba(255, 182, 193, 0.4);
}

@keyframes izzy-card-rainbow {
  0% { background-position: 0 0, 0% 50%; }
  100% { background-position: 0 0, 300% 50%; }
}

/* Multiple sparkles on cards! */
body.izzy-mode .book-card::before,
body.izzy-mode .album-card::before {
  content: "✨🦄✨";
  position: absolute;
  top: -15px;
  right: -10px;
  font-size: 1.3rem;
  animation: izzy-sparkle-mega 1s ease-in-out infinite;
  z-index: 10;
  filter: drop-shadow(0 0 5px rgba(255, 0, 255, 0.8));
}

body.izzy-mode .book-card::after,
body.izzy-mode .album-card::after {
  content: "⭐🌈⭐";
  position: absolute;
  bottom: -15px;
  left: -10px;
  font-size: 1.1rem;
  animation: izzy-sparkle-mega 1.3s ease-in-out infinite reverse;
  z-index: 10;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
}

@keyframes izzy-sparkle-mega {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(255, 0, 255, 0.8)) brightness(1);
  }
  25% { transform: scale(1.2) rotate(10deg); }
  50% {
    transform: scale(1.4) rotate(-5deg);
    opacity: 0.8;
    filter: drop-shadow(0 0 15px rgba(255, 0, 255, 1)) brightness(1.3);
  }
  75% { transform: scale(1.1) rotate(5deg); }
}

/* Card titles - animated rainbow text! */
body.izzy-mode .book-card__title,
body.izzy-mode .album-card__title {
  background: linear-gradient(
    90deg,
    #ff0080, #ff00ff, #8000ff, #0080ff, #00ff80, #ff0080
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  animation: izzy-title-rainbow 2s linear infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 2px rgba(255, 0, 255, 0.5));
}

@keyframes izzy-title-rainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Notes get purple sparkle treatment */
body.izzy-mode .book-card__note,
body.izzy-mode .album-card__note {
  color: #9932cc;
  font-style: normal;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(153, 50, 204, 0.5);
}

/* Page title - MEGA RAINBOW */
body.izzy-mode h1 {
  background: linear-gradient(
    90deg,
    #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0080ff, #8000ff, #ff00ff, #ff0080, #ff0000
  );
  background-size: 500% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: izzy-h1-rainbow 3s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.5));
  font-size: 2.5rem !important;
}

@keyframes izzy-h1-rainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 500% 50%; }
}

/* LOTS of floating decorations! */
body.izzy-mode .izzy-decorations {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.izzy-decorations {
  display: none;
}

.izzy-decoration {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.85;
  filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.6));
}

.izzy-decoration:nth-child(1) {
  top: 8%; left: 5%;
  animation: izzy-float-1 4s ease-in-out infinite;
}
.izzy-decoration:nth-child(2) {
  top: 15%; right: 8%;
  animation: izzy-float-2 5s ease-in-out infinite;
}
.izzy-decoration:nth-child(3) {
  top: 50%; left: 2%;
  animation: izzy-float-3 6s ease-in-out infinite;
}
.izzy-decoration:nth-child(4) {
  top: 65%; right: 4%;
  animation: izzy-float-1 4.5s ease-in-out infinite;
}
.izzy-decoration:nth-child(5) {
  top: 35%; left: 6%;
  animation: izzy-float-2 5.5s ease-in-out infinite;
}
.izzy-decoration:nth-child(6) {
  top: 80%; right: 10%;
  animation: izzy-float-3 4s ease-in-out infinite;
}

@keyframes izzy-float-1 {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-15px) rotate(10deg) scale(1.1); }
  50% { transform: translateY(-25px) rotate(-5deg) scale(1.2); }
  75% { transform: translateY(-10px) rotate(15deg) scale(1.1); }
}

@keyframes izzy-float-2 {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  33% { transform: translateY(-20px) rotate(-15deg) scale(1.15); }
  66% { transform: translateY(-30px) rotate(10deg) scale(1.25); }
}

@keyframes izzy-float-3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -20px) rotate(20deg); }
  50% { transform: translate(-5px, -35px) rotate(-10deg); }
  75% { transform: translate(15px, -15px) rotate(15deg); }
}

/* Hide dad's content, show Izzy's content */
body.izzy-mode .dad-content {
  display: none !important;
}

body.izzy-mode .izzy-content {
  display: block !important;
}

.izzy-content {
  display: none;
}

/* Izzy Mode intro text - SUPER SPARKLY */
body.izzy-mode .izzy-intro {
  display: block;
  text-align: center;
  padding: 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 105, 180, 0.3),
    rgba(186, 85, 211, 0.3),
    rgba(138, 43, 226, 0.25),
    rgba(255, 20, 147, 0.3)
  );
  border-radius: 30px;
  border: 4px solid;
  border-image: linear-gradient(90deg, #ff69b4, #9932cc, #8a2be2, #ff69b4) 1;
  box-shadow:
    0 0 20px rgba(255, 105, 180, 0.4),
    0 0 40px rgba(186, 85, 211, 0.3),
    inset 0 0 30px rgba(255, 182, 193, 0.3);
  animation: izzy-intro-glow 2s ease-in-out infinite;
}

@keyframes izzy-intro-glow {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(255, 105, 180, 0.4),
      0 0 40px rgba(186, 85, 211, 0.3),
      inset 0 0 30px rgba(255, 182, 193, 0.3);
  }
  50% {
    box-shadow:
      0 0 35px rgba(255, 105, 180, 0.6),
      0 0 60px rgba(186, 85, 211, 0.5),
      inset 0 0 40px rgba(255, 182, 193, 0.4);
  }
}

.izzy-intro {
  display: none;
}

.izzy-intro p {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ff1493, #9400d3, #8a2be2, #ff1493);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: izzy-intro-text 3s linear infinite;
  margin: 0;
}

@keyframes izzy-intro-text {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.izzy-intro .emoji-big {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  animation: izzy-emoji-dance 1s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(255, 0, 255, 0.7));
}

@keyframes izzy-emoji-dance {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  50% { transform: scale(1.2) rotate(5deg); }
  75% { transform: scale(1.1) rotate(-3deg); }
}

/* Play Random button in Izzy Mode */
body.izzy-mode .play-random-btn {
  background: linear-gradient(90deg, #ff69b4, #ff00ff, #8a2be2, #ff69b4);
  background-size: 300% 100%;
  animation: izzy-button-rainbow 2s linear infinite;
  border: 3px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
}

/* Make the header rainbow too! */
body.izzy-mode .header {
  background: linear-gradient(
    90deg,
    rgba(255, 182, 193, 0.9),
    rgba(221, 160, 221, 0.9),
    rgba(173, 216, 230, 0.9),
    rgba(255, 218, 185, 0.9),
    rgba(255, 182, 193, 0.9)
  ) !important;
  background-size: 400% 100% !important;
  animation: izzy-header-rainbow 5s linear infinite !important;
}

@keyframes izzy-header-rainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* Nav links get purple treatment */
body.izzy-mode .nav__link {
  color: #9932cc !important;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(153, 50, 204, 0.3);
}

body.izzy-mode .nav__link:hover {
  color: #ff1493 !important;
  text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

/* Cursor sparkle trail (adds sparkle emoji after cursor position) */
body.izzy-mode * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext y='24' font-size='24'%3E🦄%3C/text%3E%3C/svg%3E") 16 16, auto !important;
}

/* ========================================
   RESTAURANT FINDER
   Wabi-sabi themed with burnt orange accents
   ======================================== */

.restaurant-finder {
  margin: 2.5rem auto;
  max-width: 550px;
}

.restaurant-finder__input-section {
  margin-bottom: 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.04) 0%, rgba(234, 88, 12, 0.02) 100%);
  border: 1px solid rgba(194, 65, 12, 0.12);
  border-radius: 16px;
}

.restaurant-finder__label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #9a3412;
}

.dark .restaurant-finder__label {
  color: #fb923c;
}

.restaurant-finder__input-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.restaurant-finder__input {
  flex: 1;
  min-width: 200px;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(194, 65, 12, 0.2);
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  transition: all 0.2s ease;
}

.dark .restaurant-finder__input {
  background: rgba(30, 27, 26, 0.8);
  border-color: rgba(251, 146, 60, 0.25);
  color: #e5e7eb;
}

.restaurant-finder__input:focus {
  outline: none;
  border-color: #c2410c;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.1);
}

.restaurant-finder__input::placeholder {
  color: #9ca3af;
}

.restaurant-finder__button {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.25);
}

.restaurant-finder__button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.35);
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.restaurant-finder__button:active:not(:disabled) {
  transform: translateY(0);
}

.restaurant-finder__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.restaurant-finder__hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #78716c;
  font-style: italic;
}

.dark .restaurant-finder__hint {
  color: #a8a29e;
}

/* Result section */
.restaurant-finder__result {
  margin-top: 1.5rem;
}

.restaurant-finder__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #c2410c;
}

.dark .restaurant-finder__loading {
  color: #fb923c;
}

.restaurant-finder__spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(194, 65, 12, 0.15);
  border-top-color: #c2410c;
  border-radius: 50%;
  animation: restaurant-finder-spin 0.8s linear infinite;
}

@keyframes restaurant-finder-spin {
  to { transform: rotate(360deg); }
}

/* Restaurant card */
.restaurant-finder__card {
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(194, 65, 12, 0.1);
  background: #fffcfa;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 8px 20px -4px rgba(194, 65, 12, 0.08);
  overflow: hidden;
  animation: restaurant-card-appear 0.4s ease-out;
}

.dark .restaurant-finder__card {
  background: linear-gradient(160deg, #1c1917 0%, #0c0a09 100%);
  border-color: rgba(251, 146, 60, 0.15);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 8px 20px -4px rgba(0, 0, 0, 0.3);
}

@keyframes restaurant-card-appear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.restaurant-finder__card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.06) 0%, rgba(234, 88, 12, 0.02) 100%);
  border-bottom: 1px solid rgba(194, 65, 12, 0.08);
}

.dark .restaurant-finder__card-header {
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.12) 0%, rgba(234, 88, 12, 0.05) 100%);
  border-bottom-color: rgba(251, 146, 60, 0.1);
}

.restaurant-finder__category {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  border-radius: 6px;
}

.restaurant-finder__distance {
  font-size: 0.85rem;
  font-weight: 600;
  color: #9a3412;
}

.dark .restaurant-finder__distance {
  color: #fb923c;
}

/* Card body content */
.restaurant-finder__name {
  margin: 0 0 0.5rem 0;
  padding: 1.25rem 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #292524;
}

.dark .restaurant-finder__name {
  color: #fafaf9;
}

/* Override default h3::after */
.restaurant-finder__name::after {
  display: none;
}

.restaurant-finder__vibe {
  margin: 0 0 1.25rem 0;
  padding: 0 1.5rem;
  font-size: 1rem;
  font-style: italic;
  color: #78716c;
  line-height: 1.5;
}

.dark .restaurant-finder__vibe {
  color: #a8a29e;
}

.restaurant-finder__details {
  margin: 0 1.5rem 1.25rem;
  padding: 1rem;
  background: rgba(194, 65, 12, 0.03);
  border: 1px solid rgba(194, 65, 12, 0.08);
  border-radius: 10px;
}

.dark .restaurant-finder__details {
  background: rgba(251, 146, 60, 0.05);
  border-color: rgba(251, 146, 60, 0.1);
}

.restaurant-finder__neighborhood {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #44403c;
}

.dark .restaurant-finder__neighborhood {
  color: #e7e5e4;
}

.restaurant-finder__icon {
  font-size: 1rem;
}

.restaurant-finder__address {
  margin: 0;
  font-size: 0.875rem;
  color: #78716c;
  padding-left: 1.5rem;
}

.dark .restaurant-finder__address {
  color: #a8a29e;
}

.restaurant-finder__link {
  display: inline-flex;
  align-items: center;
  margin: 0 1.5rem 1.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #9a3412;
  background: transparent;
  border: 1px solid rgba(194, 65, 12, 0.25);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.restaurant-finder__link:hover {
  background: rgba(194, 65, 12, 0.06);
  border-color: rgba(194, 65, 12, 0.4);
  color: #9a3412;
}

.dark .restaurant-finder__link {
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.3);
}

.dark .restaurant-finder__link:hover {
  background: rgba(251, 146, 60, 0.08);
  border-color: rgba(251, 146, 60, 0.5);
  color: #fb923c;
}

/* Error state */
.restaurant-finder__error {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.15);
  color: #b91c1c;
}

.dark .restaurant-finder__error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.restaurant-finder__error p {
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .restaurant-finder {
    margin: 1.5rem auto;
  }

  .restaurant-finder__input-section {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .restaurant-finder__input-group {
    flex-direction: column;
  }

  .restaurant-finder__input {
    min-width: 100%;
  }

  .restaurant-finder__button {
    width: 100%;
  }

  .restaurant-finder__card {
    border-radius: 12px;
  }

  .restaurant-finder__card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
  }

  .restaurant-finder__name {
    font-size: 1.3rem;
    padding: 1rem 1.25rem 0;
  }

  .restaurant-finder__vibe {
    padding: 0 1.25rem;
    font-size: 0.95rem;
  }

  .restaurant-finder__details {
    margin: 0 1.25rem 1rem;
    padding: 0.875rem;
  }

  .restaurant-finder__link {
    margin: 0 1.25rem 1.25rem;
  }
}
