/*
 * National Day Festive Typography & Celebration Styles
 * Loaded alongside the nd-theme-* CSS when a national day is active.
 * Google Fonts loaded separately in national_day_theme.php.
 *
 * Themes & their festive fonts:
 *   nd-theme-sunset  → Pacifico (playful)
 *   nd-theme-sea     → Pacifico
 *   nd-theme-forest  → Pacifico
 *   nd-theme-french  → Playfair Display (elegant)
 *   nd-theme-dutch   → Abril Fatface (bold/punchy)
 */

/* ── Shared festive base ── */
[class*="nd-theme-"] .nd-festive-heading {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0;
}

[class*="nd-theme-"] .nd-festive-sub {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  text-align: center;
  opacity: 0.85;
  margin: 0.5rem 0 0;
  font-style: italic;
}

/* ── Celebration banner ── */
[class*="nd-theme-"] .nd-celebration {
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

[class*="nd-theme-"] .nd-celebration::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  pointer-events: none;
}

[class*="nd-theme-"] .nd-celebration-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

[class*="nd-theme-"] .nd-flag-emoji {
  font-size: clamp(2rem, 5vw, 3.5rem);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
  animation: nd-wave 2.5s ease-in-out infinite;
}

@keyframes nd-wave {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50%       { transform: rotate(3deg)  scale(1.08); }
}

[class*="nd-theme-"] .nd-greeting {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin: 0.75rem 0 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}

[class*="nd-theme-"] .nd-island-name {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 0.4rem 0 0;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
}

/* ── Section headings on home / listings / categories ── */
[class*="nd-theme-"] .section-title,
[class*="nd-theme-"] .dir-section-title,
[class*="nd-theme-"] .page-title,
[class*="nd-theme-"] h1.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

[class*="nd-theme-"] .category-heading,
[class*="nd-theme-"] .listing-page-title {
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
}

/* ── Per-theme font faces ── */

/* Sunset / Sea / Forest → Pacifico */
body.nd-theme-sunset .nd-festive-heading,
body.nd-theme-sunset .nd-celebration .nd-festive-heading,
body.nd-theme-sunset .section-title,
body.nd-theme-sunset .dir-section-title,
body.nd-theme-sunset .page-title,
body.nd-theme-sunset h1.hero-title,
body.nd-theme-sea .nd-festive-heading,
body.nd-theme-sea .section-title,
body.nd-theme-sea .dir-section-title,
body.nd-theme-sea .page-title,
body.nd-theme-sea h1.hero-title,
body.nd-theme-forest .nd-festive-heading,
body.nd-theme-forest .section-title,
body.nd-theme-forest .dir-section-title,
body.nd-theme-forest .page-title,
body.nd-theme-forest h1.hero-title {
  font-family: 'Pacifico', 'Georgia', cursive;
  font-weight: 400;
}

/* French → Playfair Display */
body.nd-theme-french .nd-festive-heading,
body.nd-theme-french .section-title,
body.nd-theme-french .dir-section-title,
body.nd-theme-french .page-title,
body.nd-theme-french h1.hero-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 800;
  font-style: italic;
}

/* Dutch → Abril Fatface */
body.nd-theme-dutch .nd-festive-heading,
body.nd-theme-dutch .section-title,
body.nd-theme-dutch .dir-section-title,
body.nd-theme-dutch .page-title,
body.nd-theme-dutch h1.hero-title {
  font-family: 'Abril Fatface', 'Georgia', serif;
  font-weight: 400;
}

/* ── Theme-specific celebration banner colors ── */
body.nd-theme-sunset .nd-celebration {
  background: linear-gradient(135deg, #3d1510 0%, #6b2318 50%, #2a0f0a 100%);
}
body.nd-theme-sunset .nd-festive-heading { color: #f5c518; }
body.nd-theme-sunset .nd-festive-sub,
body.nd-theme-sunset .nd-greeting { color: #fdebd0; }
body.nd-theme-sunset .nd-island-name { color: #f0b27a; }

body.nd-theme-sea .nd-celebration {
  background: linear-gradient(135deg, #03305a 0%, #0077b6 50%, #021b33 100%);
}
body.nd-theme-sea .nd-festive-heading { color: #caf0f8; }
body.nd-theme-sea .nd-festive-sub,
body.nd-theme-sea .nd-greeting { color: #caf0f8; }
body.nd-theme-sea .nd-island-name { color: #90e0ef; }

body.nd-theme-forest .nd-celebration {
  background: linear-gradient(135deg, #1b3a1f 0%, #2d6a4f 50%, #0d2410 100%);
}
body.nd-theme-forest .nd-festive-heading { color: #fcd116; }
body.nd-theme-forest .nd-festive-sub,
body.nd-theme-forest .nd-greeting { color: #d8f3dc; }
body.nd-theme-forest .nd-island-name { color: #95d5b2; }

body.nd-theme-french .nd-celebration {
  background: linear-gradient(135deg, #002395 0%, #0a2060 40%, #ed2939 100%);
}
body.nd-theme-french .nd-festive-heading { color: #fff; }
body.nd-theme-french .nd-festive-sub,
body.nd-theme-french .nd-greeting { color: #eef2ff; }
body.nd-theme-french .nd-island-name { color: #a5b4fc; }

body.nd-theme-dutch .nd-celebration {
  background: linear-gradient(135deg, #003893 0%, #132b68 40%, #ff6b35 100%);
}
body.nd-theme-dutch .nd-festive-heading { color: #fff; }
body.nd-theme-dutch .nd-festive-sub,
body.nd-theme-dutch .nd-greeting { color: #f0f4ff; }
body.nd-theme-dutch .nd-island-name { color: #93b4f5; }

/* ── Confetti sparkle strip under the heading ── */
[class*="nd-theme-"] .nd-sparkle-strip {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0 0;
  font-size: 1.3rem;
  animation: nd-sparkle-fade 3s ease-in-out infinite alternate;
}

@keyframes nd-sparkle-fade {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

/* ── Responsive tweaks ── */
@media (max-width: 600px) {
  [class*="nd-theme-"] .nd-celebration {
    padding: 1.8rem 1rem 1.5rem;
  }
  [class*="nd-theme-"] .nd-flag-emoji {
    font-size: 2.2rem;
  }
}

/* ════════════════════════════════════════════════════════
 *  SEASONAL THEMES — Christmas & New Year
 * ════════════════════════════════════════════════════════ */

/* Shared seasonal celebration base */
body.lc-theme-xmas .nd-celebration,
body.lc-theme-newyear .nd-celebration {
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

body.lc-theme-xmas .nd-celebration-inner,
body.lc-theme-newyear .nd-celebration-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

body.lc-theme-xmas .nd-flag-emoji,
body.lc-theme-newyear .nd-flag-emoji {
  font-size: clamp(2rem, 5vw, 3.5rem);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
  animation: nd-wave 2.5s ease-in-out infinite;
}

body.lc-theme-xmas .nd-sparkle-strip,
body.lc-theme-newyear .nd-sparkle-strip {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0 0;
  font-size: 1.3rem;
  animation: nd-sparkle-fade 3s ease-in-out infinite alternate;
}

/* ── Christmas ── */
body.lc-theme-xmas .nd-celebration {
  background: linear-gradient(135deg, #dceefb 0%, #ffffff 50%, #fde8e8 100%);
  border-bottom: 2px solid #c8dff5;
}

/* Snowflakes */
body.lc-theme-xmas .nd-celebration .nd-snowflakes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
body.lc-theme-xmas .nd-celebration .nd-snowflake {
  position: absolute;
  top: -20px;
  color: #a8d8f0;
  font-size: 1.1rem;
  user-select: none;
  animation: xmas-fall linear infinite;
  opacity: 0.7;
}
body.lc-theme-xmas .nd-celebration .nd-snowflake:nth-child(1)  { left:5%;  font-size:1.4rem; animation-duration:6s;  animation-delay:0s;   }
body.lc-theme-xmas .nd-celebration .nd-snowflake:nth-child(2)  { left:12%; font-size:0.9rem; animation-duration:8s;  animation-delay:1s;   }
body.lc-theme-xmas .nd-celebration .nd-snowflake:nth-child(3)  { left:20%; font-size:1.2rem; animation-duration:7s;  animation-delay:2s;   }
body.lc-theme-xmas .nd-celebration .nd-snowflake:nth-child(4)  { left:30%; font-size:0.8rem; animation-duration:9s;  animation-delay:0.5s; }
body.lc-theme-xmas .nd-celebration .nd-snowflake:nth-child(5)  { left:40%; font-size:1.3rem; animation-duration:6.5s;animation-delay:3s;   }
body.lc-theme-xmas .nd-celebration .nd-snowflake:nth-child(6)  { left:50%; font-size:1rem;   animation-duration:8.5s;animation-delay:1.5s; }
body.lc-theme-xmas .nd-celebration .nd-snowflake:nth-child(7)  { left:60%; font-size:0.85rem;animation-duration:7.5s;animation-delay:0.8s; }
body.lc-theme-xmas .nd-celebration .nd-snowflake:nth-child(8)  { left:70%; font-size:1.2rem; animation-duration:6s;  animation-delay:2.5s; }
body.lc-theme-xmas .nd-celebration .nd-snowflake:nth-child(9)  { left:80%; font-size:0.9rem; animation-duration:9s;  animation-delay:0.3s; }
body.lc-theme-xmas .nd-celebration .nd-snowflake:nth-child(10) { left:90%; font-size:1.1rem; animation-duration:7s;  animation-delay:1.8s; }
body.lc-theme-xmas .nd-celebration .nd-snowflake:nth-child(11) { left:95%; font-size:0.8rem; animation-duration:8s;  animation-delay:3.5s; }
body.lc-theme-xmas .nd-celebration .nd-snowflake:nth-child(12) { left:25%; font-size:1rem;   animation-duration:10s; animation-delay:4s;   }

@keyframes xmas-fall {
  0%   { transform: translateY(-20px) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(260px) rotate(360deg); opacity: 0; }
}

body.lc-theme-xmas .nd-festive-heading {
  font-family: 'Pacifico', 'Georgia', cursive;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 4rem);
  color: #c0392b;
  line-height: 1.15;
  text-align: center;
}

body.lc-theme-xmas .nd-greeting {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: #1e2d3d;
  margin: 0.75rem 0 0;
  font-weight: 500;
}

body.lc-theme-xmas .nd-island-name {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #5a7a94;
  margin: 0.4rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Christmas section headings */
body.lc-theme-xmas .section-title,
body.lc-theme-xmas .dir-section-title,
body.lc-theme-xmas .page-title,
body.lc-theme-xmas h1.hero-title {
  font-family: 'Pacifico', 'Georgia', cursive;
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: #c0392b;
}

/* ── New Year ── */
body.lc-theme-newyear .nd-celebration {
  background: linear-gradient(135deg, #0d1535 0%, #1a2a5e 40%, #06091a 100%);
}

/* New Year sparkle particles */
body.lc-theme-newyear .nd-celebration .nd-snowflakes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
body.lc-theme-newyear .nd-celebration .nd-snowflake {
  position: absolute;
  top: -20px;
  font-size: 1.1rem;
  user-select: none;
  animation: ny-rise linear infinite;
  opacity: 0;
}
body.lc-theme-newyear .nd-celebration .nd-snowflake:nth-child(1)  { left:5%;  font-size:1.4rem; animation-duration:4s;  animation-delay:0s;   color:#f5c842; }
body.lc-theme-newyear .nd-celebration .nd-snowflake:nth-child(2)  { left:12%; font-size:0.9rem; animation-duration:5s;  animation-delay:0.6s; color:#fff;    }
body.lc-theme-newyear .nd-celebration .nd-snowflake:nth-child(3)  { left:20%; font-size:1.2rem; animation-duration:4.5s;animation-delay:1.2s; color:#f5c842; }
body.lc-theme-newyear .nd-celebration .nd-snowflake:nth-child(4)  { left:30%; font-size:0.8rem; animation-duration:6s;  animation-delay:0.3s; color:#e8d5a0; }
body.lc-theme-newyear .nd-celebration .nd-snowflake:nth-child(5)  { left:40%; font-size:1.3rem; animation-duration:4s;  animation-delay:2s;   color:#f5c842; }
body.lc-theme-newyear .nd-celebration .nd-snowflake:nth-child(6)  { left:50%; font-size:1rem;   animation-duration:5.5s;animation-delay:0.9s; color:#fff;    }
body.lc-theme-newyear .nd-celebration .nd-snowflake:nth-child(7)  { left:60%; font-size:0.85rem;animation-duration:4.8s;animation-delay:1.5s; color:#f5c842; }
body.lc-theme-newyear .nd-celebration .nd-snowflake:nth-child(8)  { left:70%; font-size:1.2rem; animation-duration:4s;  animation-delay:0.4s; color:#e8d5a0; }
body.lc-theme-newyear .nd-celebration .nd-snowflake:nth-child(9)  { left:80%; font-size:0.9rem; animation-duration:6s;  animation-delay:1s;   color:#fff;    }
body.lc-theme-newyear .nd-celebration .nd-snowflake:nth-child(10) { left:90%; font-size:1.1rem; animation-duration:4.5s;animation-delay:1.8s; color:#f5c842; }
body.lc-theme-newyear .nd-celebration .nd-snowflake:nth-child(11) { left:95%; font-size:0.8rem; animation-duration:5s;  animation-delay:2.5s; color:#e8d5a0; }
body.lc-theme-newyear .nd-celebration .nd-snowflake:nth-child(12) { left:25%; font-size:1rem;   animation-duration:6s;  animation-delay:3s;   color:#fff;    }

@keyframes ny-rise {
  0%   { transform: translateY(0) scale(0.5) rotate(0deg);   opacity: 0; }
  15%  { opacity: 1; }
  80%  { opacity: 0.8; }
  100% { transform: translateY(-280px) scale(1.2) rotate(180deg); opacity: 0; }
}

body.lc-theme-newyear .nd-festive-heading {
  font-family: 'Abril Fatface', 'Georgia', serif;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 4rem);
  color: #f5c842;
  line-height: 1.15;
  text-align: center;
}

body.lc-theme-newyear .nd-greeting {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: #f0e6c8;
  margin: 0.75rem 0 0;
  font-weight: 500;
}

body.lc-theme-newyear .nd-island-name {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #c9a84c;
  margin: 0.4rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* New Year section headings */
body.lc-theme-newyear .section-title,
body.lc-theme-newyear .dir-section-title,
body.lc-theme-newyear .page-title,
body.lc-theme-newyear h1.hero-title {
  font-family: 'Abril Fatface', 'Georgia', serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: #f5c842;
}

@media (max-width: 600px) {
  body.lc-theme-xmas .nd-celebration,
  body.lc-theme-newyear .nd-celebration {
    padding: 1.8rem 1rem 1.5rem;
  }
}
