/*
Theme Name: Yazman Premier League
Theme URI: https://yazmanpremierleague.com
Author: Noman Irshaad
Author URI: https://yazmanpremierleague.com
Description: One-page dark, animated theme for the Yazman Premier League — the annual T20 hardball cricket tournament. Built as a single-page site: hero, about, format, teams (hidden for now), leadership, sponsors, and contact, all on one scrollable page.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
License: Unlicense
Text Domain: yazman-premier-league
*/

  :root{
    --bg: #0a0f0b;
    --bg-2: #0d130e;
    --card: #131a13;
    --card-hover: #182018;
    --line: rgba(241,236,221,0.09);
    --cream: #f1ecdd;
    --muted: #8fa08f;
    --ball: #b3231c;
    --ball-bright: #d8402f;
    --floodlight: #f4b740;
    --pitch: #2c5238;
  }

  *{ box-sizing: border-box; margin:0; padding:0; }
  html{ scroll-behavior: smooth; }
  body{
    background: var(--bg);
    color: var(--cream);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  ::selection{ background: var(--ball); color: var(--cream); }

  .display{ font-family: 'Anton', sans-serif; letter-spacing: 0.01em; text-transform: uppercase; }
  .mono{ font-family: 'Space Mono', monospace; }

  a{ color: inherit; text-decoration: none; }
  img{ max-width: 100%; display:block; }

  /* ---------- utility ---------- */
  .wrap{ max-width: 1180px; margin: 0 auto; padding: 0 28px; }
  .eyebrow{
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--floodlight);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .eyebrow::before{
    content:"";
    width: 26px; height: 1px;
    background: var(--floodlight);
    display:inline-block;
  }
  .btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding: 15px 28px;
    border-radius: 3px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    cursor:pointer;
    border: 1px solid transparent;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background .35s ease;
  }
  .btn-primary{
    background: linear-gradient(160deg, var(--ball-bright), var(--ball) 70%);
    color: var(--cream);
    box-shadow: 0 8px 24px -8px rgba(179,35,28,0.6);
  }
  .btn-primary:hover{ transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px -10px rgba(179,35,28,0.75); }
  .btn-ghost{
    border-color: rgba(241,236,221,0.25);
    color: var(--cream);
  }
  .btn-ghost:hover{ border-color: var(--floodlight); background: rgba(244,183,64,0.08); transform: translateY(-3px); }

  /* seam-stitch divider — signature motif */
  .seam{
    position: relative;
    height: 46px;
    width: 100%;
  }
  .seam svg{ width:100%; height:100%; display:block; }
  .seam path{
    fill:none;
    stroke: var(--ball);
    stroke-width: 2;
    stroke-dasharray: 2 10;
    stroke-linecap: round;
    opacity: .55;
  }

  /* reveal on scroll */
  .reveal{ opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
  .reveal.in{ opacity: 1; transform: translateY(0); }

  /* ---------- nav ---------- */
  header{
    position: fixed; top:0; left:0; right:0; z-index: 50;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(10,15,11,0.92), rgba(10,15,11,0));
    backdrop-filter: blur(6px);
  }
  nav{ display:flex; align-items:center; justify-content:space-between; }
  .brand{ display:flex; align-items:center; gap:12px; }
  .brand .mark{
    width: 34px; height: 34px; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #e4574a, var(--ball) 55%, #5a0f0b 100%);
    position: relative;
    box-shadow: 0 0 18px rgba(179,35,28,0.55);
  }
  .brand .mark::before, .brand .mark::after{
    content:"";
    position:absolute; top:50%; left:50%;
    width: 30px; height: 8px;
    border: 1px dashed rgba(241,236,221,0.6);
    border-radius: 50%;
  }
  .brand .mark::before{ transform: translate(-50%,-50%) rotate(20deg); }
  .brand .mark::after{ transform: translate(-50%,-50%) rotate(-20deg); }
  .brand .name{ font-family:'Anton', sans-serif; font-size: 15px; letter-spacing: 0.06em; line-height: 1.1; }
  .brand .name span{ display:block; font-family:'Space Mono', monospace; font-size:9px; letter-spacing:0.24em; color: var(--muted); text-transform: uppercase; margin-top:2px; }

  nav .links{ display:flex; gap: 34px; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; }
  nav .links a{ color: var(--muted); transition: color .25s ease; position:relative; }
  nav .links a:hover{ color: var(--cream); }
  @media (max-width: 820px){ nav .links{ display:none; } }

  /* ---------- hero ---------- */
  .hero{
    position: relative;
    min-height: 100svh;
    display:flex; align-items:center;
    padding-top: 110px;
    overflow: hidden;
    background:
      radial-gradient(ellipse 60% 45% at 18% 8%, rgba(244,183,64,0.14), transparent 60%),
      radial-gradient(ellipse 60% 45% at 85% 4%, rgba(244,183,64,0.1), transparent 60%),
      linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
  }
  .beam{
    position:absolute; top:-10%; width: 260px; height: 140%;
    background: linear-gradient(180deg, rgba(244,183,64,0.16), rgba(244,183,64,0) 70%);
    filter: blur(6px);
    transform-origin: top center;
    animation: sway 9s ease-in-out infinite;
    pointer-events:none;
  }
  .beam.b1{ left: 4%; transform: rotate(12deg); animation-delay: 0s; }
  .beam.b2{ right: 10%; transform: rotate(-14deg); animation-delay: 2.4s; }
  @keyframes sway{
    0%,100%{ transform: rotate(12deg) scaleY(1); opacity:.7; }
    50%{ transform: rotate(8deg) scaleY(1.04); opacity:1; }
  }

  .hero-grid{
    position:relative; z-index:2;
    display:grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items:center;
    width:100%;
  }
  @media (max-width: 900px){ .hero-grid{ grid-template-columns: 1fr; } }

  .hero h1{
    font-size: clamp(48px, 8vw, 98px);
    line-height: 0.94;
    color: var(--cream);
  }
  .hero h1 .accent{ color: var(--ball-bright); -webkit-text-stroke: 1px rgba(244,183,64,0.4); }
  .hero p.tag{
    margin-top: 22px; max-width: 480px;
    font-size: 17px; color: var(--muted); line-height: 1.6;
  }
  .cta-row{ display:flex; gap: 16px; margin-top: 36px; flex-wrap:wrap; }

  .season-badge{
    display:inline-flex; gap:10px; align-items:center;
    margin-bottom: 22px;
    padding: 8px 16px 8px 8px;
    border: 1px solid var(--line);
    border-radius: 100px;
    font-family:'Space Mono', monospace; font-size: 11px; letter-spacing:0.16em;
    color: var(--floodlight);
  }
  .season-badge .dot{
    width:8px; height:8px; border-radius:50%; background: var(--floodlight);
    box-shadow: 0 0 10px var(--floodlight);
    animation: pulse 1.8s ease-in-out infinite;
  }
  @keyframes pulse{ 0%,100%{ opacity:1; transform:scale(1);} 50%{opacity:.4; transform:scale(.7);} }

  /* 3D rotating ball */
  .ball-stage{
    perspective: 900px;
    display:flex; align-items:center; justify-content:center;
    height: 380px;
  }
  .ball3d{
    width: 220px; height: 220px; border-radius:50%;
    position:relative;
    transform-style: preserve-3d;
    animation: spin 11s linear infinite;
    background:
      radial-gradient(circle at 30% 26%, #e2574a 0%, var(--ball) 45%, #4a0d0a 100%);
    box-shadow:
      0 30px 60px -16px rgba(0,0,0,0.7),
      0 0 60px -10px rgba(179,35,28,0.45),
      inset -18px -18px 50px rgba(0,0,0,0.55),
      inset 14px 14px 40px rgba(255,180,150,0.18);
  }
  @keyframes spin{ from{ transform: rotateY(0deg) rotateX(8deg); } to{ transform: rotateY(360deg) rotateX(8deg); } }
  .ball3d .seam-line{
    position:absolute; inset:0; border-radius:50%;
    border: 2px dashed rgba(241,236,221,0.75);
  }
  .ball3d .seam-line.s1{ transform: rotate(18deg) scale(1.001); clip-path: inset(0 45% 0 0); }
  .ball3d .seam-line.s2{ transform: rotate(-162deg) scale(1.001); clip-path: inset(0 45% 0 0); }
  .ball-stage .ring{
    position:absolute; width: 300px; height: 300px; border-radius:50%;
    border: 1px dashed rgba(244,183,64,0.25);
    animation: spin 20s linear reverse infinite;
  }

  .scroll-cue{
    position:absolute; bottom: 34px; left:50%; transform:translateX(-50%);
    display:flex; flex-direction:column; align-items:center; gap:8px;
    font-family:'Space Mono', monospace; font-size:10px; letter-spacing:0.2em; color: var(--muted);
  }
  .scroll-cue .line{ width:1px; height:34px; background: linear-gradient(var(--muted), transparent); animation: drop 1.8s ease-in-out infinite; }
  @keyframes drop{ 0%{ opacity:0; transform: scaleY(0.4); transform-origin:top; } 50%{ opacity:1; transform: scaleY(1); } 100%{ opacity:0; transform: scaleY(0.4); transform-origin:bottom; } }

  /* ---------- section shell ---------- */
  section{ position: relative; padding: 120px 0; }
  .section-head{ max-width: 640px; margin-bottom: 64px; }
  .section-head h2{ font-size: clamp(32px,4.4vw,54px); margin-top: 14px; line-height: 1.02; }
  .section-head p{ margin-top: 16px; color: var(--muted); font-size: 16px; line-height:1.7; max-width: 520px; }

  /* ---------- stats ---------- */
  .stats-bar{
    display:grid; grid-template-columns: repeat(4,1fr); gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow:hidden;
  }
  .stat{
    background: var(--bg-2);
    padding: 34px 24px;
    text-align:center;
  }
  .stat .num{ font-family:'Space Mono', monospace; font-size: clamp(30px,4vw,44px); color: var(--floodlight); }
  .stat .lbl{ margin-top: 8px; font-size: 12px; letter-spacing:0.1em; text-transform:uppercase; color: var(--muted); }
  @media (max-width: 720px){ .stats-bar{ grid-template-columns: repeat(2,1fr);} }

  /* ---------- format / stages ---------- */
  .stages{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  @media (max-width: 980px){ .stages{ grid-template-columns: repeat(2,1fr);} }
  @media (max-width: 560px){ .stages{ grid-template-columns: 1fr;} }
  .stages-5{ grid-template-columns: repeat(5, 1fr); }
  @media (max-width: 1180px){ .stages-5{ grid-template-columns: repeat(3, 1fr);} }
  @media (max-width: 720px){ .stages-5{ grid-template-columns: repeat(2, 1fr);} }
  @media (max-width: 480px){ .stages-5{ grid-template-columns: 1fr;} }
  .stage-card{
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 30px 24px;
    position: relative;
    transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s ease, background .4s ease;
  }
  .stage-card:hover{ transform: translateY(-8px); border-color: rgba(244,183,64,0.35); background: var(--card-hover); }
  .stage-card .idx{ font-family:'Space Mono',monospace; font-size:13px; color: var(--ball-bright); letter-spacing:0.1em; }
  .stage-card h3{ font-size: 21px; margin-top: 14px; font-weight:600; }
  .stage-card p{ margin-top: 10px; font-size: 14px; color: var(--muted); line-height:1.6; }

  /* ---------- teams (3D tilt) ---------- */
  .teams-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
  @media (max-width: 900px){ .teams-grid{ grid-template-columns: repeat(2,1fr);} }
  @media (max-width: 560px){ .teams-grid{ grid-template-columns: 1fr;} }
  .team-card{
    perspective: 800px;
  }
  .team-card-inner{
    background: linear-gradient(160deg, var(--card), var(--bg-2));
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px 24px;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .25s ease, box-shadow .25s ease;
    will-change: transform;
  }
  .team-card-inner:hover{ box-shadow: 0 24px 50px -20px rgba(0,0,0,0.7); }
  .team-crest{
    width: 52px; height:52px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-family:'Anton',sans-serif; font-size: 18px;
    background: radial-gradient(circle at 32% 28%, var(--floodlight), #8a5f13 70%, #33230a 100%);
    color: #0a0f0b;
    margin-bottom: 20px;
  }
  .team-card h3{ font-size: 20px; }
  .team-card .region{ margin-top: 6px; font-size: 12px; letter-spacing:0.08em; text-transform:uppercase; color: var(--muted); }
  .team-card .stat-row{ display:flex; gap: 18px; margin-top: 20px; font-family:'Space Mono',monospace; font-size:12px; color: var(--muted); }
  .team-card .stat-row b{ color: var(--cream); display:block; font-size:15px; }

  /* ---------- leadership ---------- */
  .lead-panel{
    display:grid; grid-template-columns: 0.55fr 1fr; gap: 48px; align-items:center;
    background: linear-gradient(135deg, var(--card), var(--bg-2));
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 52px;
  }
  @media (max-width: 820px){ .lead-panel{ grid-template-columns: 1fr; padding: 34px; } }
  .lead-portrait{
    width: 100%; aspect-ratio: 1/1; border-radius: 10px;
    background:
      radial-gradient(circle at 30% 20%, rgba(244,183,64,0.35), transparent 55%),
      linear-gradient(160deg, #1b241a, #0a0f0b);
    border: 1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    position:relative;
    overflow:hidden;
  }
  .lead-portrait .initials{
    font-family:'Anton',sans-serif; font-size: 72px; color: rgba(241,236,221,0.9);
  }
  .lead-portrait::after{
    content:""; position:absolute; inset:0;
    background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(241,236,221,0.03) 18px 19px);
  }
  .lead-copy .role{ color: var(--floodlight); font-family:'Space Mono',monospace; font-size:12px; letter-spacing:0.16em; text-transform:uppercase; }
  .lead-copy h3{ font-size: clamp(28px,3.4vw,38px); margin-top: 12px; }
  .lead-copy p{ margin-top: 18px; color: var(--muted); line-height: 1.75; font-size: 15.5px; max-width: 560px; }
  .lead-copy .contact-line{ margin-top: 26px; display:flex; gap: 22px; flex-wrap:wrap; font-family:'Space Mono',monospace; font-size: 13.5px; }
  .lead-copy .contact-line a{ color: var(--cream); border-bottom: 1px solid rgba(241,236,221,0.25); padding-bottom:2px; transition: border-color .25s ease, color .25s ease; }
  .lead-copy .contact-line a:hover{ color: var(--floodlight); border-color: var(--floodlight); }

  /* ---------- partners ---------- */
  .partners-row{
    display:flex; flex-wrap:wrap; gap: 14px;
  }
  .partner-chip{
    padding: 14px 22px;
    border: 1px dashed var(--line);
    border-radius: 100px;
    font-family:'Space Mono',monospace; font-size: 12.5px; letter-spacing:0.06em; color: var(--muted);
    transition: color .3s ease, border-color .3s ease;
  }
  .partner-chip:hover{ color: var(--floodlight); border-color: var(--floodlight); }

  /* ---------- contact / footer ---------- */
  .contact-cta{
    text-align:center; max-width: 640px; margin: 0 auto;
  }
  .contact-cta h2{ font-size: clamp(34px,6vw,64px); }
  .contact-cta p{ margin-top: 18px; color: var(--muted); font-size: 16px; }
  .contact-cta .cta-row{ justify-content:center; margin-top: 34px; }

  footer{
    border-top: 1px solid var(--line);
    padding: 42px 0;
  }
  .foot-row{
    display:flex; justify-content:space-between; align-items:center; gap: 20px; flex-wrap:wrap;
    font-size: 13px; color: var(--muted);
  }
  .foot-row a:hover{ color: var(--floodlight); }

  .hidden-section{ display: none; }

  ::-webkit-scrollbar{ width: 10px; }
  ::-webkit-scrollbar-track{ background: var(--bg); }
  ::-webkit-scrollbar-thumb{ background: #26301f; border-radius: 10px; }

  @media (prefers-reduced-motion: reduce){
    *{ animation: none !important; transition: none !important; }
  }
