/* ═══════════════════════════════════════════════════════════════
   MONK OF IBIZA — SUBPAGE VISUAL LAYER
   Centering, glow effects, particles canvas, ambient styling.
   Applies to all secondary pages (music, videos, story, etc.)
   ═══════════════════════════════════════════════════════════════ */

/* ── PARTICLES CANVAS ───────────────────────────────────────── */
#page-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ── PAGE HERO — CENTER + GLOW ──────────────────────────────── */
.page-hero {
  position: relative;
  text-align: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
  z-index: 1;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(214,168,79,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(77,184,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214,168,79,0.3), transparent);
}

.page-hero .container,
.page-hero .container-narrow {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero .section-label {
  display: block;
  text-align: center;
  margin-bottom: 0.9rem;
}

.page-hero .section-title {
  text-align: center;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #F5F2EA 0%, #D6A84F 40%, #F3D98B 70%, #F5F2EA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 32px rgba(214,168,79,0.25));
}

.page-hero .divider {
  margin: 1.5rem auto 2rem;
}

.page-hero .section-subtitle {
  text-align: center;
  margin: 0 auto;
  max-width: 580px;
}

/* ── GLOBAL TEXT CENTERING ──────────────────────────────────── */
.section .section-label,
.section .section-title,
.section-header .section-label,
.section-header .section-title,
.section-header .section-subtitle,
.section-header .divider {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── AMBIENT BACKGROUND ORBS ────────────────────────────────── */
.orb-ambient {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  animation: orbFloat 18s ease-in-out infinite;
}
.orb-ambient.orb-gold {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(214,168,79,0.055) 0%, transparent 70%);
  top: 10%; left: -100px;
  animation-delay: 0s;
}
.orb-ambient.orb-blue {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(77,184,255,0.04) 0%, transparent 70%);
  top: 40%; right: -80px;
  animation-delay: -6s;
}
.orb-ambient.orb-violet {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(124,92,255,0.04) 0%, transparent 70%);
  bottom: 15%; left: 20%;
  animation-delay: -12s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  33%       { transform: translateY(-40px) scale(1.06); }
  66%       { transform: translateY(20px) scale(0.96); }
}

/* ── SECTION SEPARATORS ─────────────────────────────────────── */
.section-sep {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(214,168,79,0.35), transparent);
  margin: 0 auto;
}

/* ── SECTION TITLE GLOW (all pages) ────────────────────────── */
.section-title {
  transition: filter 0.4s ease;
}

/* ── DIVIDERS ───────────────────────────────────────────────── */
.divider-center,
.divider {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
  margin: 1.2rem auto;
  border: none;
}

/* ── SCROLL REVEAL — ENHANCED ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* Stagger delays for child reveals */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.55s; }

/* ── CARDS — HOVER GOLD GLOW ────────────────────────────────── */
.music-card,
.video-card,
.port-card,
.session-card {
  transition: transform 0.35s var(--ease-smooth),
              box-shadow 0.35s var(--ease-smooth),
              border-color 0.35s ease;
}
.music-card:hover,
.video-card:hover,
.port-card:hover,
.session-card:hover {
  box-shadow: 0 0 0 1px rgba(214,168,79,0.18),
              0 16px 48px rgba(0,0,0,0.55),
              0 0 40px rgba(214,168,79,0.10);
  border-color: rgba(214,168,79,0.22);
}

/* ── HERO DECORATIVE CORNER LINES ───────────────────────────── */
.hero-corner {
  position: absolute;
  width: 48px; height: 48px;
  pointer-events: none;
  z-index: 3;
}
.hero-corner::before,
.hero-corner::after {
  content: '';
  position: absolute;
  background: rgba(214,168,79,0.4);
}
.hero-corner::before { width: 100%; height: 1px; top: 0; left: 0; }
.hero-corner::after  { width: 1px; height: 100%; top: 0; left: 0; }
.hero-corner.tl { top: 2rem; left: 2rem; }
.hero-corner.tr { top: 2rem; right: 2rem; transform: scaleX(-1); }
.hero-corner.bl { bottom: 2rem; left: 2rem; transform: scaleY(-1); }
.hero-corner.br { bottom: 2rem; right: 2rem; transform: scale(-1); }

/* ── GOLD LABEL BADGE ───────────────────────────────────────── */
.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(214,168,79,0.25);
  border-radius: 100px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(214,168,79,0.06);
  margin-bottom: 1.2rem;
}
.page-badge::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-main);
  box-shadow: 0 0 6px rgba(214,168,79,0.8);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* ── SCROLL PROGRESS BAR ────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-main), var(--ibiza-blue));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(214,168,79,0.5);
}

/* ── FLOATING GOLD LINE (horizontal accent) ─────────────────── */
.gold-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(214,168,79,0.12) 20%,
    rgba(214,168,79,0.35) 50%,
    rgba(214,168,79,0.12) 80%,
    transparent 100%);
  margin: var(--space-lg) 0;
  border: none;
}

/* ── PAGE CONTENT z-index FIX ───────────────────────────────── */
.nav, nav.nav { z-index: 100; position: relative; }
section, .section { position: relative; z-index: 1; }
footer { position: relative; z-index: 1; }

/* ── NAV GLOW ON SCROLL ─────────────────────────────────────── */
.nav.scrolled {
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(214,168,79,0.10);
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

/* ── HERO TITLE SHIMMER ANIMATION ───────────────────────────── */
@keyframes titleShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.page-hero .section-title {
  background-size: 200% 200%;
  animation: titleShimmer 6s ease infinite;
}

/* ── GRAIN OVERLAY (subtle texture) ────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.018;
  pointer-events: none;
  z-index: 9998;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero { padding: 6rem 0 3.5rem; }
  .hero-corner { width: 32px; height: 32px; }
  .orb-ambient { display: none; }
}
