/* static/css/style.css */

/* BASIC LAYOUT & TYPOGRAPHY */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050816;
  color: #f5f5f5;
}

a {
  color: #7dd3fc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  margin-top: 0;
}

/* HEADER */
.afw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: #020617;
  border-bottom: 1px solid #1e293b;
}

.logo a {
  font-size: 1.1rem;
  font-weight: 600;
}

.afw-header nav a {
  margin-right: 1rem;
  font-size: 0.95rem;
}

.back-main {
  margin-right: 1rem;
  font-size: 0.85rem;
}

.user-info {
  margin-right: 0.75rem;
  font-size: 0.9rem;
}

/* BUTTONS */
.btn-small,
.btn-primary,
.btn-secondary {
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.btn-small {
  padding: 0.3rem 0.7rem;
  border: 1px solid #38bdf8;
  font-size: 0.8rem;
  background: transparent;
  color: #e5e7eb;
}
.btn-small.secondary {
  border-color: #a855f7;
}

.btn-primary,
.btn-secondary {
  padding: 0.6rem 1.2rem;
  border: none;
}

.btn-primary {
  background: #38bdf8;
  color: #0f172a;
}

.btn-secondary {
  background: #a855f7;
  color: #ffffff;
}

.full-width {
  display: block;
  width: 100%;
  text-align: center;
}

/* PAGE CONTAINER */
.container {
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
}

/* HERO AREA */
.hero {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: radial-gradient(circle at top, #0f172a, #020617);
  border-radius: 1rem;
  margin-bottom: 2.5rem;
  border: 1px solid #1e293b;
}

.hero-main {
  flex: 2;
}

.hero-subcopy {
  margin-top: 0.6rem;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  display: inline-block;
  margin-right: 0.75rem;
  margin-top: 0.75rem;
}

.hero-stats {
  flex: 1.2;
}

.hero-stats h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.hero-stats-row {
  display: flex;
  gap: 1rem;
  margin: 0.75rem 0 1rem;
}

.hero-stat {
  flex: 1;
}

.hero-stat .label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.hero-stat .value {
  font-size: 1.25rem;
  font-weight: 600;
}

/* CARDS & GENERIC ELEMENTS */
.form-card,
.card {
  background: #020617;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #1e293b;
  margin-bottom: 1.5rem;
}

.form-card label {
  display: block;
  margin-bottom: 0.9rem;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  margin-top: 0.2rem;
}

.error {
  background: #991b1b;
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  margin: 0.5rem 0;
}

.muted {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* OLD “cards” GRID (nog steeds gebruikt in andere templates) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* BADGES */
.badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #1f2937;
  color: #e5e7eb;
}

.badge-live {
  background: #ef4444;
  color: #ffffff;
}

/* HOME GRID (3 kolommen: live/upcoming, latest, top players) */
.home-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1.2fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.home-card {
  background: #020617;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #1e293b;
}

.home-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.small-link {
  font-size: 0.8rem;
}

.small-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0.4rem 0 0.3rem;
  color: #9ca3af;
}

.card-separator {
  border: 0;
  border-top: 1px solid #111827;
  margin: 1rem 0;
}

/* COMPACT LISTS (voor live, upcoming, latest, champions) */
.list-compact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-main {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.list-item-meta {
  font-size: 0.8rem;
  margin-top: 0.08rem;
}

/* LEADERBOARD LIST */
.leaderboard {
  list-style: none;
  padding: 0;
  margin: 0;
}

.leaderboard-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.leaderboard-item:last-child {
  border-bottom: none;
}

.leaderboard.compact .leaderboard-item {
  padding: 0.5rem 0;
}

/* HOW-IT-WORKS + CTA ONDERAAN */
.home-section {
  margin-bottom: 2rem;
}

.home-how-cta {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.home-cta {
  background: #020617;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #1e293b;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 900px) {
  .hero,
  .home-grid,
  .home-how-cta {
    display: block;
  }

  .hero-stats,
  .home-card,
  .home-cta {
    margin-top: 1.5rem;
  }

  .container {
    margin-top: 1rem;
  }
} /* <-- deze miste je */

/* FOOTER */
.afw-footer {
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
  background: #020617;
  border-top: 1px solid #1e293b;

  display: flex;
  flex-direction: column;
  align-items: center;   /* centreert horizontaal */
  justify-content: center;
  text-align: center;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-icons img {
  width: 32px;
  height: 32px;
  opacity: 0.85;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-icons img:hover {
  transform: scale(1.12);
  opacity: 1;
}

.footer-copy {
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-copy .pw {
  color: #7dd3fc;
  font-weight: 600;
}

/* =========================
   CREATORS
   ========================= */

.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.creator-card {
  display: flex;
  gap: 0.9rem;
  padding: 1rem;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.creator-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.creator-avatar img,
.creator-avatar-fallback {
  width: 64px;
  height: 64px;
  border-radius: 0.6rem;
  object-fit: cover;
  background: #020617;
  border: 1px solid #1e293b;
}

.creator-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #38bdf8;
}

.creator-body h3 {
  margin: 0;
  font-size: 1rem;
}

.creator-badges {
  display: flex;
  gap: 0.35rem;
  margin: 0.25rem 0 0.3rem;
}

.badge-featured {
  background: #a855f7;
  color: #fff;
}

.creator-bio {
  font-size: 0.85rem;
  margin: 0.25rem 0 0.4rem;
}

/* Social links */
.creator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.creator-links a {
  font-size: 0.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.creator-links a:hover {
  border-color: #38bdf8;
  text-decoration: none;
}

/* Live button */
.btn-live {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-weight: 600;
}

/* =========================
   SPONSORS
   ========================= */

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.sponsor-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  text-decoration: none;
}

.sponsor-card img {
  max-width: 120px;
  max-height: 48px;
  object-fit: contain;
}

.sponsor-card strong {
  font-size: 0.9rem;
}

.sponsor-card .badge {
  margin-top: 0.25rem;
  font-size: 0.65rem;
}

/* =========================
   FORMS (NEW) – clean layout
   ========================= */

   .form-grid{
    display:grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.9rem 1rem;
    align-items: start;
  }
  
  .form-grid .field{
    grid-column: span 6;
    min-width: 0;
  }
  
  .form-grid .field.small{ grid-column: span 3; }
  .form-grid .field.third{ grid-column: span 4; }
  .form-grid .field.twoThird{ grid-column: span 8; }
  .form-grid .field.full{ grid-column: 1 / -1; }
  
  .form-grid label{
    display:block;
    margin: 0;
  }
  
  .form-grid label > span{
    display:block;
    font-size: 0.8rem;
    color:#9ca3af;
    margin-bottom:0.35rem;
    letter-spacing: 0.02em;
  }
  
  .form-grid input,
  .form-grid textarea,
  .form-grid select{
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 0.6rem;
    border: 1px solid #1e293b;
    background: #020617;
    color: #e5e7eb;
    outline: none;
  }
  
  .form-grid input:focus,
  .form-grid textarea:focus,
  .form-grid select:focus{
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56,189,248,0.15);
  }
  
  .form-actions{
    display:flex;
    gap:0.6rem;
    flex-wrap: wrap;
    align-items:center;
  }
  
  .help-row{
    display:flex;
    gap:0.75rem;
    align-items:center;
    flex-wrap:wrap;
  }
  
  .toggle{
    display:flex;
    gap:0.5rem;
    align-items:center;
    user-select:none;
  }
  
  .toggle input[type="checkbox"]{
    width: 18px;
    height: 18px;
    margin:0;
  }
  
  .hr-soft{
    border:0;
    border-top:1px solid #111827;
    margin: 0.25rem 0 0.25rem;
  }
  
  @media (max-width: 900px){
    .form-grid{ grid-template-columns: repeat(6, minmax(0,1fr)); }
    .form-grid .field{ grid-column: span 6; }
    .form-grid .field.small,
    .form-grid .field.third,
    .form-grid .field.twoThird{ grid-column: span 6; }
  }

  /* =========================
   CREATOR CARD v2 (icons + layout)
   ========================= */

.creator-card {
  display: flex;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid #1e293b;
  border-radius: 0.9rem;
  transition: border-color .15s ease, transform .15s ease;
}

.creator-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  text-decoration: none;
}

.creator-avatar {
  width: 84px;
  min-width: 84px;
  height: 84px;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid #1e293b;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-avatar-fallback {
  font-weight: 800;
  font-size: 1.35rem;
  color: #38bdf8;
}

.creator-body {
  min-width: 0;
  flex: 1;
}

.creator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.creator-name {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.creator-name a {
  color: #e5e7eb;
  text-decoration: none;
}
.creator-name a:hover { text-decoration: underline; }

.creator-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge-featured { background: #a855f7; color: #fff; }
.badge-verified { background: #22c55e; color: #052e16; }
.badge-muted { background: rgba(148,163,184,0.15); color: #e5e7eb; }

.creator-bio {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.9rem;
}

/* Social list like screenshot */
.creator-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
  margin-top: 0.2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #e5e7eb;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.2rem 0;
}

.social-link:hover { text-decoration: underline; }

/* Icon base */
.social-ic {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-block;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(148,163,184,0.10);
  position: relative;
  overflow: hidden;
}

/* Simple “logo-ish” marks (no external assets) */
.social-ic::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 4px;
  opacity: 0.9;
}

/* Per platform color cues */
.ic-yt::after { background: #ef4444; }     /* YouTube */
.ic-tw::after { background: #a855f7; }     /* Twitch */
.ic-x::after  { background: #111827; }     /* X */
.ic-discord::after { background: #60a5fa; }/* Discord */
.ic-ig::after { background: #f472b6; }     /* Instagram */
.ic-tt::after { background: #ffffff; }     /* TikTok-ish */
.ic-web::after{ background: #38bdf8; }     /* Website */
.ic-kick::after{ background:#22c55e; }     /* Kick */
.ic-fb::after { background:#3b82f6; }      /* Facebook */

.btn-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.btn-live:hover { text-decoration: none; filter: brightness(1.02); }

.creator-detail-wrap {
  padding: 1.25rem 1.4rem;
}

.creator-detail-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.creator-banner {
  width: 100%;
  max-height: 220px;
  border-radius: 0.9rem;
  border: 1px solid #1e293b;
  overflow: hidden;
  margin-bottom: 1rem;
}
.creator-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .creator-social { grid-template-columns: 1fr; }
  .creator-detail-head { grid-template-columns: 84px 1fr; }
  .creator-avatar { width: 74px; min-width: 74px; height: 74px; }
}

/* =========================
   HOME: Creators section polish
   ========================= */

/* center cards when there are only a few */
.creator-grid.home-creators {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  justify-items: start;
}
.creator-grid.home-creators:has(.creator-card:only-child) {
  justify-items: center;
}

/* nicer creator card on home */
.creator-card.creator-card--home {
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  background:
    radial-gradient(1200px 400px at 10% 0%, rgba(56,189,248,0.12), transparent 55%),
    radial-gradient(900px 360px at 90% 0%, rgba(168,85,247,0.12), transparent 55%),
    rgba(2,6,23,0.92);
  border: 1px solid rgba(148,163,184,0.22);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.creator-card.creator-card--home:hover {
  border-color: rgba(56,189,248,0.65);
}

/* avatar bigger + softer */
.creator-card--home .creator-avatar {
  width: 92px;
  min-width: 92px;
  height: 92px;
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.25);
}

/* header row */
.creator-card--home .creator-head {
  align-items: center;
}

.creator-card--home .creator-name {
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

/* compact social chips (instead of vertical list) */
.creator-card--home .creator-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.creator-card--home .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(2,6,23,0.55);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e5e7eb;
  text-decoration: none;
}

.creator-card--home .social-link:hover {
  border-color: rgba(56,189,248,0.55);
  text-decoration: none;
}

/* make LIVE button look premium */
.creator-card--home .btn-live {
  margin-top: 0.9rem;
  padding: 0.42rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(239,68,68,0.22);
}
.social-img{
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: inline-block;
}
.creator-live-embed{
  margin-top: 1rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid #1e293b;
  background: #020617;
}
.creator-live-embed iframe{
  display:block;
  border:0;
}
