/* ============================================================
   DAYSTILLAI.COM — main.css
   Default theme: LIGHT (all pages)
   Dark theme:    Add class="theme-dark" to <body> (Halloween only)
   Each page sets --accent in its own <style> block.
   Font loaded here — remove Google Fonts <link> tags from HTML.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Nunito:wght@400;600;700;800&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ══════════════════════════════════════════
   LIGHT THEME — default for ALL pages
══════════════════════════════════════════ */
:root {
  --bg:           #f7f4f0;
  --surface:      #ffffff;
  --card:         #ffffff;
  --border:       #e8e0d8;
  --text:         #1a1410;
  --text-body:    #4a3f35;
  --muted:        #9a8878;
  --shadow:       rgba(0,0,0,0.07);

  --accent:       #ff6b00;
  --accent-glow:  #ff8c2a;
  --purple:       #8b2fc9;
  --purple-light: #8b2fc9;

  --font-display: 'Creepster', cursive;
  --font-body:    'Nunito', sans-serif;

  --nav-bg:        rgba(255,255,255,0.93);
  --nav-border:    rgba(255,107,0,0.15);
  --nav-link:      #6b5a4e;
  --nav-drawer-bg: rgba(255,255,255,0.98);
}

/* ══════════════════════════════════════════
   DARK THEME — only Halloween page uses this
   Add class="theme-dark" to <body>
══════════════════════════════════════════ */
body.theme-dark {
  --bg:           #0a0508;
  --surface:      #130c10;
  --card:         #1c1018;
  --border:       #2e1a28;
  --text:         #f0dfc8;
  --text-body:    #b09070;
  --muted:        #8a7060;
  --shadow:       rgba(0,0,0,0.5);

  --purple-light: #c56fff;

  --nav-bg:        rgba(10,5,8,0.92);
  --nav-border:    rgba(255,107,0,0.15);
  --nav-link:      #c4a882;
  --nav-drawer-bg: rgba(10,5,8,0.97);
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  height: 100%;
  overflow-x: hidden;
  line-height: 1.75;
  transition: background 0.3s;

  /* Sticky footer */
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); }

/* ── NAVBAR ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 1px 12px var(--shadow);
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
  text-decoration: none;
  text-shadow: 0 0 14px rgba(255,107,0,0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo span { color: var(--purple-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--nav-link);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(255,107,0,0.1);
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-link);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    position: absolute;
    top: 58px; left: 0; right: 0;
    background: var(--nav-drawer-bg);
    border-bottom: 1px solid var(--nav-border);
    padding: 12px 20px 18px;
    box-shadow: 0 8px 24px var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 12px; font-size: 0.95rem; }
  .nav-burger { display: flex; }
}

/* ── PAGE WRAPPER ── */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 80px;
  flex: 1;
  width: 100%;
}

.wrap--narrow {
  max-width: 760px;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 8px;
}

body.theme-dark h1 {
  text-shadow: 0 0 30px rgba(255,107,0,0.45);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--accent);
  margin-bottom: 12px;
}

body.theme-dark h2 {
  text-shadow: 0 0 18px rgba(255,107,0,0.2);
}

h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  margin-bottom: 6px;
}

p { color: var(--text-body); font-size: 0.97rem; margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }
ul { color: var(--text-body); font-size: 0.97rem; padding-left: 20px; margin-bottom: 12px; }
ul li { margin-bottom: 6px; }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 50px 0; }

/* ── CARD ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.card:hover { border-color: rgba(255,107,0,0.3); box-shadow: 0 4px 20px var(--shadow); }

.card h2 { font-size: 1.35rem; color: var(--purple-light); text-shadow: none; margin-bottom: 12px; }

/* ── COUNTDOWN GRID ── */
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 40px 0; }

.cd-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 10px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
  transition: border-color 0.3s;
}

.cd-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,107,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cd-box:hover { border-color: rgba(255,107,0,0.4); }

.cd-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: var(--accent);
  line-height: 1;
  display: block;
}

/* dark: numbers in cream, not orange */
body.theme-dark .cd-num { color: var(--text); }

.cd-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ── FAQ ── */
.faq-list { list-style: none; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 1px 6px var(--shadow);
  transition: border-color 0.25s;
}

.faq-item:hover { border-color: rgba(255,107,0,0.35); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-q .arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,107,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--accent);
  transition: transform 0.3s, background 0.3s;
}

.faq-item.open .arrow { transform: rotate(180deg); background: rgba(255,107,0,0.25); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0 20px; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 18px; }

/* ── FACT GRID ── */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 20px; }

.fact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px var(--shadow);
}

.fact-card .icon { font-size: 1.8rem; margin-bottom: 10px; }

/* ── MISC ── */
.content-section { margin-bottom: 40px; }

.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139,47,201,0.08);
  border: 1px solid rgba(139,47,201,0.25);
  border-radius: 999px;
  padding: 7px 20px;
  font-size: 0.9rem;
  color: var(--purple-light);
  margin: 22px auto 0;
  letter-spacing: 0.04em;
}

.icon-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.icon-chip {
  background: rgba(255,107,0,0.08);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  color: var(--accent);
}

/* ── CONTACT FORM ── */
label { display: block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; margin-top: 20px; }
label:first-of-type { margin-top: 0; }

input, textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}

textarea { resize: vertical; min-height: 130px; }
select option { background: var(--card); }

.submit-btn {
  margin-top: 24px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.submit-btn:hover { background: var(--accent-glow); box-shadow: 0 4px 20px rgba(255,107,0,0.35); }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  width: 100%;
  margin-top: auto; /* pushes footer to bottom in flex column */
}

footer a { color: var(--purple-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Remove old margin-top from footer inside .wrap */
.wrap footer { margin-top: 60px; }

.tagline { color: var(--muted); font-size: 1rem; margin-bottom: 40px; }
.updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 36px; }

/* ── PARTICLE CANVAS (Halloween dark page only) ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .countdown { gap: 10px; }
  .cd-box { padding: 16px 6px 14px; }
}

/* ── DROPDOWN NAVBAR ── */
.has-dropdown { position: relative; }

.dropdown-toggle { cursor: pointer; user-select: none; }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--nav-drawer-bg);
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 8px 32px var(--shadow);
  z-index: 1000;
  list-style: none;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--nav-link);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.dropdown li a:hover {
  background: rgba(255,107,0,0.1);
  color: var(--accent);
  text-decoration: none;
}

/* Mobile dropdown */
@media (max-width: 680px) {
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    padding: 4px 0 4px 12px;
    margin: 4px 0 4px 12px;
    background: transparent;
    display: none;
  }

  .has-dropdown.open .dropdown { display: block; }

  .dropdown li a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .dropdown-toggle { width: 100%; justify-content: space-between; }
}

/* ── LANGUAGE SWITCHER ── */

/* Active language highlighted in dropdown */
.lang-active {
  color: var(--accent) !important;
  font-weight: 800 !important;
  background: rgba(255,107,0,0.08) !important;
  border-radius: 8px;
}

/* Prevent navbar crowding when 5 dropdowns present */
@media (max-width: 1024px) and (min-width: 681px) {
  .nav-links a,
  .nav-links .dropdown-toggle {
    font-size: 0.78rem;
    padding: 6px 8px;
  }
}

@media (max-width: 820px) and (min-width: 681px) {
  .nav-links a,
  .nav-links .dropdown-toggle {
    font-size: 0.72rem;
    padding: 5px 6px;
  }

  .nav-logo {
    font-size: 1.1rem;
  }
}