/* ═══════════════════════════════════════════════════════════
   HeyYall615 — Rich atmosphere layer (v2 visual)
   Loads after styles.css. Keeps bento IA; adds night material world.
   ═══════════════════════════════════════════════════════════ */

:root {
  --sky-void: #0a0610;
  --neon-amber: #ffb347;
  --neon-pink: #ff6b9d;
  --glass: rgba(250, 248, 242, 0.78);
  --glass-border: rgba(232, 168, 76, 0.35);
  --panel-glow: rgba(232, 168, 76, 0.18);
  --text-on-dark: #f5edd6;
}

/* ─── Atmosphere canvas ─────────────────────────── */
#sky-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html.has-sky body {
  background: transparent;
  color: var(--cream);
}

html.has-sky body::before {
  content: none;
}

/* ─── Header: neon wood sign ────────────────────── */
html.has-sky .site-header {
  background: linear-gradient(180deg, rgba(20, 10, 8, 0.92) 0%, rgba(44, 26, 10, 0.88) 100%);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(232, 168, 76, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 -1px 0 rgba(255, 180, 80, 0.15);
}

html.has-sky .site-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffe4a8 0%, var(--neon-amber) 40%, #ff8c42 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 179, 71, 0.55)) drop-shadow(0 0 28px rgba(255, 120, 40, 0.25));
  animation: sign-flicker 7s ease-in-out infinite;
}

@keyframes sign-flicker {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(255, 179, 71, 0.55)) drop-shadow(0 0 28px rgba(255, 120, 40, 0.25)); opacity: 1; }
  46% { filter: drop-shadow(0 0 14px rgba(255, 179, 71, 0.65)); opacity: 1; }
  47% { opacity: 0.82; filter: drop-shadow(0 0 4px rgba(255, 179, 71, 0.3)); }
  48% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.9; }
  94% { opacity: 1; }
}

html.has-sky .powered-by {
  color: rgba(245, 237, 214, 0.65);
  letter-spacing: 0.14em;
}

html.has-sky .user-name { color: var(--cream); }

/* ─── Neighborhood nav: enamel chips ────────────── */
html.has-sky .neighborhood-nav {
  background: rgba(20, 12, 10, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 169, 125, 0.25);
}

html.has-sky .neighborhood-nav-label { color: rgba(245, 237, 214, 0.55); }

html.has-sky .neighborhood-nav a {
  background: linear-gradient(180deg, rgba(250, 248, 242, 0.95), rgba(232, 220, 196, 0.9));
  border: 1px solid rgba(232, 168, 76, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: var(--brown-dark);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
}

html.has-sky .neighborhood-nav a:hover {
  background: linear-gradient(180deg, var(--amber-light), var(--amber));
  color: #1a0c04;
  border-color: var(--amber-light);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(232, 168, 76, 0.4);
  text-decoration: none;
}

/* ─── Bento panels: glass + wood light ──────────── */
html.has-sky .bento-grid {
  padding: 1rem;
  gap: 0.9rem;
}

html.has-sky .panel {
  --mx: 50%;
  --my: 30%;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 200, 120, 0.14), transparent 42%),
    linear-gradient(155deg, rgba(255, 252, 245, 0.92) 0%, rgba(245, 237, 214, 0.82) 55%, rgba(232, 220, 196, 0.78) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  color: var(--text);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.2s;
  overflow: hidden;
}

html.has-sky .panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.18) 0%, transparent 40%, transparent 60%, rgba(232, 168, 76, 0.06) 100%);
  opacity: 0.9;
  z-index: 1;
}

html.has-sky .panel:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 179, 71, 0.55);
  box-shadow:
    0 8px 12px rgba(0, 0, 0, 0.15),
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 40px var(--panel-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

html.has-sky .panel > * { position: relative; z-index: 2; }

html.has-sky .panel::before {
  /* tape strip — richer */
  background: linear-gradient(90deg, #e8d5a0, #f0e4bc 40%, #d4bd7a 100%);
  opacity: 0.75;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  height: 14px;
  top: -6px;
}

html.has-sky .panel-header {
  background: linear-gradient(180deg, rgba(232, 220, 196, 0.95), rgba(220, 200, 170, 0.88));
  border-bottom: 1px solid rgba(196, 169, 125, 0.45);
}

html.has-sky .panel-header h2 {
  color: var(--brown-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

html.has-sky .panel-body { color: var(--text); }

/* Accent rims per panel type */
html.has-sky .panel-ticker { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(74, 111, 165, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
html.has-sky .panel-concierge { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(232, 168, 76, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
html.has-sky .panel-dice { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(200, 80, 100, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
html.has-sky .panel-tips { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(107, 143, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

/* ─── Ticker as LED bar ─────────────────────────── */
html.has-sky .ticker-scroll {
  background: linear-gradient(180deg, #0d0d12, #1a1a22);
  border-radius: 8px;
  border: 1px solid rgba(74, 111, 165, 0.4);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(74, 111, 165, 0.15);
  height: 2rem;
  padding: 0.25rem 0;
}

html.has-sky .ticker-item { color: #c8e0ff; text-shadow: 0 0 8px rgba(100, 160, 255, 0.5); }
html.has-sky .ticker-item .label { color: var(--neon-amber); text-shadow: 0 0 6px rgba(255, 179, 71, 0.6); }

html.has-sky .ticker-tab {
  background: rgba(44, 26, 10, 0.08);
  border-color: rgba(196, 169, 125, 0.5);
}
html.has-sky .ticker-tab.active {
  background: linear-gradient(180deg, #5a8fd4, var(--denim-dark));
  box-shadow: 0 0 16px rgba(74, 111, 165, 0.45);
  border-color: transparent;
}

/* ─── Dice: stage tray ──────────────────────────── */
html.has-sky .dice-result {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 200, 140, 0.25), transparent 55%),
    linear-gradient(165deg, #2a1810 0%, #1a0e0a 100%);
  color: var(--cream);
  border: 1px solid rgba(232, 168, 76, 0.4);
  border-radius: 12px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.25);
  font-family: var(--marker-font);
  letter-spacing: 0.02em;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

html.has-sky .dice-result::before {
  content: '🎲';
  position: absolute;
  font-size: 3.5rem;
  opacity: 0.08;
  right: 0.5rem;
  bottom: 0;
  transform: rotate(-12deg);
}

html.has-sky .dice-result.rolling {
  animation: dice-shake 0.45s ease-in-out infinite;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(232, 168, 76, 0.35);
}

@keyframes dice-shake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-2deg) scale(1.02); }
  75% { transform: rotate(2deg) scale(1.02); }
}

html.has-sky #dice-roll {
  background: linear-gradient(180deg, var(--amber-light), var(--amber));
  border: none;
  color: #1a0c04;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  box-shadow: 0 4px 14px rgba(200, 123, 43, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
html.has-sky #dice-roll:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200, 123, 43, 0.55);
}

/* ─── Mason jar glass ───────────────────────────── */
html.has-sky .jar-body {
  background: linear-gradient(135deg,
    rgba(180, 220, 190, 0.35) 0%,
    rgba(120, 160, 130, 0.25) 40%,
    rgba(90, 130, 100, 0.4) 100%);
  border: 2px solid rgba(200, 230, 210, 0.5);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.25),
    inset -8px 0 16px rgba(0, 40, 20, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

html.has-sky .jar-lid {
  background: linear-gradient(180deg, #d4d4d4, #8a8a8a);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

html.has-sky .tip-amount-btn,
html.has-sky .tip-preset {
  transition: transform 0.15s, box-shadow 0.15s;
}
html.has-sky .tip-amount-btn:hover,
html.has-sky .tip-preset:hover {
  transform: scale(1.06);
  box-shadow: 0 0 16px rgba(232, 168, 76, 0.4);
}

/* ─── Buttons / chips ───────────────────────────── */
html.has-sky .mood-chip {
  background: linear-gradient(180deg, #fffef9, var(--cream));
  border: 1px solid rgba(196, 169, 125, 0.55);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s, box-shadow 0.15s;
}
html.has-sky .mood-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 168, 76, 0.3);
  border-color: var(--amber);
}

html.has-sky .message.bot .bubble,
html.has-sky .bot-message {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ─── Maps ──────────────────────────────────────── */
html.has-sky .leaflet-map {
  border-radius: 10px;
  border: 1px solid rgba(44, 26, 10, 0.2);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

html.has-sky .map-filter.active {
  box-shadow: 0 0 12px rgba(232, 168, 76, 0.35);
}

/* ─── Footer ────────────────────────────────────── */
html.has-sky .site-footer {
  background: rgba(10, 6, 12, 0.75);
  color: rgba(245, 237, 214, 0.7);
  border-top: 1px solid rgba(232, 168, 76, 0.25);
  backdrop-filter: blur(8px);
}
html.has-sky .site-footer a { color: var(--amber-light); }

/* ─── Speakeasy / eggs ──────────────────────────── */
html.has-sky .egg-btn {
  background: rgba(20, 12, 10, 0.65);
  border: 1px solid rgba(232, 168, 76, 0.35);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

html.has-sky .speakeasy {
  background: linear-gradient(160deg, #1a1018, #0e0a10);
  border: 1px solid rgba(255, 107, 157, 0.35);
  box-shadow: 0 0 40px rgba(255, 80, 120, 0.2);
  color: var(--cream);
}

/* ─── Hero badge under header ───────────────────── */
.vibe-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.45rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 237, 214, 0.55);
  background: linear-gradient(90deg, transparent, rgba(232, 168, 76, 0.08), transparent);
  border-bottom: 1px solid rgba(232, 168, 76, 0.12);
}
.vibe-bar strong {
  color: var(--amber-light);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.vibe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 8px #3ecf8e;
  animation: pulse 1.8s infinite;
}

/* ─── Live tonight rows ─────────────────────────── */
html.has-sky .live-show {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.15rem 0.6rem;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(196, 169, 125, 0.35);
  align-items: start;
}
html.has-sky .live-show .time {
  font-weight: 700;
  color: var(--amber);
  font-size: 0.78rem;
}
html.has-sky .live-show .band {
  font-weight: 600;
  color: var(--brown-dark);
}
html.has-sky .live-show .venue {
  grid-column: 2;
  font-size: 0.78rem;
  color: var(--text-light);
}
html.has-sky .live-show .live-note {
  grid-column: 2;
  font-size: 0.72rem;
  font-family: var(--hand-font);
  color: var(--brown);
  opacity: 0.9;
}
html.has-sky .live-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(44, 26, 10, 0.08);
  color: var(--brown);
  vertical-align: middle;
}
html.has-sky .free-badge {
  grid-column: 2;
  justify-self: start;
  font-size: 0.65rem;
  font-weight: 700;
  color: #2d6a3e;
  background: rgba(107, 143, 94, 0.2);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
}
html.has-sky .empty-state {
  padding: 1rem 0.5rem;
  font-family: var(--hand-font);
  font-size: 1.05rem;
  color: var(--text-light);
  text-align: center;
}

/* ─── Reduced motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html.has-sky .site-title { animation: none; }
  html.has-sky .panel:hover { transform: none; }
  html.has-sky .dice-result.rolling { animation: none; }
  #sky-canvas { display: none; }
  html.reduce-motion body {
    background: linear-gradient(180deg, #1a0f14 0%, #2c1a12 50%, #3d2818 100%);
  }
}

/* Fallback if canvas fails */
html.no-sky body {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(232, 168, 76, 0.15), transparent 40%),
    radial-gradient(ellipse at 80% 20%, rgba(74, 111, 165, 0.12), transparent 45%),
    linear-gradient(180deg, #0f0a12 0%, #2c1a12 55%, #3d2818 100%);
  color: var(--cream);
}
html.no-sky .site-header {
  background: rgba(20, 10, 8, 0.9);
  backdrop-filter: blur(12px);
}
html.no-sky .panel {
  background: rgba(250, 248, 242, 0.88);
  color: var(--text);
}

/* Suggestion card — glass match when sky atmosphere is on */
html.has-sky .suggest-card-inner {
  background:
    linear-gradient(155deg, rgba(255, 252, 245, 0.92) 0%, rgba(245, 237, 214, 0.82) 55%, rgba(232, 220, 196, 0.78) 100%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}
