/* Theme kit "noche": bars, cocktails, wine, late hours. Near-black, gold and
   violet, Bodoni Moda titles over DM Sans. Scoped to .theme-kit--noche
   (test/lib/theme_kit_css_scope_convention_test.rb); layout comes from the
   Tailwind utilities in app/views/theme_kits/_band.html.erb, this sheet only
   carries the kit's look and motion. */

.theme-kit--noche {
  --tk-display: 'Bodoni Moda', 'Noto Serif', 'Noto Serif Armenian', 'Noto Naskh Arabic', 'Noto Serif Hebrew',
    'Noto Serif JP', 'Noto Serif SC', 'Noto Serif KR', 'Noto Serif Thai', 'Noto Serif Devanagari',
    'Noto Serif Bengali', 'Noto Serif Tamil', 'Noto Serif Telugu', 'Noto Serif Ethiopic', Georgia, serif;
  --tk-band-ink: #f6e3b4;
  --tk-band-scrim: 16, 15, 20;
}

/* Text never sits on the art: a near-solid wash of the band colour under it. */
.theme-kit--noche .tk-band__scrim {
  background: linear-gradient(90deg, rgba(var(--tk-band-scrim), .95) 0%, rgba(var(--tk-band-scrim), .88) 42%, rgba(var(--tk-band-scrim), 0) 68%);
}
.theme-kit--noche[dir="rtl"] .tk-band__scrim {
  background: linear-gradient(270deg, rgba(var(--tk-band-scrim), .95) 0%, rgba(var(--tk-band-scrim), .88) 42%, rgba(var(--tk-band-scrim), 0) 68%);
}

.theme-kit--noche .tk-name {
  font-family: var(--tk-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 9cqw, 2.875rem);
  line-height: 1.02;
  color: var(--tk-band-ink);
  /* The glow is a filter: the name's line-clamp would cut a text-shadow into a box. */
  filter: drop-shadow(0 0 18px rgba(227, 188, 106, .45));
}
.theme-kit--noche .tk-band--short .tk-name { font-size: 1.75rem; }
.theme-kit--noche .tk-band__kicker {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #e3bc6a;
}

.theme-kit--noche .tk-tag { background: #2a2630; color: #e9dcc2; }

/* The string of bulbs breathes three times, then stays lit (rule 3). */
@keyframes tk-noche-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.theme-kit--noche .tk-band:not(.tk-still) .tk-noche-twinkle { animation: tk-noche-twinkle 1.6s ease-in-out 3; }
@media (prefers-reduced-motion: reduce) {
  .theme-kit--noche .tk-noche-twinkle { animation: none !important; }
}

/* ---- Phase 3 variants and skins (THEMES_IMPLEMENTATION.md) ---- */

/* Variant noche.vinoteca: wine bar. Playfair Display, blush on burgundy. */
.theme-kit--noche.theme-kit--noche-vinoteca {
  --tk-display: 'Playfair Display', 'Noto Serif', 'Noto Serif Armenian', 'Noto Naskh Arabic', 'Noto Serif Hebrew',
    'Noto Serif JP', 'Noto Serif SC', 'Noto Serif KR', 'Noto Serif Thai', 'Noto Serif Devanagari',
    'Noto Serif Bengali', 'Noto Serif Tamil', 'Noto Serif Telugu', 'Noto Serif Ethiopic', Georgia, serif;
  --tk-band-ink: #f6ede4;
  --tk-band-scrim: 39, 13, 24;
}
.theme-kit--noche.theme-kit--noche-vinoteca .tk-name {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 9cqw, 2.75rem);
  line-height: 1.02;
  letter-spacing: normal;
  text-transform: none;
  filter: none;
}
.theme-kit--noche.theme-kit--noche-vinoteca .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--noche.theme-kit--noche-vinoteca .tk-band__kicker {
  font-family: inherit;
  font-weight: 400;
  letter-spacing: .2em;
  color: #f0c4ae;
}

.theme-kit--noche.theme-kit--noche-vinoteca .tk-tag { background: #4a2533; color: #f6ede4; }

/* Variant noche.izakaya: Japanese tavern. Dela Gothic One, neon on navy. */
.theme-kit--noche.theme-kit--noche-izakaya {
  --tk-display: 'Dela Gothic One', 'Noto Sans', 'Noto Sans Armenian', 'Noto Sans Arabic', 'Noto Sans Hebrew',
    'Noto Sans JP', 'Noto Sans SC', 'Noto Sans KR', 'Noto Sans Thai', 'Noto Sans Devanagari',
    'Noto Sans Bengali', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Ethiopic', system-ui, sans-serif;
  --tk-band-ink: #ffffff;
  --tk-band-scrim: 12, 15, 32;
}
.theme-kit--noche.theme-kit--noche-izakaya .tk-name {
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.75rem, 8cqw, 2.375rem);
  line-height: 1.08;
  letter-spacing: normal;
  text-transform: none;
  filter: drop-shadow(0 0 14px rgba(255, 79, 163, .55));
}
.theme-kit--noche.theme-kit--noche-izakaya .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--noche.theme-kit--noche-izakaya .tk-band__kicker {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: .12em;
  color: #7ff0e4;
}

.theme-kit--noche.theme-kit--noche-izakaya .tk-tag { background: #262a3f; color: #7ff0e4; }

/* Variant noche.cachimba: hookah lounge. Bodoni, gold and violet glow. */
.theme-kit--noche.theme-kit--noche-cachimba {
  --tk-display: 'Bodoni Moda', 'Noto Serif', 'Noto Serif Armenian', 'Noto Naskh Arabic', 'Noto Serif Hebrew',
    'Noto Serif JP', 'Noto Serif SC', 'Noto Serif KR', 'Noto Serif Thai', 'Noto Serif Devanagari',
    'Noto Serif Bengali', 'Noto Serif Tamil', 'Noto Serif Telugu', 'Noto Serif Ethiopic', Georgia, serif;
  --tk-band-ink: #f6e3b4;
  --tk-band-scrim: 17, 16, 21;
}
.theme-kit--noche.theme-kit--noche-cachimba .tk-name {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 9cqw, 2.875rem);
  line-height: 1.02;
  letter-spacing: normal;
  text-transform: none;
  filter: drop-shadow(0 0 18px rgba(227, 188, 106, .45)) drop-shadow(0 0 36px rgba(176, 124, 198, .35));
}
.theme-kit--noche.theme-kit--noche-cachimba .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--noche.theme-kit--noche-cachimba .tk-band__kicker {
  font-family: inherit;
  font-weight: 400;
  letter-spacing: .2em;
  color: #e3bc6a;
}

.theme-kit--noche.theme-kit--noche-cachimba .tk-tag { background: #2a2630; color: #e9dcc2; }

/* Photographic noche.foto: the photo fills the band under the shared wash
   (base.css, .tk-band--photo); here only its letters. */
.theme-kit--noche.theme-kit--noche-foto {
  --tk-display: 'Cormorant Garamond', 'Noto Serif', 'Noto Serif Armenian', 'Noto Naskh Arabic', 'Noto Serif Hebrew',
    'Noto Serif JP', 'Noto Serif SC', 'Noto Serif KR', 'Noto Serif Thai', 'Noto Serif Devanagari',
    'Noto Serif Bengali', 'Noto Serif Tamil', 'Noto Serif Telugu', 'Noto Serif Ethiopic', Georgia, serif;
  --tk-band-ink: #f6e3b4;
  --tk-band-scrim: 11, 10, 13;
}
.theme-kit--noche.theme-kit--noche-foto .tk-name {
  font-style: normal;
  font-weight: 500;
  font-size: clamp(2rem, 9.5cqw, 3rem);
  line-height: 1.02;
  letter-spacing: normal;
  text-transform: none;
  filter: none;
}
.theme-kit--noche.theme-kit--noche-foto .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--noche.theme-kit--noche-foto .tk-band__kicker {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: .16em;
  color: #e3bc6a;
}

.theme-kit--noche.theme-kit--noche-foto .tk-tag { background: #2b2730; color: #f4efe6; }

/* Cachimba smoke drifts up once. Motion uses the individual translate/scale
   properties, never `transform`, so the band's RTL mirror is kept. */
.theme-kit--noche .tk-noche-smoke { opacity: .9; }
@keyframes tk-noche-smoke {
  0% { translate: 0 0; opacity: .9; }
  55% { translate: 3% -7%; opacity: 0; }
  56% { translate: -1% 4%; opacity: 0; }
  100% { translate: 0 0; opacity: .9; }
}
.theme-kit--noche.theme-kit--noche-cachimba .tk-band:not(.tk-still) .tk-noche-smoke { animation: tk-noche-smoke 4.6s ease-in-out 1; }
@media (prefers-reduced-motion: reduce) {
  .theme-kit--noche .tk-noche-smoke { animation: none !important; }
}

/* ---- Menu, in the kit template (base.css; docs/strategy/THEMES_FIDELIDAD.md) ---- */

/* Noche: a cocktail bar. Bodoni titles in champagne with a soft glow and a gold
   hairline, DM Sans text, gold prices with the pour beside them, gold chips. */
.theme-kit--noche.theme-kit {
  --theme-font: 'DM Sans', var(--tk-sans);
  --tk-h2-size: 1.5rem;
  --tk-h2-weight: 600;
  --tk-h2-color: #f6e3b4;
  --tk-name-weight: 500;
  --tk-name-size: 1.0625rem;
  --tk-rule: #2a2630;
  --tk-chip-bg: transparent;
  --tk-chip-border: #3a3442;
  --tk-chip-active-bg: #e3bc6a;
  --tk-chip-active-border: #e3bc6a;
  --tk-chip-active-color: #17141b;
  --tk-tag-bg: #2a2630;
  --tk-tag-color: #e9d9b0;
}
.theme-kit--noche .tk-section__title { text-shadow: 0 0 22px rgba(227, 188, 106, .28); }
.theme-kit--noche .tk-section__title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin-top: .625rem;
  background: linear-gradient(90deg, #e3bc6a, rgba(227, 188, 106, 0));
}
.theme-kit--noche[dir="rtl"] .tk-section__title::after { background: linear-gradient(270deg, #e3bc6a, rgba(227, 188, 106, 0)); }

/* Noche · vinoteca: a wine bar. Playfair titles, each section a burgundy box,
   rosé prices, the region or vintage as an italic second line. */
.theme-kit--noche.theme-kit--noche-vinoteca {
  --theme-font: 'Karla', var(--tk-sans);
  --tk-h2-color: #f6ede4;
  --tk-name-weight: 700;
  --tk-card-bg: #351722;
  --tk-card-border: #4a2533;
  --tk-card-radius: .875rem;
  --tk-rule: #4a2533;
  --tk-chip-border: #5e3343;
  --tk-chip-active-bg: #f0c4ae;
  --tk-chip-active-border: #f0c4ae;
  --tk-chip-active-color: #24101a;
  --tk-tag-bg: #4a2533;
  --tk-tag-color: #f6dcd0;
}
.theme-kit--noche.theme-kit--noche-vinoteca .tk-section__title { text-shadow: none; }
.theme-kit--noche.theme-kit--noche-vinoteca .tk-section__title::after { background: linear-gradient(90deg, #f0c4ae, rgba(240, 196, 174, 0)); }
.theme-kit--noche.theme-kit--noche-vinoteca .tk-dish__alt,
.theme-kit--noche.theme-kit--noche-vinoteca .tk-section__alt { font-style: italic; }

/* Noche · izakaya: neon over a dark street. Dela Gothic titles, every dish a
   dark card, cyan prices, a pink chip that glows. */
.theme-kit--noche.theme-kit--noche-izakaya {
  --theme-font: 'Inter', var(--tk-sans);
  --tk-h2-size: 1.375rem;
  --tk-h2-weight: 400;
  --tk-h2-color: #ffffff;
  --tk-name-weight: 600;
  --tk-card-bg: #161929;
  --tk-card-border: #262a3f;
  --tk-card-radius: .75rem;
  --tk-chip-border: #3a3f5c;
  --tk-chip-active-bg: #ff4fa3;
  --tk-chip-active-border: #ff4fa3;
  --tk-chip-active-color: #0d0f1a;
  --tk-tag-bg: #262a3f;
  --tk-tag-color: #7ff0e4;
}
.theme-kit--noche.theme-kit--noche-izakaya .tk-section__title { text-shadow: 0 0 18px rgba(127, 240, 228, .35); }
.theme-kit--noche.theme-kit--noche-izakaya .tk-section__title::after { width: 1.75rem; height: 3px; border-radius: 3px; background: #ff4fa3; box-shadow: 0 0 10px rgba(255, 79, 163, .7); }
.theme-kit--noche.theme-kit--noche-izakaya [data-section-nav-target="pill"].bg-theme-text { box-shadow: 0 0 14px rgba(255, 79, 163, .55); }

/* Noche · cachimba: a lounge. Bodoni titles, each section a smoky box. */
.theme-kit--noche.theme-kit--noche-cachimba {
  --tk-h2-weight: 700;
  --tk-name-weight: 700;
  --tk-card-bg: #1a1820;
  --tk-card-border: #2a2630;
  --tk-card-radius: .875rem;
  --tk-card-shadow: 0 18px 40px -24px rgba(176, 124, 198, .45);
  --tk-h2-size: 1.375rem;
}

/* Noche · foto: the noche carta under a photographic header. */
.theme-kit--noche.theme-kit--noche-foto {
  --tk-rule: #2b2730;
  --tk-h2-spacing: .04em;
}
