/* ===== Challenge Hub Styles (updated) ===== */

/* --- Theme: charcoal + gold accents --- */
:root{
  --bg:#0b0c0f;
  --panel:#12141a;
  --panel2:#0f1116;
  --text:#e6e8ee;
  --muted:#a7afc2;
  --gold:#d6b25e;
  --radius:16px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);

  /* GD-style diagonal texture background */
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03) 25%, transparent 25%) -20px 0,
    linear-gradient(225deg, rgba(255,255,255,0.03) 25%, transparent 25%) -20px 0,
    linear-gradient(315deg, rgba(255,255,255,0.03) 25%, transparent 25%),
    linear-gradient(45deg,  rgba(255,255,255,0.03) 25%, transparent 25%);
  background-size: 40px 40px;
  background-color: var(--bg);
}

/* subtle vignette (makes it feel more GD / cinematic) */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background: radial-gradient(circle at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
  z-index:-1;
}

a{color:inherit}
.container{max-width:1000px; margin:0 auto; padding:0 18px}
.muted{color:var(--muted)}

/* --- Header --- */
.header{
  position:sticky; top:0;
  background: rgba(11,12,15,.88);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{font-weight:800; text-decoration:none}

/* --- Titles --- */
.title{margin:22px 0 8px}

/* --- Index grid --- */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  padding:18px 0 30px;
}
.card{
  display:block;
  padding:14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  text-decoration:none;
}
.card:hover{background: rgba(255,255,255,.06)}
.cardTop{display:flex; justify-content:space-between; gap:10px; margin-bottom:8px}
.badge{
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-weight:700;
  font-size:.9rem;
}
.cardName{font-weight:800}

/* --- Panels --- */
.panel{
  margin:14px 0;
  padding:16px;
  border-radius: 14px;
  background: rgba(18,20,26,0.92);
  border: 2px solid rgba(214, 178, 94, 0.28); /* thicker gold outline */
}

/* Optional: gold underline accent for section titles */
.panel h2{
  position: relative;
}
.panel h2::after{
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin-top: 6px;
  background: rgba(214, 178, 94, 0.65);
  border-radius: 999px;
}

.list{list-style:none; padding:0; margin:0; display:grid; gap:10px}
.listItem{display:flex; gap:10px; align-items:center}
.victorLink{
  margin-left:auto;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  text-decoration:none;
  font-size:.9rem;
}
.victorLink:hover{background: rgba(255,255,255,.10)}

/* --- Video embed --- */
.videoWrap{
  position:relative;
  width:100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
}
.videoWrap iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
}

/* --- Hero Card --- */
.heroCard{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 3px solid rgba(214, 178, 94, 0.65); /* thicker gold outline */
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 220px;
  margin: 18px 0 18px;
}

.heroLeft{
  padding: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.heroMeta{
  display:flex;
  align-items:center;
  gap:10px;
}

.heroLeft .title{
  margin: 0;
  line-height: 1.1;
}

/* Copy button (gold accented) */
.copyId{
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  border: 3px solid rgba(214, 178, 94, 0.60);
  background: rgba(214, 178, 94, 0.08);
  color: var(--muted);
  font-size:.92rem;
  cursor: pointer;
}
.copyId:hover{
  background: rgba(214, 178, 94, 0.14);
  color: var(--text);
  box-shadow: 0 0 0 2px rgba(214, 178, 94, 0.25);
}

/* --- Right image side --- */
.heroRight{
  position: relative;
  min-height: 220px;
}

.heroImg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.05) brightness(0.95);
}

/* Soft fade from image into left side */
.heroFade{
  position:absolute;
  inset: 0;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      rgba(11,12,15,1) 0%,
      rgba(11,12,15,0.96) 25%,
      rgba(11,12,15,0.75) 45%,
      rgba(11,12,15,0.35) 65%,
      rgba(11,12,15,0) 82%
    );
}

/* No-image mode */
.heroCard.noImage{
  grid-template-columns: 1fr;
}

/* --- Responsive --- */
@media (max-width: 900px){
  .grid{grid-template-columns: repeat(2, 1fr)}
}
@media (max-width: 720px){
  .heroCard{
    grid-template-columns: 1fr;
  }
  .heroRight{
    height: 210px;
  }
  .heroFade{
    background:
      linear-gradient(180deg, rgba(11,12,15,1) 0%, rgba(11,12,15,0.75) 40%, rgba(11,12,15,0) 85%);
  }
}
@media (max-width: 600px){
  .grid{grid-template-columns: 1fr}
}
