/* CubeMeet-style clean home skin
   - Non-destructive: overlays on your existing /styles/*.css
   - Uses system font stack; keeps topbar + drawer from your theme
*/
:root{
  --hc-bg: #f7f9fc;
  --hc-card: #ffffff;
  --hc-text: #0f172a;
  --hc-muted: #52627a;

  /* Accent: your request was yellow highlight + gold for premium */
  --hc-accent: #2563eb;     /* Blue for UI (like reference) */
  --hc-accent2: #6d28d9;    /* Violet blend */
  --hc-yellow: #ffd400;     /* Highlight */
  --hc-gold: #d7b100;       /* Premium gold */

  --hc-border: rgba(15, 23, 42, 0.10);
  --hc-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
  --hc-radius: 18px;
}

body{
  background: var(--hc-bg);
}

.hc{
  padding: 34px 0 54px;
}

.hc-hero{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;

  background:
    radial-gradient(900px 500px at 25% 20%, rgba(37, 99, 235, 0.08), transparent 60%),
    radial-gradient(900px 500px at 75% 40%, rgba(109, 40, 217, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff, #f4f8ff);
  border: 1px solid var(--hc-border);
  border-radius: calc(var(--hc-radius) + 6px);
  box-shadow: var(--hc-shadow);
  padding: 34px;
  overflow: hidden;
}

.hc-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2a44;
  background: rgba(255, 212, 0, 0.18);
  border: 1px solid rgba(255, 212, 0, 0.35);
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hc-title{
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--hc-text);
}

.hc-grad{
  background: linear-gradient(90deg, var(--hc-accent), var(--hc-accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hc-sub{
  margin: 16px 0 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--hc-muted);
  max-width: 54ch;
}

.hc-ctas{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hc-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  user-select: none;
}

.hc-btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 24px rgba(2, 6, 23, 0.10); }
.hc-btn:active{ transform: translateY(0px); box-shadow: none; }

.hc-primary{
  background: linear-gradient(90deg, var(--hc-accent), var(--hc-accent2));
  color: #fff;
}

.hc-ghost{
  background: rgba(255,255,255,0.65);
  color: var(--hc-text);
  border-color: rgba(15, 23, 42, 0.14);
}

.hc-heroRight{
  position: relative;
  min-height: 320px;
}

.hc-cubeGlow{
  position: absolute;
  inset: -40px -40px -40px -40px;
  background:
    radial-gradient(260px 260px at 45% 40%, rgba(37, 99, 235, 0.16), transparent 60%),
    radial-gradient(300px 260px at 65% 55%, rgba(109, 40, 217, 0.16), transparent 60%);
  filter: blur(2px);
}

.hc-cubeCard{
  position: absolute;
  right: 10px;
  top: 36px;
  width: 270px;
  height: 270px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.12), rgba(109, 40, 217, 0.10));
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.10);
  transform: rotate(10deg);
}

.hc-stats{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hc-stat{
  background: var(--hc-card);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.05);
  padding: 18px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.hc-statIcon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.hc-statNum{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--hc-text);
}

.hc-statLabel{
  font-size: 13px;
  color: var(--hc-muted);
  margin-top: 2px;
}

.hc-section{
  margin-top: 38px;
}

.hc-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.hc-head h2{
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--hc-text);
}
.hc-head p{
  margin: 6px 0 0;
  color: var(--hc-muted);
}

.hc-link{
  font-weight: 800;
  text-decoration: none;
  color: var(--hc-accent);
}

.hc-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hc-card{
  background: var(--hc-card);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.06);
  padding: 18px;
  overflow: hidden;
}

.hc-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hc-title2{
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--hc-text);
}

.hc-pill{
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(37, 99, 235, 0.20);
  color: var(--hc-accent);
  background: rgba(37, 99, 235, 0.08);
  white-space: nowrap;
}

.hc-meta{
  margin-top: 10px;
  display: grid;
  gap: 8px;
  color: var(--hc-muted);
  font-size: 14px;
}

.hc-metaLine{
  display: flex;
  gap: 10px;
  align-items: center;
}
.hc-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 212, 0, 0.75);
  border: 1px solid rgba(215, 177, 0, 0.55);
}

.hc-events{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hc-chip{
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  color: #1f2a44;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.07);
}

.hc-actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.hc-action{
  flex: 1;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: var(--hc-text);
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.hc-action.primary{
  border-color: rgba(37, 99, 235, 0.20);
  background: rgba(37, 99, 235, 0.10);
  color: var(--hc-accent);
}

.hc-action:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.08);
}

.hc-band{
  margin-top: 42px;
  padding: 26px 24px;
  border-radius: calc(var(--hc-radius) + 10px);
  background: linear-gradient(90deg, rgba(37,99,235,0.92), rgba(109,40,217,0.92));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.12);
}
.hc-band h3{ margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.hc-band p{ margin: 6px 0 0; opacity: 0.9; }

.hc-footer{
  margin-top: 40px;
  background: rgba(15, 23, 42, 0.95);
  color: rgba(255,255,255,0.78);
  padding: 28px 0;
}
.hc-footerInner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.hc-footBrand{
  font-weight: 900;
  color: #fff;
}
.hcs
.hc-footLinks{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hc-footLinks a{
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-weight: 700;
}
.hc-footLinks a:hover{ color: #fff; }

/* Mobile */
@media (max-width: 980px){
  .hc-hero{ grid-template-columns: 1fr; padding: 26px; }
  .hc-heroRight{ min-height: 220px; }
  .hc-cubeCard{ width: 220px; height: 220px; right: 6px; top: 10px; }
  .hc-stats{ grid-template-columns: 1fr 1fr; }
  .hc-grid{ grid-template-columns: 1fr; }
  .hc-band{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px){
  .hc{ padding: 20px 0 44px; }
  .hc-stats{ grid-template-columns: 1fr; }
  .hc-title{ font-size: 42px; }
}


@media (max-width: 520px){
  .hc-heroRight{ display:none; }
}

/* ---------------- All Competitions tabs + slider ---------------- */
.hc-filterRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:12px;
  flex-wrap:wrap;
}

.hc-filterTabs{
  display:inline-flex;
  gap:8px;
  padding:8px;
  border-radius:999px;
  border:1px solid var(--hc-border);
  background:rgba(255,255,255,0.85);
  box-shadow:0 8px 18px rgba(2, 6, 23, 0.05);
}

.hc-tab{
  appearance:none;
  border:1px solid transparent;
  background:rgba(15, 23, 42, 0.04);
  color:var(--hc-text);
  font-weight:900;
  font-size:13px;
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.hc-tab:hover{ transform: translateY(-1px); }
.hc-tab.on{
  background:linear-gradient(90deg, var(--hc-accent), var(--hc-accent2));
  color:#fff;
}

.hc-arrows{ display:flex; gap:10px; align-items:center; }
.hc-arrow{
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(15, 23, 42, 0.14);
  background:#fff;
  color:var(--hc-text);
  font-weight:900;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.06);
}
.hc-arrow:hover{ transform: translateY(-1px); }
.hc-arrow:active{ transform: translateY(0px); box-shadow:none; }

.hc-slider{
  margin-top:14px;
  border-radius: calc(var(--hc-radius) + 6px);
  border: 1px solid var(--hc-border);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.06);
  padding: 12px;
  overflow: hidden;
}

.hc-track{
  display:flex;
  gap:14px;
  overflow:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  padding: 4px 4px 10px;
}
.hc-track::-webkit-scrollbar{ height:8px; }
.hc-track::-webkit-scrollbar-thumb{ background:rgba(2,6,23,.18); border-radius:999px; }

.hc-slide{
  scroll-snap-align:start;
  flex: 0 0 360px;
  max-width: 360px;
}

/* Equal card height */
.hc-slide .hc-card{
  height:100%;
  min-height:300px;
  display:flex;
  flex-direction:column;
}
.hc-slide .hc-actions{ margin-top:auto; }

@media (max-width: 980px){
  .hc-slide{ flex-basis: 320px; max-width:320px; }
}
@media (max-width: 640px){
  .hc-filterTabs{ width:100%; }
  .hc-arrows{ width:100%; justify-content:flex-end; }
  .hc-slide{ flex-basis: 86vw; max-width:86vw; }
}

/* --- Featured poster banner (2:1) --- */
.hc-banner{
  width:100%;
  aspect-ratio: 2 / 1;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.04);
  margin-bottom: 12px;
}
.hc-banner img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* --- Status pills --- */
.hc-pill.pill-green{
  border-color: rgba(16,185,129,.28);
  background: rgba(16,185,129,.12);
  color: rgba(6,95,70,1);
}
.hc-pill.pill-red{
  border-color: rgba(239,68,68,.30);
  background: rgba(239,68,68,.12);
  color: rgba(127,29,29,1);
}
.hc-pill.pill-amber{
  border-color: rgba(180, 83, 9, .25);
  background: rgba(251, 191, 36, .18);
  color: rgba(120, 53, 15, 1);
}
.hc-pill.pill-redLive{
  border-color: rgba(239,68,68,.30);
  background: rgba(239,68,68,.12);
  color: rgba(127,29,29,1);
}

.hc-action.primary.disabled{
  cursor:not-allowed;
  opacity:1;
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.14);
  color: rgba(15, 23, 42, 0.65);
  box-shadow:none;
  transform:none !important;
}

@media (max-width: 640px){
  .hc-filterRow .hc-arrows{ display:none; }
  .hc-arrowsMobile{ display:flex; }
}

/* --- Clean footer --- */
.hc-footer{
  margin-top: 34px;
  background: transparent;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  color: rgba(15, 23, 42, 0.70);
  padding: 18px 0;
}
.hc-footerInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.hc-footBrand{
  font-weight: 950;
  color: rgba(15, 23, 42, 0.92);
}
.hc-footLinks a{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.05);
  color: rgba(15, 23, 42, 0.78);
  font-weight: 800;
}
.hc-footLinks a:hover{ color: rgba(15, 23, 42, 0.95); transform: translateY(-1px); }
@media (max-width: 520px){
  .hc-footLinks{ width:100%; display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
  .hc-footLinks a{ text-align:center; }
}

/* View all button below All competitions block */
.hc-viewAllBelow{
  display:flex;
  justify-content:center;
  margin-top: 14px;
}
.hc-viewAllBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 950;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255,255,255,0.92);
  color: rgba(15, 23, 42, 0.86);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.06);
  text-decoration:none;
}
.hc-viewAllBtn:hover{ transform: translateY(-1px); }

/* Slider arrows: desktop only (mobile is scrollable by swipe) */
@media (max-width: 640px){
  .hc-filterRow .hc-arrows{ display:none !important; }
}


/* =========================================================
   ✅ HOME-CLEAN GLOBAL THEME OVERRIDES (applied across pages)
   - Keeps your existing selectors + logic intact
   - Unifies tokens so all pages instantly match the home-clean vibe
========================================================= */
:root{
  --ink:#0f172a;
  --muted: rgba(15,23,42,.68);
  --line-soft: rgba(15,23,42,.10);
  --line: rgba(15,23,42,.14);

  --bg:#f7f9fc;
  --surface:#ffffff;
  --surface2:#fbfbfd;

  --shadow: 0 16px 40px rgba(15,23,42,.10);
  --shadow2: 0 8px 22px rgba(15,23,42,.10);

  --r:22px;
  --r2:16px;

  --violet:#6d28d9;
  --cyan:#0891b2;
  --pink:#db2777;

  --goldBg: rgba(255,247,220,.92);
  --goldBd: rgba(184,134,11,.22);
  --goldTx: #7a5a10;

  --amberBg: rgba(245,158,11,.16);
  --amberBd: rgba(245,158,11,.30);
  --amberTx: #8a5a00;

  --greenBg: rgba(22,163,74,.12);
  --greenBd: rgba(22,163,74,.22);
  --greenTx: #14532d;

  --purpleBg: rgba(109,40,217,.10);
  --purpleBd: rgba(109,40,217,.22);

  --pinkBg: rgba(219,39,119,.10);
  --pinkBd: rgba(219,39,119,.20);

  --cyanBg: rgba(14,165,233,.10);
  --cyanBd: rgba(14,165,233,.20);
}

/* Global base feel */
html, body{
  background: var(--bg);
  color: var(--ink);
}

/* Keep your bold-heavy aesthetic consistent */
body, body *{
  letter-spacing: .02px;
}

/* Generic cards/buttons/pills fallback (non-destructive) */
.card, .panel, .box,
.detailCard, .rulesCard,
.cvCard, .rkCard, .resCard,
.psCard{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
}

.btn, button, .button, .rkTab, .resChip, .rkChip, .psBtn{
  border-radius: 14px;
}

.pill, .chip, .rkChip, .resChip{
  border-radius: 999px;
}


/* =========================================================
   ✅ HOME-CLEAN THEME — STRONG OVERRIDES (V3)
   Purpose: make the change UNMISSABLE even if other CSS wins.
   - Uses !important on tokens + base elements
   - Gives a very clear background + card style
========================================================= */
:root{
  --ink:#0f172a !important;
  --muted: rgba(15,23,42,.68) !important;
  --line-soft: rgba(15,23,42,.10) !important;
  --line: rgba(15,23,42,.14) !important;

  /* UNMISSABLE page background */
  --bg:#f7f9fc !important;
  --surface:#ffffff !important;
  --surface2:#fbfbfd !important;

  --shadow: 0 16px 40px rgba(15,23,42,.10) !important;
  --shadow2: 0 8px 22px rgba(15,23,42,.10) !important;

  --r:22px !important;
  --r2:16px !important;

  --violet:#6d28d9 !important;
  --cyan:#0891b2 !important;
  --pink:#db2777 !important;

  /* map hc vars so if any page uses them, it still matches */
  --hc-bg: var(--bg) !important;
  --hc-card: var(--surface) !important;
  --hc-text: var(--ink) !important;
  --hc-muted: #52627a !important;
  --hc-accent: #2563eb !important;
  --hc-accent2: var(--violet) !important;
  --hc-yellow: #ffd400 !important;
  --hc-gold: #d7b100 !important;
  --hc-border: rgba(15, 23, 42, 0.10) !important;
  --hc-shadow: 0 8px 24px rgba(2, 6, 23, 0.08) !important;
  --hc-radius: 18px !important;
}

/* Force background + base typography */
html, body{ background: var(--bg) !important; color: var(--ink) !important; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji" !important;
}

/* Force common containers to look like home-clean */
.container, .wrap, .shell, .page, .main, .rkWrap, .resWrap, .psPage, .cvShell{
  background: transparent !important;
}

/* Force cards across your app */
.card, .panel, .box,
.detailCard, .rulesCard,
.cvCard, .rkCard, .resCard,
.psCard,
.controlsCard, .featuredCard,
.compCard, .wideSliderArea,
.psCompCard, .psH2HMatch,
.rkTableWrap, .rkList, .resTableWrap{
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r) !important;
  box-shadow: var(--shadow2) !important;
}

/* Buttons */
.btn, button, .button, a.btn, input[type="button"], input[type="submit"]{
  border-radius: 14px !important;
  border: 1px solid rgba(15,23,42,.14) !important;
  background: rgba(255,255,255,.92) !important;
  color: var(--ink) !important;
  box-shadow: 0 10px 18px rgba(2,6,23,.06) !important;
}
.btn.primary, button.primary, .button.primary{
  background: linear-gradient(135deg, rgba(37,99,235,.92), rgba(109,40,217,.90)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* Pills/Chips */
.pill, .chip, .rkChip, .resChip, .psPill, .psChip, .hc-pill, .hc-chip{
  border-radius: 999px !important;
  border: 1px solid rgba(15,23,42,.14) !important;
  background: rgba(15,23,42,.04) !important;
  color: rgba(15,23,42,.92) !important;
}
.pill.registered{ background: rgba(22,163,74,.12) !important; border-color: rgba(22,163,74,.22) !important; color: #14532d !important; }
.pill.closed{ background: rgba(239,68,68,.10) !important; border-color: rgba(239,68,68,.22) !important; color: #7f1d1d !important; }

/* Headings get tighter tracking like home-clean */
h1, h2, h3{ letter-spacing: -0.02em !important; }

/* Optional: subtle top glow so you can instantly tell CSS loaded */
body::before{
  content:"";
  position: fixed;
  left:0; right:0; top:0;
  height: 240px;
  pointer-events:none;
  background:
    radial-gradient(900px 240px at 20% 0%, rgba(37,99,235,.10), transparent 55%),
    radial-gradient(900px 240px at 85% 0%, rgba(109,40,217,.10), transparent 55%);
  z-index: 0;
}
/* keep page content above glow */
body > *{ position: relative; z-index: 1; }

/* =========================================================
   HOME MOBILE LAYOUT FIX (SAFE)
   - Mobile: Featured above Stats
   - Keep All Competitions after those
   - CTA band at bottom
   - Add side padding so text doesn't hug edges
========================================================= */
@media (max-width: 820px){
  main.container.hc{
    padding-left: 16px !important;
    padding-right: 16px !important;
    display:flex !important;
    flex-direction:column !important;
    gap: 18px !important;
  }

  /* Default: send everything after the top blocks */
  main.container.hc > *{ order: 4 !important; }

  .hc-hero{ order: 1 !important; }
  .hc-featured{ order: 2 !important; }
  .hc-stats{ order: 3 !important; }

  /* CTA band always last */
  .hc-band{ order: 10 !important; }
}

/* =========================================================
   CTA BAND READABILITY
   - Fix black text on dark gradient
========================================================= */
.hc-band,
.hc-band *{
  color: #fff !important;
}
.hc-band a.hc-btn.hc-primary{
  color: #fff !important;
}
