/* =========================
   GAMERLXXXVI — styles.css
   Black + Gold Identity
   OPTIMIZED FOR MOBILE
   ========================= */

:root{
  --bg:#070707;
  --panel:#111214;
  --panel2:#0d0e10;
  --line:rgba(255,255,255,.08);
  --soft:rgba(255,255,255,.06);
  --soft2:rgba(255,255,255,.04);

  --text:#ffffff;
  --muted:rgba(255,255,255,.72);
  --dim:rgba(255,255,255,.56);

  --gold:#ffd400;
  --amber:#ffb000;

  --shadow: 0 18px 60px rgba(0,0,0,.65);
  --shadow2: 0 10px 34px rgba(0,0,0,.55);
  --r:22px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 700px at 18% 12%, rgba(255,212,0,.12), transparent 55%),
              radial-gradient(1000px 650px at 82% 22%, rgba(255,176,0,.12), transparent 52%),
              radial-gradient(900px 700px at 50% 88%, rgba(255,212,0,.08), transparent 60%),
              #000;
}

a{color:inherit}
img{max-width:100%; height:auto}

/* Screen reader only (for SEO/accessibility) */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border-width:0;
}

/* =========================
   LAYOUT
   ========================= */

.wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 18px;
}

.bg-accent{
  position:fixed;
  inset:-120px;
  background:
    radial-gradient(900px 600px at 12% 18%, rgba(255,212,0,.18), transparent 55%),
    radial-gradient(800px 560px at 88% 18%, rgba(255,176,0,.10), transparent 55%);
  filter: blur(10px);
  pointer-events:none;
  z-index:0;
}

.card{
  position:relative;
  z-index:1;
  width:min(980px, 100%);
  border-radius:28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  padding:26px 26px 18px;
  overflow:hidden;
}

.card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 550px at 0% 0%, rgba(255,212,0,.12), transparent 50%),
    radial-gradient(900px 550px at 100% 0%, rgba(255,176,0,.08), transparent 55%);
  pointer-events:none;
  z-index:0;
}

.card > *{
  position:relative;
  z-index:1;
}

/* =========================
   HEADER
   ========================= */

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-bottom:16px;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.logo{
  height:44px;
  width:auto;
  display:block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
}

.tagline{
  font-size:12px;
  letter-spacing:.18em;
  font-weight:900;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.25);
}

/* =========================
   STATUS BAR
   ========================= */

.status{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:16px;
}

.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255,212,0,.15);
}

.status-text{
  font-weight:900;
  letter-spacing:.08em;
  font-size:13px;
}

.pill{
  margin-left:auto;
  font-size:12px;
  font-weight:800;
  padding:7px 12px;
  border-radius:999px;
  color:#1a1400;
  background: linear-gradient(180deg, var(--gold), var(--amber));
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}

/* =========================
   HERO
   ========================= */

h1{
  margin:18px 0 8px;
  font-size:44px;
  line-height:1.05;
  letter-spacing:-0.02em;
}

.sub{
  margin:0 0 18px;
  color:var(--muted);
  max-width:64ch;
}

/* =========================
   NEW: BIO SECTION
   ========================= */

.bio-section{
  margin-top:24px;
}

.section-heading{
  margin:0 0 12px 0;
  font-size:18px;
  font-weight:900;
  letter-spacing:.2px;
}

.bio-quote{
  margin:0;
  padding:16px;
  background:rgba(0,0,0,.22);
  border-left:3px solid var(--gold);
  border-radius:12px;
  font-style:italic;
  color:var(--muted);
}

.bio-quote p{
  margin:0 0 8px 0;
  line-height:1.5;
}

.bio-quote p:last-child{
  margin-bottom:0;
}

.bio-declaration{
  font-weight:900;
  color:var(--gold);
  font-style:normal;
  text-align:center;
  margin-top:12px;
  font-size:18px;
}

/* =========================
   NEW: SCHEDULE SECTION
   ========================= */

.schedule-section{
  margin-top:24px;
  margin-bottom:28px;
}

.schedule-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
}

.schedule-card{
  padding:16px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.schedule-card:hover{
  transform:translateY(-2px);
  border-color:rgba(255,212,0,.22);
  box-shadow: 0 16px 36px rgba(0,0,0,.6);
}

.schedule-marathon{
  border-color:rgba(255,212,0,.25);
}

.schedule-marathon:hover{
  border-color:rgba(255,212,0,.40);
}

.schedule-day{
  font-weight:900;
  color:var(--gold);
  margin-bottom:8px;
  font-size:14px;
}

.schedule-marathon .schedule-day{
  color:var(--gold);
}

.schedule-time{
  font-size:20px;
  font-weight:800;
  margin-bottom:4px;
}

.schedule-meta{
  font-size:12px;
  color:var(--dim);
}

/* =========================
   TILES GRID (PLATFORMS + NEWS)
   ========================= */

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}

.link{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 14px;
  border-radius:18px;
  text-decoration:none;

  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow2);

  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}

.link:hover{
  transform: translateY(-2px);
  border-color: rgba(255,212,0,.22);
  background: rgba(0,0,0,.28);
  box-shadow: 0 16px 36px rgba(0,0,0,.6);
}

.icon{
  width:34px;
  height:34px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:#fff;
  flex:0 0 34px;
}

.name{
  font-weight:800;
  font-size:15px;
  line-height:1.2;
  flex:1 1 auto;

  /* prevent ultra-long titles from wrecking layout */
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta{
  flex:0 0 auto;
  font-size:12px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
}

/* Subtle "brand" accents per platform (kept minimal) */
.link.yt:hover{ border-color: rgba(255,40,40,.25); }
.link.tw:hover{ border-color: rgba(160,110,255,.25); }
.link.kk:hover{ border-color: rgba(110,255,170,.20); }
.link.rb:hover{ border-color: rgba(255,180,80,.22); }
.link.tv:hover{ border-color: rgba(120,220,255,.18); }
.link.dl:hover{ border-color: rgba(255,120,200,.18); }
.link.xx:hover{ border-color: rgba(255,255,255,.18); }
.link.dc:hover{ border-color: rgba(120,170,255,.22); }
.link.nw:hover{ border-color: rgba(255,212,0,.22); }

/* =========================
   CLIPS (WITH EMBEDS)
   ========================= */

.clips-section{
  margin-top:26px;
}

.news-section{
  margin-top:28px;
}

.clips-section h2,
.news-section h2{
  margin:0 0 8px 0;
  font-size:18px;
  font-weight:900;
  letter-spacing:.2px;
}

.small{
  font-size:12px;
  color: var(--dim);
}

.dim{
  color: var(--dim);
}

.clips-grid{
  margin-top:10px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}

.clip-card{
  text-decoration:none;
  color:var(--text);
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  overflow:hidden;
  box-shadow: var(--shadow2);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.clip-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,212,0,.22);
  box-shadow: 0 16px 36px rgba(0,0,0,.6);
}

/* NEW: Clip embed container (16:9 aspect ratio) */
.clip-embed{
  position:relative;
  padding-bottom:56.25%;
  height:0;
  overflow:hidden;
  background:#000;
}

.clip-embed iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border:0;
}

.clip-card img{
  width:100%;
  display:block;
}

.clip-title{
  padding:12px 12px 14px;
  font-size:14px;
  font-weight:800;
  line-height:1.25;

  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* =========================
   FOOTER
   ========================= */

.footer{
  margin-top:22px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* === Platform Icons with Brand Colors === */

/* YouTube: gold (your theme) */
.link.yt .icon{
  color: var(--gold);
}

.link.yt .icon svg{
  width:18px;
  height:18px;
  display:block;
  color: inherit;
}

/* Twitch: purple with SVG icon */
.link.tw .icon{
  color: #9146FF;
}

.link.tw .icon svg{
  width:18px;
  height:18px;
  display:block;
  color: inherit;
}

/* Kick: bright green with SVG icon */
.link.kk .icon{
  color: #53FC18;
}

.link.kk .icon svg{
  width:18px;
  height:18px;
  display:block;
  color: inherit;
}

/* Rumble: green with SVG icon */
.link.rb .icon{
  color: #85C742;
}

.link.rb .icon svg{
  width:18px;
  height:18px;
  display:block;
  color: inherit;
}

/* Trovo: cyan blue with SVG icon */
.link.tv .icon{
  color: #00E4C3;
}

.link.tv .icon svg{
  width:18px;
  height:18px;
  display:block;
  color: inherit;
}

/* DLive: lemon yellow with SVG icon */
.link.dl .icon{
  color: #FFE600;
}

.link.dl .icon svg{
  width:18px;
  height:18px;
  display:block;
  color: inherit;
}

/* X (Twitter): white */
.link.xx .icon{
  color: #FFFFFF;
}

/* Discord: blurple with SVG icon */
.link.dc .icon{
  color: #5865F2;
}

.link.dc .icon svg{
  width:18px;
  height:18px;
  display:block;
  color: inherit;
}

/* Truth Social: blue-purple with SVG icon */
.link.ts .icon{
  color: #5A5FED;
}

.link.ts .icon svg{
  width:18px;
  height:18px;
  display:block;
  color: inherit;
}

/* =========================
   MOBILE: OPTIMIZED FOR iPHONE 13 PRO MAX & ALL DEVICES
   ========================= */

/* Tablets and smaller (iPad Mini, etc) */
@media (max-width: 820px){
  .clips-grid{
    grid-template-columns: 1fr;
  }
  
  .schedule-grid{
    grid-template-columns: 1fr;
  }
}

/* Main mobile breakpoint - catches most phones */
@media (max-width: 720px){

  /* Stop flex centering from cutting off the top */
  .wrap{
    display:block;
    padding:20px 16px 24px;
    min-height:auto;
  }

  /* Reduce card padding */
  .card{
    padding:20px 18px 16px;
    border-radius:24px;
  }

  /* Header adjustments */
  .top{
    gap:10px;
    padding-bottom:12px;
  }

  .logo{
    height:36px;
  }

  /* Responsive tagline - Much tighter for mobile */
  .tagline{
    font-size:8px;
    padding:5px 8px;
    letter-spacing:.04em; /* Very tight */
    flex-shrink:0;
    white-space:nowrap;
  }

  /* Status bar: stack if needed */
  .status{
    margin-top:12px;
    flex-wrap:wrap;
  }

  .status-text{
    font-size:12px;
    letter-spacing:.06em;
  }

  .pill{
    font-size:10px;
    padding:5px 9px;
  }

  /* Hero text scaling */
  h1{
    font-size:32px;
    margin:14px 0 8px;
  }

  .sub{
    font-size:15px;
    margin:0 0 16px;
  }

  /* Bio section mobile */
  .bio-section{
    margin-top:18px;
  }

  .bio-quote{
    padding:12px;
    font-size:14px;
  }

  .bio-declaration{
    font-size:16px;
  }

  /* Schedule section mobile */
  .schedule-section{
    margin-top:18px;
  }

  .schedule-grid{
    grid-template-columns:1fr;
  }

  .schedule-time{
    font-size:18px;
  }

  /* Platforms: ALWAYS one column on mobile */
  .grid-platforms{
    grid-template-columns: 1fr;
  }

  /* News grid: single column for breathing room */
  #newsGrid{
    grid-template-columns: 1fr;
  }

  /* Adjust tile elements */
  .link{
    padding:12px;
  }

  .icon{
    width:32px;
    height:32px;
    flex:0 0 32px;
  }

  .name{
    font-size:14px;
    -webkit-line-clamp: 3;
    min-width:0;
  }

  .meta{
    font-size:11px;
    padding:5px 8px;
    max-width: 40%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Clips section spacing */
  .clips-section,
  .news-section{
    margin-top:20px;
  }

  .clips-section h2,
  .news-section h2{
    font-size:16px;
  }

  .clips-grid{
    grid-template-columns: 1fr;
  }

  .clip-title{
    padding:10px;
    font-size:13px;
  }

  /* Footer adjustments */
  .footer{
    margin-top:18px;
    padding-top:12px;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  .footer .small{
    font-size:11px;
  }

  /* Prevent horizontal overflow */
  body{
    overflow-x:hidden;
  }
}

/* iPhone 13 Pro Max and similar large phones (414px - 430px) */
@media (max-width: 430px){
  .tagline{
    font-size:6px;
    letter-spacing:0; /* NO letter spacing */
    padding:3px 6px;
  }

  .top{
    gap:6px;
  }
  
  .logo{
    height:34px; /* Slightly smaller logo to give more room */
  }
  
  .bio-quote p{
    font-size:13px;
  }
}

/* Standard phones (iPhone SE, Galaxy S-series, etc) */
@media (max-width: 400px){
  h1{
    font-size:28px;
  }

  .card{
    padding:16px 14px;
  }

  .wrap{
    padding:16px 12px 20px;
  }

  .tagline{
    font-size:7px;
    letter-spacing:.02em;
    padding:4px 6px;
  }

  .bio-quote{
    font-size:13px;
  }

  .schedule-time{
    font-size:16px;
  }
}

/* Very small phones (iPhone SE 1st gen, small Androids) */
@media (max-width: 360px){
  .tagline{
    font-size:6px;
    letter-spacing:.01em;
    padding:3px 5px;
  }

  h1{
    font-size:26px;
  }

  .logo{
    height:32px;
  }
  
  .bio-quote p{
    font-size:12px;
  }
}

/* Ultra-small screens - Stack header vertically */
@media (max-width: 340px){
  .top{
    flex-direction:column;
    align-items:center;
    gap:10px;
  }

  .tagline{
    font-size:10px;
    letter-spacing:.10em;
    padding:6px 12px;
  }
  
  .logo{
    height:36px;
  }
}

/* ALTERNATIVE: If STILL cutting off on iPhone 13 Pro Max, uncomment this to abbreviate */
/*
@media (max-width: 430px){
  .tagline{
    font-size:0;
  }
  .tagline::before{
    content:"HUB";
    font-size:9px;
    letter-spacing:.08em;
  }
}
*/
