/* ══════════════════════════════════════════════════════════════════════
   SIM'LANTA — EVG de Simo — Koh Lanta Adventure Theme
   ══════════════════════════════════════════════════════════════════════ */

/* ─── Custom Properties ─── */
:root {
  /* Earthy palette */
  --sand:        #f5e6c8;
  --sand-light:  #faf3e3;
  --sand-dark:   #d4b896;
  --jungle:      #2d5016;
  --jungle-light:#4a7c28;
  --jungle-dark: #1a3009;
  --orange:      #e07830;
  --orange-dark: #c45a10;
  --orange-glow: #ff9a44;
  --brown:       #3e2723;
  --brown-light: #5d4037;
  --brown-dark:  #1b0f0a;
  --fire:        #ff5722;
  --fire-glow:   #ff9800;
  --gold:        #ffc107;
  --red:         #d32f2f;
  --white:       #fefefe;
  --cream:       #fff8ee;

  /* Functional */
  --bg:          #0d1a06;
  --bg-section:  #111e08;
  --text:        var(--sand-light);
  --text-muted:  #b8a98a;
  --border:      rgba(212, 184, 150, 0.15);

  /* Typography */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-marker:  'Permanent Marker', cursive;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem);

  /* Misc */
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg:   0 8px 48px rgba(0, 0, 0, 0.5);
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--orange-glow);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ─── Particles Background ─── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

/* ══════════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
  z-index: 1;

  background:
    radial-gradient(ellipse at 30% 20%, rgba(224, 120, 48, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(45, 80, 22, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(13, 26, 6, 0.8) 0%, var(--bg) 100%),
    linear-gradient(180deg, #0a1504 0%, var(--bg) 100%);
}

/* Jungle vines overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30 Q15 28 30 30 Q45 32 60 30' stroke='%232d501620' fill='none' stroke-width='1'/%3E%3Cpath d='M0 50 Q15 48 30 50 Q45 52 60 50' stroke='%232d501615' fill='none' stroke-width='1'/%3E%3C/svg%3E") repeat;
  z-index: -1;
  animation: vineDrift 20s linear infinite;
}

@keyframes vineDrift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* ─── Torches ─── */
.hero__torch {
  position: absolute;
  top: 15%;
  z-index: 2;
}
.hero__torch--left { left: 5%; }
.hero__torch--right { right: 5%; }

.torch__stick {
  width: 8px;
  height: 80px;
  background: linear-gradient(to bottom, #8B6914, #5d4037);
  margin: 0 auto;
  border-radius: 2px;
}

.torch__flame {
  width: 30px;
  height: 50px;
  margin: 0 auto;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at center bottom, var(--gold) 0%, var(--orange) 40%, var(--fire) 70%, transparent 100%);
  animation: flicker 0.5s ease-in-out infinite alternate;
  filter: blur(1px);
  box-shadow:
    0 0 20px var(--orange),
    0 0 40px rgba(255, 152, 0, 0.5),
    0 0 80px rgba(255, 87, 34, 0.3);
}

@keyframes flicker {
  0% {
    transform: scaleY(1) scaleX(1) rotate(-2deg);
    opacity: 1;
  }
  25% {
    transform: scaleY(1.05) scaleX(0.95) rotate(1deg);
  }
  50% {
    transform: scaleY(0.95) scaleX(1.05) rotate(-1deg);
    opacity: 0.9;
  }
  75% {
    transform: scaleY(1.08) scaleX(0.92) rotate(2deg);
  }
  100% {
    transform: scaleY(1.02) scaleX(0.98) rotate(-1.5deg);
    opacity: 0.95;
  }
}

/* ─── Hero Content ─── */
.hero__content {
  position: relative;
  z-index: 3;
}

.hero__pre-title {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--orange-glow);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 10rem);
  line-height: 0.9;
  color: var(--sand);
  letter-spacing: 0.05em;
  text-shadow:
    0 0 20px rgba(224, 120, 48, 0.5),
    0 0 60px rgba(224, 120, 48, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
  position: relative;
}

/* Glitch effect on hover */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
}

.glitch:hover::before {
  animation: glitch1 0.3s ease-in-out;
  color: var(--fire);
  z-index: -1;
}

.glitch:hover::after {
  animation: glitch2 0.3s ease-in-out 0.05s;
  color: var(--jungle-light);
  z-index: -2;
}

@keyframes glitch1 {
  0%, 100% { opacity: 0; transform: translate(0); }
  20% { opacity: 0.8; transform: translate(-3px, 2px); }
  40% { opacity: 0.6; transform: translate(3px, -2px); }
  60% { opacity: 0.8; transform: translate(-2px, -1px); }
  80% { opacity: 0.4; transform: translate(2px, 1px); }
}

@keyframes glitch2 {
  0%, 100% { opacity: 0; transform: translate(0); }
  20% { opacity: 0.6; transform: translate(2px, -2px); }
  40% { opacity: 0.8; transform: translate(-3px, 1px); }
  60% { opacity: 0.4; transform: translate(1px, 2px); }
  80% { opacity: 0.7; transform: translate(-2px, -1px); }
}

.hero__subtitle {
  font-family: var(--font-marker);
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  color: var(--sand-dark);
  margin-bottom: 0.25rem;
}

.hero__dates {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 500;
}

/* ─── Countdown ─── */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 2vw, 1rem);
  margin-bottom: 2.5rem;
}

.countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(45, 80, 22, 0.2);
  border: 1px solid rgba(74, 124, 40, 0.3);
  border-radius: var(--radius);
  padding: clamp(0.6rem, 2vw, 1rem) clamp(0.8rem, 2.5vw, 1.5rem);
  min-width: clamp(60px, 15vw, 90px);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.countdown__block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--jungle-light), transparent);
}

.countdown__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--orange-glow);
  line-height: 1;
  transition: transform 0.3s ease;
}

.countdown__number.flip {
  animation: flipNumber 0.6s ease;
}

@keyframes flipNumber {
  0% { transform: perspective(200px) rotateX(0); }
  50% { transform: perspective(200px) rotateX(90deg); opacity: 0.5; }
  100% { transform: perspective(200px) rotateX(0); }
}

.countdown__label {
  font-size: clamp(0.6rem, 1.5vw, 0.8rem);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.countdown__separator {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--orange);
  animation: blink 1s step-end infinite;
  align-self: flex-start;
  margin-top: clamp(0.6rem, 2vw, 1rem);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ─── CTA Button ─── */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(224, 120, 48, 0.4);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.hero__cta:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(224, 120, 48, 0.5);
}

.hero__cta:hover::before {
  transform: translateX(100%);
}

/* ─── Scroll Indicator ─── */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--sand-dark);
  border-bottom: 2px solid var(--sand-dark);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.3; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 0.7; }
}

/* ─── Animations ─── */
.animate-fade-down {
  animation: fadeDown 0.8s ease-out both;
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out both;
}

.animate-fade-up:nth-child(3) { animation-delay: 0.2s; }
.animate-fade-up:nth-child(4) { animation-delay: 0.4s; }
.animate-fade-up:nth-child(5) { animation-delay: 0.6s; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ══════════════════════════════════════════════════════════════════════
   SECTION HEADERS
   ══════════════════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
  animation: gentleBounce 3s ease-in-out infinite;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--sand);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-header__subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════════════
   VENUE SECTION
   ══════════════════════════════════════════════════════════════════════ */
.venue {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
  background: var(--bg-section);
}

.venue::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--gold), var(--orange), transparent);
}

.venue__card {
  max-width: 900px;
  margin: 0 auto 3rem;
  background: rgba(62, 39, 35, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.venue__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.venue__gallery {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.venue__gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
  touch-action: pan-y;
}

.venue__gallery-img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.venue__gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.venue__gallery-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.venue__gallery-btn--prev { left: 0.5rem; }
.venue__gallery-btn--next { right: 0.5rem; }

.venue__gallery-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.venue__gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.venue__gallery-dot.active {
  background: white;
  transform: scale(1.3);
}

.venue__info {
  padding: 1.5rem;
}

.venue__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--sand);
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.venue__location {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.venue__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.venue__feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: rgba(45, 80, 22, 0.15);
  border: 1px solid rgba(74, 124, 40, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: background var(--transition), border-color var(--transition);
}

.venue__feature:hover {
  background: rgba(45, 80, 22, 0.25);
  border-color: rgba(74, 124, 40, 0.4);
}

.venue__feature-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.venue__airbnb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  background: rgba(224, 120, 48, 0.15);
  border: 1px solid rgba(224, 120, 48, 0.3);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.venue__airbnb-link:hover {
  background: rgba(224, 120, 48, 0.25);
  border-color: rgba(224, 120, 48, 0.5);
  transform: translateY(-1px);
}

/* ─── Map ─── */
.venue__map {
  max-width: 900px;
  margin: 0 auto;
}

.venue__map-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--sand);
  margin-bottom: 1rem;
  text-align: center;
}

.venue__map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.venue__map-embed iframe {
  display: block;
}

/* ══════════════════════════════════════════════════════════════════════
   ATTENDANCE SECTION
   ══════════════════════════════════════════════════════════════════════ */
.attendance {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.attendance::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--jungle-light), var(--gold), var(--jungle-light), transparent);
}

.attendance__wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.attendance__status {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  min-height: 1.5rem;
}

.attendance__status.error {
  color: var(--red);
}

.attendance__status.info {
  color: var(--text-muted);
}

/* ─── Calendar Overview ─── */
.calendar-overview {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.calendar-card {
  flex: 1;
  max-width: 110px;
  background: rgba(45, 80, 22, 0.2);
  border: 1px solid rgba(74, 124, 40, 0.3);
  border-radius: var(--radius);
  padding: 0.75rem 0.5rem;
  text-align: center;
  transition: all var(--transition);
}

.calendar-card:hover {
  background: rgba(45, 80, 22, 0.35);
  transform: translateY(-2px);
}

.calendar-card__day {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.calendar-card__number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--sand);
  line-height: 1.1;
}

.calendar-card__count {
  font-size: 0.85rem;
  color: var(--orange-glow);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* ─── Attendee List ─── */
.attendee-list {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.attendee-row {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(62, 39, 35, 0.2);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}

.attendee-row:last-child {
  border-bottom: none;
}

.attendee-row:hover {
  background: rgba(74, 124, 40, 0.1);
}

.attendee-row:active {
  background: rgba(74, 124, 40, 0.18);
}

/* Sim'Deal golden row */
.attendee-row--simdeal {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(255, 152, 0, 0.08) 100%);
  border-bottom: 2px solid rgba(255, 193, 7, 0.25);
  border-left: 3px solid var(--gold);
}

.attendee-row--simdeal:hover {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.12) 100%);
}

.attendee-row__name {
  font-weight: 600;
  color: var(--sand);
  flex-shrink: 0;
  min-width: 80px;
}

.attendee-row--simdeal .attendee-row__name {
  color: var(--gold);
  font-family: var(--font-marker);
  font-size: 1.05rem;
  text-shadow: 0 0 12px rgba(255, 193, 7, 0.2);
}

.attendee-row__presence {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attendee-row--simdeal .attendee-row__presence {
  color: var(--orange-glow);
  font-weight: 600;
}

.attendee-row__chevron {
  color: var(--text-muted);
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.4;
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.attendee-row:hover .attendee-row__chevron {
  opacity: 1;
  transform: translateX(3px);
}

/* ─── Empty state ─── */
.attendance__empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.attendance__empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.attendance__empty-text {
  font-size: 0.95rem;
}

/* ─── Add Button ─── */
.attendance__add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  background: rgba(45, 80, 22, 0.2);
  border: 2px dashed rgba(74, 124, 40, 0.4);
  border-radius: var(--radius);
  color: var(--jungle-light);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all var(--transition);
}

.attendance__add-btn:hover {
  background: rgba(45, 80, 22, 0.35);
  border-color: var(--jungle-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(74, 124, 40, 0.2);
}

/* ══════════════════════════════════════════════════════════════════════
   DETAIL MODAL
   ══════════════════════════════════════════════════════════════════════ */
.detail-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9998;
}

.detail-modal__content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: linear-gradient(170deg, #1e3312 0%, #1a2a10 40%, #15200c 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  width: 92%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: fadeInScale 0.25s ease-out;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.detail-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.detail-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--sand);
}

.detail-modal__name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--sand);
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.detail-modal__name--simdeal {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.detail-modal__section {
  margin-bottom: 1.25rem;
}

.detail-modal__section h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.detail-modal__days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.detail-day {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.detail-day--yes {
  background: rgba(45, 80, 22, 0.25);
  border-color: rgba(74, 124, 40, 0.4);
  color: var(--sand);
}

.detail-day--no {
  opacity: 0.35;
}

.detail-day--fire {
  background: rgba(255, 152, 0, 0.15);
  border-color: rgba(255, 193, 7, 0.3);
  color: var(--gold);
}

.detail-modal__info {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
}

.detail-modal__info p {
  padding: 0.2rem 0;
}

.detail-modal__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.detail-modal__delete {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.75rem;
  transition: opacity var(--transition);
}

.detail-modal__delete:hover {
  opacity: 0.7;
}

.detail-modal__edit {
  padding: 0.6rem 1.5rem;
}

/* ══════════════════════════════════════════════════════════════════════
   FORM MODAL
   ══════════════════════════════════════════════════════════════════════ */
.form-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9998;
}

.form-modal__card {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a2a10;
  border-top: 2px solid var(--jungle-light);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
  -webkit-overflow-scrolling: touch;
}

.form-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  background: #1a2a10;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.form-modal__header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sand);
  margin: 0;
}

.form-modal__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.form-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--sand);
}

.form-modal__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* Emoji Picker — native input approach */
.emoji-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.emoji-picker__preview {
  width: 52px;
  height: 52px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.emoji-picker__preview.has-emoji {
  border-color: var(--fire);
  background: rgba(224, 120, 48, 0.15);
  box-shadow: 0 0 8px rgba(224, 120, 48, 0.3);
}

.emoji-picker__input {
  flex: 1;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.4rem;
  font-family: var(--font-body);
  text-align: center;
  width: 100%;
}

.emoji-picker__input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(224, 120, 48, 0.06);
}

.emoji-picker__input::placeholder {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* h3 style moved to .form-modal__header h3 */

/* Form fields (shared between form modal) */
.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-field input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
}

.form-field input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(224, 120, 48, 0.06);
}

.form-days {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-days label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.form-days label:has(input:checked) {
  background: rgba(45, 80, 22, 0.3);
  border-color: var(--jungle-light);
  color: var(--sand);
}

.form-days input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition);
}

.form-days input[type="checkbox"]:checked {
  background: var(--jungle);
  border-color: var(--jungle-light);
}

.form-days input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ─── Buttons ─── */
.btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  text-align: center;
}

.btn--primary {
  background: linear-gradient(135deg, var(--jungle) 0%, var(--jungle-light) 100%);
  color: var(--white);
  border: 1px solid var(--jungle-light);
}

.btn--primary:hover {
  box-shadow: 0 4px 20px rgba(74, 124, 40, 0.3);
  transform: translateY(-1px);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ══════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem;
  background: var(--brown-dark);
  border-top: 2px solid var(--border);
  text-align: center;
}

.footer__content {
  max-width: 600px;
  margin: 0 auto;
}

.footer__main {
  font-family: var(--font-marker);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--sand);
  margin-bottom: 0.75rem;
}

.footer__disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.4;
}

/* ══════════════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */

/* Torches on mobile — position near scroll chevron */
@media (max-width: 600px) {
  .hero__torch {
    top: auto;
    bottom: 1rem;
    transform: scale(0.55);
    transform-origin: bottom center;
  }
  .hero__torch--left { left: calc(50% - 60px); }
  .hero__torch--right { right: calc(50% - 60px); }

  .calendar-overview {
    gap: 0.35rem;
  }

  .calendar-card {
    padding: 0.6rem 0.3rem;
  }

  .calendar-card__number {
    font-size: 1.8rem;
  }

  .attendee-row {
    padding: 0.75rem 0.8rem;
  }

  .attendee-row__presence {
    font-size: 0.8rem;
    padding: 0 0.5rem;
  }

  .detail-modal__content {
    width: 95%;
    padding: 1.5rem 1.25rem;
  }
}

@media (min-width: 601px) {
  .form-modal__card {
    position: fixed;
    top: 50%;
    left: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-top: 2px solid var(--jungle-light);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    animation: fadeInScale 0.25s ease-out;
  }

  .form-modal__header {
    border-radius: var(--radius) var(--radius) 0 0;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .hero__torch {
    top: 20%;
  }
  .hero__torch--left { left: 2%; }
  .hero__torch--right { right: 2%; }
  .torch__stick { height: 60px; }
  .torch__flame { width: 24px; height: 40px; }
}

@media (min-width: 901px) {
  .venue__card {
    display: grid;
    grid-template-columns: 300px 1fr;
  }

  .venue__image {
    height: auto;
    min-height: 280px;
  }
}

/* ─── Loading skeleton ─── */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  height: 2rem;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Fun loading animation ─── */
.loading-fun {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 1rem;
}

.loading-fun__icon {
  font-size: 3rem;
  animation: loadingSway 1.5s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes loadingSway {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

.loading-fun__text {
  font-family: var(--font-marker);
  font-size: 1.1rem;
  color: var(--orange-glow);
  letter-spacing: 0.03em;
}

.loading-fun__dots {
  display: inline-block;
  width: 1.2em;
  text-align: left;
  overflow: hidden;
  vertical-align: bottom;
}

.loading-fun__dots::after {
  content: '...';
  display: inline-block;
  animation: loadingDots 1.5s steps(4, end) infinite;
}

@keyframes loadingDots {
  0%  { width: 0; }
  100% { width: 1.2em; }
}

/* ─── Fun leaf decoration at section borders ─── */
.venue::after,
.attendance::after {
  content: '🌿';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  z-index: 2;
  background: var(--bg);
  padding: 0 0.5rem;
  opacity: 0.5;
}

.attendance::after {
  content: '🔥';
  background: var(--bg);
}
