/* =========================================================
   PFL CINEMATIC CSS
   Master cinematic effects file for PFL pages
   File name: pfl-cinematic.css
   ========================================================= */

/* =========================
   1. GLOBAL CINEMATIC SETUP
   ========================= */

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
}

body.pfl-cinematic {
  background:
    radial-gradient(circle at 50% 0%, rgba(251,191,36,.18), transparent 30%),
    radial-gradient(circle at 15% 18%, rgba(220,38,38,.16), transparent 28%),
    linear-gradient(180deg, #030303 0%, #111827 50%, #050505 100%);
  color: #ffffff;
}

/* Page fade-in */
body.pfl-cinematic .pfl-page-reveal,
body.pfl-cinematic main,
body.pfl-cinematic .page,
body.pfl-cinematic center {
  animation: pflPageReveal .9s ease-out both;
}

@keyframes pflPageReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* =========================
   2. STADIUM LIGHT OVERLAY
   ========================= */

body.pfl-cinematic::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 38%, rgba(255,255,255,.07) 44%, transparent 52% 100%),
    linear-gradient(247deg, transparent 0 40%, rgba(251,191,36,.08) 48%, transparent 56% 100%);
  opacity: .62;
  animation: pflStadiumLights 7s ease-in-out infinite alternate;
}

@keyframes pflStadiumLights {
  from {
    transform: translateX(-28px) scale(1.02);
    opacity: .28;
  }
  to {
    transform: translateX(28px) scale(1.08);
    opacity: .78;
  }
}

/* =========================
   3. FLOATING PARTICLES
   ========================= */

body.pfl-cinematic::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(251,191,36,.62) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 95px 95px, 135px 135px;
  opacity: .14;
  animation: pflParticles 20s linear infinite;
}

@keyframes pflParticles {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 420px, 160px 520px;
  }
}

/* Keeps page content above cinematic overlays */
body.pfl-cinematic > * {
  position: relative;
  z-index: 2;
}

/* =========================
   4. CINEMATIC HERO BLOCK
   ========================= */

.pfl-cinematic-hero {
  position: relative;
  max-width: 1100px;
  margin: 18px auto 28px;
  padding: 42px 18px 36px;
  text-align: center;
  border: 1px solid rgba(251,191,36,.45);
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(rgba(0,0,0,.44), rgba(0,0,0,.84)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 2px, transparent 2px 72px),
    linear-gradient(0deg, #064e3b, #14532d);
  box-shadow:
    0 0 34px rgba(251,191,36,.30),
    0 20px 70px rgba(0,0,0,.72);
}

.pfl-cinematic-hero::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: linear-gradient(115deg, transparent 42%, rgba(251,191,36,.22) 49%, transparent 56%);
  animation: pflGoldSweep 4.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pflGoldSweep {
  0% {
    transform: translateX(-38%) rotate(8deg);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  70% {
    transform: translateX(38%) rotate(8deg);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.pfl-cinematic-label {
  position: relative;
  display: inline-block;
  padding: 7px 15px;
  border: 1px solid rgba(251,191,36,.65);
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(251,191,36,.28);
  animation: pflDropIn .7s ease-out .15s both;
}

.pfl-cinematic-title {
  position: relative;
  margin: 18px 0 8px;
  color: #fbbf24;
  font-size: clamp(32px, 6vw, 78px);
  line-height: .95;
  font-weight: 1000;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(251,191,36,.75),
    0 0 34px rgba(220,38,38,.50),
    0 6px 0 #641111;
  animation: pflTitleRise .9s ease-out .32s both;
}

.pfl-cinematic-subtitle {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  color: #f5f5f5;
  font-size: clamp(15px, 2.3vw, 22px);
  line-height: 1.35;
  text-shadow: 0 3px 12px #000;
  animation: pflFadeUp .8s ease-out .55s both;
}

@keyframes pflDropIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pflTitleRise {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pflFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   5. CINEMATIC CARDS
   ========================= */

.pfl-cinematic-card {
  background: rgba(0,0,0,.74);
  border: 1px solid rgba(251,191,36,.34);
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(0,0,0,.62);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.pfl-cinematic-card:hover {
  transform: translateY(-7px) scale(1.025);
  border-color: rgba(251,191,36,.78);
  box-shadow:
    0 0 26px rgba(251,191,36,.28),
    0 24px 52px rgba(0,0,0,.75);
}

.pfl-reveal-card {
  opacity: 0;
  transform: translateY(18px);
  animation: pflCardReveal .7s ease-out both;
}

.pfl-reveal-card:nth-child(1) { animation-delay: .18s; }
.pfl-reveal-card:nth-child(2) { animation-delay: .30s; }
.pfl-reveal-card:nth-child(3) { animation-delay: .42s; }
.pfl-reveal-card:nth-child(4) { animation-delay: .54s; }
.pfl-reveal-card:nth-child(5) { animation-delay: .66s; }
.pfl-reveal-card:nth-child(6) { animation-delay: .78s; }

@keyframes pflCardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   6. GLOW HEADERS / TEXT
   ========================= */

.pfl-glow-gold {
  color: #fbbf24;
  text-shadow:
    0 0 10px rgba(251,191,36,.75),
    0 0 24px rgba(251,191,36,.42);
}

.pfl-glow-red {
  color: #ef4444;
  text-shadow:
    0 0 10px rgba(239,68,68,.70),
    0 0 26px rgba(220,38,38,.46);
}

.pfl-metal-gold {
  color: #fbbf24;
  background: linear-gradient(90deg, #f59e0b, #fef3c7, #fbbf24, #92400e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

/* =========================
   7. PFL NETWORK TICKER
   ========================= */

.pfl-network-ticker {
  max-width: 1100px;
  margin: 0 auto 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(251,191,36,.38);
  background: #050505;
  box-shadow: 0 10px 35px rgba(0,0,0,.65);
}

.pfl-network-ticker-inner {
  white-space: nowrap;
  padding: 12px 0;
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  animation: pflTicker 20s linear infinite;
}

.pfl-network-ticker-inner span {
  margin-right: 44px;
}

@keyframes pflTicker {
  from { transform: translateX(100%); }
  to { transform: translateX(-145%); }
}

/* =========================
   8. PAGE MOOD VARIATIONS
   ========================= */

body.pfl-pro .pfl-cinematic-hero {
  background:
    linear-gradient(rgba(0,0,0,.46), rgba(0,0,0,.86)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 2px, transparent 2px 72px),
    linear-gradient(0deg, #064e3b, #14532d);
}

body.pfl-college .pfl-cinematic-hero,
body.pflu .pfl-cinematic-hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(251,191,36,.30), transparent 34%),
    linear-gradient(rgba(0,0,0,.38), rgba(0,0,0,.84)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 2px, transparent 2px 72px),
    linear-gradient(0deg, #14532d, #15803d);
}

body.pfl-survival .pfl-cinematic-hero {
  background:
    radial-gradient(circle at 50% 12%, rgba(239,68,68,.36), transparent 35%),
    linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.90)),
    linear-gradient(0deg, #1f0303, #450a0a);
  border-color: rgba(239,68,68,.48);
  box-shadow:
    0 0 34px rgba(239,68,68,.24),
    0 20px 70px rgba(0,0,0,.75);
}

/* =========================
   9. RETURN TO TOP BUTTON
   ========================= */

.pfl-top-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(251,191,36,.65);
  background: rgba(0,0,0,.78);
  color: #fbbf24 !important;
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(251,191,36,.30), 0 10px 24px rgba(0,0,0,.55);
  transition: transform .25s ease, box-shadow .25s ease;
}

.pfl-top-button:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 0 26px rgba(251,191,36,.50), 0 14px 32px rgba(0,0,0,.70);
}

/* =========================
   10. MOBILE POLISH
   ========================= */

@media (max-width: 760px) {
  .pfl-cinematic-hero {
    margin: 12px auto 20px;
    padding: 34px 14px 30px;
    border-radius: 20px;
  }

  .pfl-cinematic-title {
    font-size: clamp(30px, 11vw, 54px);
  }

  .pfl-network-ticker-inner {
    font-size: 13px;
  }

  .pfl-cinematic-card:hover {
    transform: translateY(-4px) scale(1.015);
  }
}

/* =========================
   11. ACCESSIBILITY
   Reduces motion for users who prefer less animation
   ========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
/* =========================================================
   HALL OF CHAMPIONS MICRO CINEMATIC HERO ENTRANCE
   ========================================================= */

.hoc-hero {
  animation: hocHeroReveal 1.15s ease-out both;
  animation-delay: .15s;
}

.hoc-kicker {
  animation: hocHeroItemReveal .75s ease-out both;
  animation-delay: .45s;
}

.hoc-hero h1 {
  animation:
    hocHeroTitleReveal .95s ease-out both,
    titleGlow 4s ease-in-out infinite;
  animation-delay: .65s, 0s;
}

.hoc-sub {
  animation: hocHeroItemReveal .75s ease-out both;
  animation-delay: .95s;
}

.hoc-statement {
  animation: hocHeroItemReveal .75s ease-out both;
  animation-delay: 1.15s;
}

.dynasty-legend {
  animation: hocHeroItemReveal .75s ease-out both;
  animation-delay: 1.35s;
}

@keyframes hocHeroReveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.985);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes hocHeroItemReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hocHeroTitleReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.96);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* =========================================================
   HOMEPAGE HERO CINEMATIC ENTRANCE
   ========================================================= */

.pfl-home-hero{
  animation:pflHomeHeroReveal 1.25s ease-out both;
}

.pfl-home-hero img{
  animation:
    pflHomeHeroImage 1.15s ease-out both;
}

.pfl-home-hero .pfl-home-overlay{
  animation:
    pflHomeOverlayReveal 1.4s ease-out both;
  animation-delay:.35s;
}

.pfl-ticker-wrap{
  animation:
    pflTickerReveal 1s ease-out both;
  animation-delay:1.05s;
}

@keyframes pflHomeHeroReveal{
  from{
    opacity:0;
    transform:translateY(26px);
    filter:blur(5px);
  }

  to{
    opacity:1;
    transform:translateY(0);
    filter:blur(0);
  }
}

@keyframes pflHomeHeroImage{
  from{
    opacity:0;
    transform:scale(1.02);
    filter:brightness(.7);
  }

  to{
    opacity:1;
    transform:scale(1);
    filter:brightness(1);
  }
}

@keyframes pflHomeOverlayReveal{
  from{
    opacity:0;
    transform:translateY(18px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes pflTickerReveal{
  from{
    opacity:0;
    transform:translateY(14px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* =========================================================
   HOMEPAGE WOW PACKAGE
   Spotlight Glow + Particles + Story Reveal
   ========================================================= */

/* 1. Spotlight glow over homepage hero */
.pfl-home-hero {
  position: relative;
  overflow: hidden;
}

.pfl-home-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    linear-gradient(115deg, transparent 38%, rgba(255,255,255,.14) 48%, transparent 58%),
    linear-gradient(245deg, transparent 40%, rgba(251,191,36,.16) 50%, transparent 60%);
  animation: pflHomeSpotlight 6.5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
}

@keyframes pflHomeSpotlight {
  from {
    transform: translateX(-35px) scale(1.03);
    opacity: .25;
  }
  to {
    transform: translateX(35px) scale(1.08);
    opacity: .75;
  }
}

/* Keeps overlay text above the spotlight */
.pfl-home-hero img,
.pfl-home-overlay {
  position: relative;
  z-index: 3;
}

/* 2. Floating particles around homepage hero */
.pfl-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(251,191,36,.75) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 75px 75px, 115px 115px;
  opacity: .14;
  animation: pflHomeParticles 18s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes pflHomeParticles {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 360px, 120px 460px;
  }
}

/* 3. Featured Insider story reveal */
.pfl-story-reveal {
  animation: pflStoryReveal 1.1s ease-out both;
  animation-delay: 1.25s;
}

@keyframes pflStoryReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(.985);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
/* =========================================================
   HOMEPAGE WOW PACKAGE
   Spotlight Glow + Particles + Story Reveal
   ========================================================= */

/* 1. Spotlight glow over homepage hero */
.pfl-home-hero {
  position: relative;
  overflow: hidden;
}

.pfl-home-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    linear-gradient(115deg, transparent 38%, rgba(255,255,255,.14) 48%, transparent 58%),
    linear-gradient(245deg, transparent 40%, rgba(251,191,36,.16) 50%, transparent 60%);
  animation: pflHomeSpotlight 6.5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
}

@keyframes pflHomeSpotlight {
  from {
    transform: translateX(-35px) scale(1.03);
    opacity: .25;
  }
  to {
    transform: translateX(35px) scale(1.08);
    opacity: .75;
  }
}

/* Keeps overlay text above the spotlight */
.pfl-home-hero img,
.pfl-home-overlay {
  position: relative;
  z-index: 3;
}

/* 2. Floating particles around homepage hero */
.pfl-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(251,191,36,.75) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 75px 75px, 115px 115px;
  opacity: .14;
  animation: pflHomeParticles 18s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes pflHomeParticles {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 360px, 120px 460px;
  }
}

/* 3. Featured Insider story reveal */
.pfl-story-reveal {
  animation: pflStoryReveal 1.1s ease-out both;
  animation-delay: 1.25s;
}

@keyframes pflStoryReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(.985);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.pfl-banner-sparkle{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
  background:
    linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 48%, rgba(251,191,36,.30) 52%, transparent 65%),
    radial-gradient(circle, rgba(251,191,36,.95) 1px, transparent 1px);
  background-size:100% 100%, 48px 48px;
  opacity:.28;
  animation:pflBannerSparkle 6s ease-in-out infinite;
}

@keyframes pflBannerSparkle{
  0%{background-position:-220px 0, 0 0; opacity:.10;}
  45%{opacity:.35;}
  100%{background-position:520px 0, 0 220px; opacity:.10;}
}

.pfl-banner-sparkle{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:999;
  background:rgba(255,0,0,.25);
}

.pfl-hero-lightshow{
  position:absolute;
  inset:0;
  z-index:999;
  pointer-events:none;
  overflow:hidden;

  background:
    radial-gradient(circle at 50% 12%, rgba(251,191,36,.12), transparent 38%);
}

.pfl-hero-lightshow::before{
  content:"";
  position:absolute;
  top:-40%;
  left:-65%;
  width:70%;
  height:220%;

  background:linear-gradient(
    115deg,
    transparent 0%,
    rgba(255,255,255,.08) 42%,
    rgba(251,191,36,.24) 50%,
    rgba(255,255,255,.10) 58%,
    transparent 100%
  );

  transform:rotate(10deg);
  animation:pflHeroSweep 6s ease-in-out infinite;
}

.pfl-hero-lightshow::after{
  content:"";
  position:absolute;
  inset:0;

  background-image:
    radial-gradient(circle, rgba(251,191,36,.85) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.35) 1px, transparent 1px);

  background-size:55px 55px, 95px 95px;
  opacity:.18;
  animation:pflHeroParticles 18s linear infinite;
}

/* Moving spotlight sweep */
.pfl-hero-lightshow::before{
  content:"";
  position:absolute;
  top:-40%;
  left:-65%;
  width:70%;
  height:220%;

  background:linear-gradient(
    115deg,
    transparent 0%,
    rgba(255,255,255,.08) 42%,
    rgba(251,191,36,.24) 50%,
    rgba(255,255,255,.10) 58%,
    transparent 100%
  );

  transform:rotate(10deg);

  animation:pflHeroSweep 6s ease-in-out infinite;
}

/* Floating particles */
.pfl-hero-lightshow::after{
  content:"";
  position:absolute;
  inset:0;

  background-image:
    radial-gradient(circle, rgba(251,191,36,.85) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.35) 1px, transparent 1px);

  background-size:55px 55px, 95px 95px;

  opacity:.18;

  animation:pflHeroParticles 18s linear infinite;
}

@keyframes pflHeroSweep{

  0%{
    left:-75%;
    opacity:0;
  }

  30%{
    opacity:.85;
  }

  65%{
    left:120%;
    opacity:0;
  }

  100%{
    left:120%;
    opacity:0;
  }
}

@keyframes pflHeroParticles{

  from{
    background-position:0 0, 0 0;
  }

  to{
    background-position:0 320px, 120px 420px;
  }
}