
/* MOVIEWARD CINEMATIC ANIMATION PACK */
:root {
  --cinema-teal: #3aafa9;
}

/* Animated navigation */
header {
  position: relative;
  isolation: isolate;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg, transparent, #3aafa9,
    #a4fff4, #3aafa9, transparent
  );
  background-size: 200% 100%;
  animation: pfNavLight 7s linear infinite;
}

@keyframes pfNavLight {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

header a,
header button {
  transition:
    transform .3s ease,
    filter .3s ease,
    color .3s ease,
    box-shadow .3s ease;
}

header a:hover,
header button:hover {
  filter: drop-shadow(0 0 9px #3aafa980);
  transform: translateY(-2px);
}

/* Cinematic hero overlays */
#hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.pf-cinema-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.pf-cinema-spotlight {
  position: absolute;
  width: 45%;
  height: 130%;
  top: -25%;
  opacity: .16;
  filter: blur(45px);
  background: linear-gradient(
    180deg,
    #63fff177,
    #3aafa922 40%,
    transparent 85%
  );
  transform-origin: top center;
  animation: pfSpotlight 11s ease-in-out infinite alternate;
}

.pf-cinema-spotlight.one {
  left: 10%;
  transform: rotate(-25deg);
}

.pf-cinema-spotlight.two {
  right: 5%;
  animation-delay: -5s;
  animation-duration: 14s;
}

@keyframes pfSpotlight {
  from { transform: rotate(-32deg) translateX(-10%); }
  to { transform: rotate(22deg) translateX(12%); }
}

/* Floating cinematic particles */
.pf-cinema-particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: var(--x);
  top: var(--y);
  border-radius: 50%;
  background: #82fff3;
  opacity: 0;
  box-shadow: 0 0 12px #3aafa9;
  animation: pfParticle var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes pfParticle {
  0%, 100% {
    opacity: 0;
    transform: translate3d(0,15px,0);
  }
  45% {
    opacity: .65;
  }
  80% {
    opacity: .15;
    transform: translate3d(20px,-70px,0);
  }
}

/* CSS 3D-style film reel */
.pf-cinema-reel {
  position: absolute;
  right: 7%;
  top: 24%;
  width: clamp(120px, 17vw, 230px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .48;
  border: 10px solid #295b5e;
  background:
    radial-gradient(circle, #08191b 0 12%, #6cded3 13% 16%,
      transparent 17%),
    repeating-conic-gradient(
      from 0deg,
      #071d20 0deg 22deg,
      #65c5bd 23deg 29deg,
      #102e32 30deg 60deg
    );
  box-shadow:
    inset 0 0 35px #000,
    0 0 35px #3aafa955,
    0 25px 60px #0009;
  animation: pfReelSpin 25s linear infinite,
             pfReelFloat 6s ease-in-out infinite;
}

.pf-cinema-reel::before {
  content: "";
  position: absolute;
  inset: 20%;
  border: 3px solid #6dd9cf;
  border-radius: 50%;
  box-shadow: 0 0 20px #3aafa977;
}

@keyframes pfReelSpin {
  to { rotate: 360deg; }
}

@keyframes pfReelFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* Keep actual hero content above decorative effects */
#hero .hero-content,
#hero .hero-side {
  position: relative;
  z-index: 3;
}

/* Premium movie card interactions */
.movie-card,
.poster-card,
.pf-movie-card,
.pf-premium-card {
  transition:
    transform .4s cubic-bezier(.2,.8,.2,1),
    box-shadow .4s ease,
    border-color .4s ease;
}

.movie-card:hover,
.poster-card:hover,
.pf-movie-card:hover,
.pf-premium-card:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow:
    0 20px 45px #0009,
    0 0 25px #3aafa933;
}

/* Scroll entrance animations */
.pf-cinema-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .75s ease,
    transform .75s cubic-bezier(.2,.8,.2,1);
}

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

/* Patreon glow */
.pf-patreon-nav,
.pf-patreon-join {
  animation: pfSupportGlow 3.5s ease-in-out infinite;
}

@keyframes pfSupportGlow {
  0%,100% { box-shadow: 0 0 10px #3aafa955; }
  50% { box-shadow: 0 0 27px #3aafa988; }
}

@media (max-width: 800px) {
  .pf-cinema-reel {
    right: -35px;
    top: 18%;
    width: 125px;
    opacity: .18;
  }
  .pf-cinema-spotlight { opacity: .08; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-cinema-atmosphere *,
  .pf-patreon-nav,
  .pf-patreon-join,
  header::after {
    animation: none !important;
  }
  .pf-cinema-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .movie-card,
  .poster-card,
  .pf-movie-card,
  .pf-premium-card {
    transition: none !important;
  }
}


/* MOVIEWARD_SHOWCASE_TEAL_FIX_V1 */

/* Replace original red cards with Ocean Teal */
.red-showcase .red-stack-card {
    background: linear-gradient(
        145deg,
        #173d40 0%,
        #10292d 55%,
        #071b1e 100%
    ) !important;

    border: 2px solid rgba(93, 225, 216, .65) !important;

    color: #b8fff7 !important;

    box-shadow:
        0 0 20px rgba(58,175,169,.18),
        0 25px 55px rgba(0,0,0,.5),
        inset 0 0 35px rgba(58,175,169,.1) !important;

    animation: pfShowcaseFloat 6s ease-in-out infinite;
    transition: box-shadow .4s ease, filter .4s ease;
}

.red-showcase .red-stack-card:nth-child(2) {
    animation-delay: -2s;
}

.red-showcase .red-stack-card:nth-child(3) {
    animation-delay: -4s;
}

.red-showcase .red-stack-card:hover {
    box-shadow:
        0 0 35px rgba(58,175,169,.55),
        0 30px 65px rgba(0,0,0,.6) !important;
    filter: brightness(1.2);
}

@keyframes pfShowcaseFloat {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -12px;
    }
}

/* Change showcase background to match */
.red-showcase {
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(58,175,169,.18),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            #102a2e,
            #1a3d40,
            #0a1d20
        ) !important;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .red-showcase .red-stack-card {
        animation: none !important;
    }
}
