/* ================================================================
   FDBC Event Center — Dynamic Effects Stylesheet
   Link this file in the HTML <head> after the main <style> block
================================================================ */

/* ---- Scroll Progress Bar ---- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  z-index: 2001;
  background: linear-gradient(90deg, #9a7932, #c9a84c, #e2c06e);
  box-shadow: 0 0 12px rgba(201,168,76,0.55);
  transition: width 0.07s linear;
  pointer-events: none;
}


/* ---- Page Loader ---- */
#loader {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.loader-inner {
  text-align: center;
  animation: loaderEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes loaderEnter {
  from { opacity: 0; transform: translateY(14px) scale(0.93); }
  to   { opacity: 1; transform: none; }
}
.loader-bar {
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
  margin: 20px auto 0;
  animation: barGrow 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.55s;
}
@keyframes barGrow {
  from { width: 0; opacity: 0; }
  to   { width: 140px; opacity: 0.6; }
}

/* ---- Lightbox ---- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 40px;
}
#lightbox.active { display: flex; }

#lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 6px;
  object-fit: contain;
  animation: lbIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.86); }
  to   { opacity: 1; transform: none; }
}
.lb-caption {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(201,168,76,0.65);
  white-space: nowrap;
}
.lb-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.28);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}
.lb-close:hover {
  background: rgba(201,168,76,0.18);
  border-color: rgba(201,168,76,0.6);
}
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.28);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}
.lb-arrow:hover {
  background: rgba(201,168,76,0.18);
  border-color: rgba(201,168,76,0.6);
}
#lb-prev { left: 22px; }
#lb-next { right: 22px; }

/* ---- Parallax Hero BG extension ---- */
#hero .hero-bg {
  top: -22%;
  bottom: -22%;
}

/* ---- Hero Canvas ---- */
#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
/* make sure hero content sits above canvas */
#hero .container { position: relative; z-index: 2; }

/* ---- Horizontal Events Scroll ---- */
.events-scroll-wrap { position: relative; overflow: hidden; }
.events-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 110px;
  background: linear-gradient(to right, transparent, #111111);
  pointer-events: none;
  z-index: 3;
}
.events-nav-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 22px;
}
.events-nav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid rgba(201,168,76,0.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}
.events-nav-btn:hover { background: #c9a84c; border-color: #c9a84c; }
.events-nav-btn:hover svg { stroke: #0a0a0a !important; }
.events-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
  padding-right: 80px;
}
.events-track::-webkit-scrollbar { display: none; }
.event-h-card {
  flex-shrink: 0;
  width: 340px; height: 430px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(201,168,76,0.12);
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.event-h-card:hover { border-color: rgba(201,168,76,0.38); transform: translateY(-4px); }
.event-h-card:hover .event-h-overlay { opacity: 1; }
.event-h-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
}
.event-h-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.event-h-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
  display: flex; align-items: flex-end;
}
.event-h-label { padding: 22px; width: 100%; }
.event-h-label span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #f0ece4; margin-bottom: 4px;
}
.event-h-label small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px; color: rgba(201,168,76,0.72); letter-spacing: 0.8px;
}

/* ---- Active Nav ---- */
.nav-links a.nav-active { color: #f0ece4 !important; }

/* ---- Clickable gallery cells ---- */
.gallery-cell[data-src], .event-h-card[data-src] { cursor: pointer; }

/* ================================================================
   POLISH UPGRADES
================================================================ */

/* ---- Grain / Film Texture Overlay ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---- Animated Gold Line ---- */
.gold-line {
  width: 0 !important;
  transition: width 0.72s cubic-bezier(0.4, 0, 0.2, 1) 0.12s;
}
.gold-line.gl-visible {
  width: 48px !important;
}

/* ---- Urgency Note ---- */
.urgency-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: rgba(201,168,76,0.72);
  letter-spacing: 0.4px;
}
.urgency-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c9a84c;
  opacity: 0.8;
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* ---- Floating Book Now Button ---- */
#float-cta {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 890;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  background: #c9a84c;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(201,168,76,0.35), 0 2px 8px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
  text-decoration: none;
}
#float-cta.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
#float-cta:hover {
  background: #e2c06e;
  box-shadow: 0 12px 40px rgba(201,168,76,0.45), 0 2px 8px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}
#float-cta svg { flex-shrink: 0; }

@media (max-width: 480px) {
  #float-cta {
    bottom: 20px; right: 16px; left: 16px;
    justify-content: center;
    border-radius: 12px;
  }
}

/* ---- Inline Form Validation ---- */
.field-error {
  display: none;
  font-size: 11px;
  color: #d97070;
  margin-top: 5px;
  letter-spacing: 0.2px;
  line-height: 1.4;
}
.form-group.has-error .field-error { display: block; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: rgba(210, 90, 90, 0.55) !important;
}
/* shake animation on submit with errors */
@keyframes formShake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.form-card.shake { animation: formShake 0.4s ease; }

/* ── AVAILABILITY CALENDAR ──────────────────────────────── */
.cal-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  padding: 4px;
  max-width: 860px;
  margin: 0 auto;
}
.cal-frame {
  width: 100%;
  height: 520px;
  display: block;
  border-radius: 10px;
  filter: invert(0.88) hue-rotate(175deg) saturate(0.6) brightness(0.85);
}
.cal-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 14px 12px 10px;
  margin: 0;
}
@media (max-width: 600px) {
  .cal-frame { height: 380px; }
}
