
/*
 * WK Pool Pro v1.4.0 — Component System
 * Eerste echte platformlaag: wedstrijdkaart, rankingkaart, kroegkaart, analysekaart,
 * typography, spacing en mobiele rust.
 */

.wkp {
  --wkp-blue: #071422;
  --wkp-blue-2: #0d2236;
  --wkp-orange: #ff7a00;
  --wkp-cream: #fffaf2;
  --wkp-card: #ffffff;
  --wkp-text: #071422;
  --wkp-muted: #475569;
  --wkp-line: rgba(7,20,34,.12);
  --wkp-orange-line: rgba(255,122,0,.24);
  --wkp-radius-xl: 28px;
  --wkp-radius-lg: 22px;
  --wkp-radius-md: 16px;
  --wkp-shadow: 0 12px 34px rgba(15,23,42,.10);
  --wkp-shadow-soft: 0 8px 22px rgba(15,23,42,.07);
  font-family: Inter, Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: var(--wkp-text) !important;
}

/* App typography */
.wkp h1,
.wkp h2,
.wkp h3 {
  letter-spacing: -0.035em !important;
  line-height: 1.02 !important;
  font-weight: 950 !important;
}

.wkp h1 { font-size: clamp(38px, 5vw, 76px) !important; }
.wkp h2 { font-size: clamp(28px, 3.5vw, 48px) !important; }
.wkp h3 { font-size: clamp(20px, 2.4vw, 30px) !important; }

.wkp p {
  line-height: 1.55 !important;
}

.wkp small,
.wkp .wkp-meta,
.wkp .wkp-subtitle,
.wkp .wkp-card-subtitle {
  color: var(--wkp-muted) !important;
}

/* Layout rhythm */
.wkp .wkp-section,
.wkp .wkp-front-section,
.wkp .wkp-analysis-section,
.wkp .wkp-tavern-section {
  margin: 28px 0 !important;
}

.wkp .wkp-grid,
.wkp .wkp-front-grid,
.wkp .wkp-analysis-grid,
.wkp .wkp-news-grid,
.wkp .wkp-tavern-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 22px !important;
}

/* Universele card */
.wkp .wkp-card,
.wkp .wkp-front-card,
.wkp .wkp-news-card,
.wkp .wkp-analysis-card,
.wkp .wkp-feature-card,
.wkp .wkp-stat-card,
.wkp .wkp-tavern-card,
.wkp .wkp-podium-card,
.wkp .wkp-tavern-podium-card,
.wkp .wkp-rank-row,
.wkp .wkp-match-card,
.wkp .wkp-component-card {
  background: var(--wkp-card) !important;
  color: var(--wkp-text) !important;
  border: 1px solid var(--wkp-orange-line) !important;
  border-radius: var(--wkp-radius-lg) !important;
  box-shadow: var(--wkp-shadow-soft) !important;
  padding: 22px !important;
  overflow: hidden !important;
}

.wkp .wkp-card *,
.wkp .wkp-front-card *,
.wkp .wkp-news-card *,
.wkp .wkp-analysis-card *,
.wkp .wkp-feature-card *,
.wkp .wkp-stat-card *,
.wkp .wkp-tavern-card *,
.wkp .wkp-podium-card *,
.wkp .wkp-tavern-podium-card *,
.wkp .wkp-rank-row *,
.wkp .wkp-match-card *,
.wkp .wkp-component-card * {
  text-shadow: none !important;
  opacity: 1 !important;
}

.wkp .wkp-card h2,
.wkp .wkp-card h3,
.wkp .wkp-front-card h2,
.wkp .wkp-front-card h3,
.wkp .wkp-news-card h2,
.wkp .wkp-news-card h3,
.wkp .wkp-analysis-card h2,
.wkp .wkp-analysis-card h3,
.wkp .wkp-feature-card h2,
.wkp .wkp-feature-card h3,
.wkp .wkp-stat-card h2,
.wkp .wkp-stat-card h3,
.wkp .wkp-tavern-card h2,
.wkp .wkp-tavern-card h3,
.wkp .wkp-podium-card h2,
.wkp .wkp-podium-card h3,
.wkp .wkp-component-card h2,
.wkp .wkp-component-card h3 {
  color: var(--wkp-text) !important;
}

/* Kicker / label */
.wkp .wkp-kicker,
.wkp .wkp-label-accent {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: var(--wkp-orange) !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .07em !important;
  font-size: 12px !important;
  margin-bottom: 10px !important;
}

/* Hero/donkere modules */
.wkp .wkp-hero,
.wkp .wkp-next,
.wkp .wkp-pub-hero,
.wkp .wkp-dark,
.wkp .wkp-dark-section,
.wkp .wkp-component-hero {
  background:
    radial-gradient(circle at 88% 20%, rgba(255,122,0,.20), transparent 28%),
    linear-gradient(135deg, var(--wkp-blue) 0%, var(--wkp-blue-2) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,122,0,.35) !important;
  border-radius: var(--wkp-radius-xl) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.22) !important;
  overflow: hidden !important;
}

.wkp .wkp-hero *,
.wkp .wkp-next *,
.wkp .wkp-pub-hero *,
.wkp .wkp-dark *,
.wkp .wkp-dark-section *,
.wkp .wkp-component-hero * {
  color: #ffffff !important;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.wkp .wkp-hero h1,
.wkp .wkp-hero h2,
.wkp .wkp-hero h3,
.wkp .wkp-pub-hero h1,
.wkp .wkp-pub-hero h2,
.wkp .wkp-pub-hero h3,
.wkp .wkp-dark h1,
.wkp .wkp-dark h2,
.wkp .wkp-dark h3,
.wkp .wkp-dark-section h1,
.wkp .wkp-dark-section h2,
.wkp .wkp-dark-section h3,
.wkp .wkp-component-hero h1,
.wkp .wkp-component-hero h2,
.wkp .wkp-component-hero h3 {
  color: #ffffff !important;
}

/* Wedstrijdkaart */
.wkp .wkp-match-card,
.wkp .wkp-next {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr auto !important;
  align-items: center !important;
  gap: 18px !important;
}

.wkp .wkp-next {
  padding: 22px 26px !important;
}

.wkp .wkp-next-label {
  color: var(--wkp-orange) !important;
}

.wkp .wkp-next-main {
  font-size: clamp(22px, 3vw, 38px) !important;
  font-weight: 950 !important;
  letter-spacing: -0.035em !important;
}

.wkp .wkp-team,
.wkp .wkp-team-nl {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.wkp .wkp-emoji-flag,
.wkp .wkp-flag {
  font-size: 1.15em !important;
  line-height: 1 !important;
}

.wkp .wkp-vs {
  color: var(--wkp-orange) !important;
  font-weight: 950 !important;
  padding: 0 8px !important;
}

/* Rankingkaart */
.wkp .wkp-rank-row,
.wkp .wkp-front-rank {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  gap: 18px !important;
}

.wkp .wkp-rank-number,
.wkp .wkp-medal {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: var(--wkp-orange) !important;
  color: #ffffff !important;
  font-weight: 950 !important;
}

.wkp .wkp-rank-points,
.wkp .wkp-points,
.wkp .wkp-score {
  color: var(--wkp-orange) !important;
  font-weight: 950 !important;
}

/* Kroegkaart */
.wkp .wkp-tavern-card,
.wkp .wkp-podium-card,
.wkp .wkp-tavern-podium-card {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
}

.wkp .wkp-tavern-logo,
.wkp .wkp-pub-logo,
.wkp .wkp-rank-logo {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 2px solid var(--wkp-orange-line) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 18px rgba(15,23,42,.10) !important;
}

.wkp .wkp-tavern-logo img,
.wkp .wkp-pub-logo img,
.wkp .wkp-rank-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.wkp .wkp-tavern-name,
.wkp .wkp-pub-name {
  color: var(--wkp-text) !important;
  font-weight: 950 !important;
  font-size: 1.05rem !important;
}

.wkp .wkp-tavern-meta,
.wkp .wkp-pub-meta {
  color: var(--wkp-muted) !important;
  font-size: .92rem !important;
}

/* Analysekaart */
.wkp .wkp-analysis-card {
  min-height: 160px !important;
}

.wkp .wkp-analysis-card table {
  width: 100% !important;
  margin-top: 12px !important;
}

.wkp .wkp-analysis-card th {
  color: var(--wkp-orange) !important;
}

.wkp .wkp-analysis-card td {
  color: var(--wkp-text) !important;
}

/* Badges */
.wkp .wkp-badge,
.wkp .wkp-count,
.wkp .wkp-counter,
.wkp .wkp-tab-count,
.wkp .wkp-pill,
.wkp .wkp-status {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  padding: 6px 12px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.wkp .wkp-badge,
.wkp .wkp-pill,
.wkp .wkp-status {
  background: var(--wkp-orange) !important;
  color: #ffffff !important;
}

.wkp .wkp-count,
.wkp .wkp-counter,
.wkp .wkp-tab-count {
  background: var(--wkp-blue) !important;
  color: #ffffff !important;
}

/* Tables */
.wkp table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: var(--wkp-radius-md) !important;
}

.wkp th {
  background: var(--wkp-blue) !important;
  color: #ffffff !important;
  padding: 14px !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  font-size: 12px !important;
}

.wkp td {
  padding: 14px !important;
  color: var(--wkp-text) !important;
  border-bottom: 1px solid var(--wkp-line) !important;
}

/* Micro-interacties */
.wkp .wkp-card,
.wkp .wkp-front-card,
.wkp .wkp-news-card,
.wkp .wkp-analysis-card,
.wkp .wkp-feature-card,
.wkp .wkp-tavern-card,
.wkp .wkp-rank-row {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

@media (hover:hover) {
  .wkp .wkp-card:hover,
  .wkp .wkp-front-card:hover,
  .wkp .wkp-news-card:hover,
  .wkp .wkp-analysis-card:hover,
  .wkp .wkp-feature-card:hover,
  .wkp .wkp-tavern-card:hover,
  .wkp .wkp-rank-row:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--wkp-shadow) !important;
    border-color: rgba(255,122,0,.45) !important;
  }
}

/* Mobiel */
@media (max-width: 768px) {
  .wkp {
    --wkp-radius-xl: 22px;
    --wkp-radius-lg: 18px;
  }

  .wkp .wkp-grid,
  .wkp .wkp-front-grid,
  .wkp .wkp-analysis-grid,
  .wkp .wkp-news-grid,
  .wkp .wkp-tavern-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .wkp .wkp-card,
  .wkp .wkp-front-card,
  .wkp .wkp-news-card,
  .wkp .wkp-analysis-card,
  .wkp .wkp-feature-card,
  .wkp .wkp-stat-card,
  .wkp .wkp-tavern-card,
  .wkp .wkp-podium-card,
  .wkp .wkp-tavern-podium-card,
  .wkp .wkp-rank-row,
  .wkp .wkp-match-card {
    padding: 18px !important;
  }

  .wkp .wkp-next,
  .wkp .wkp-match-card {
    grid-template-columns: 1fr !important;
    text-align: left !important;
  }

  .wkp .wkp-rank-row,
  .wkp .wkp-front-rank {
    grid-template-columns: auto 1fr !important;
  }

  .wkp .wkp-rank-points,
  .wkp .wkp-points {
    grid-column: 2 !important;
    justify-self: start !important;
  }

  .wkp .wkp-tavern-logo,
  .wkp .wkp-pub-logo,
  .wkp .wkp-rank-logo {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
  }

  .wkp table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    border-radius: 14px !important;
  }

  .wkp th,
  .wkp td {
    padding: 12px !important;
  }
}
