/*
 * FCS Sportlink DataService — Frontend CSS
 * Past naadloos in het FC Surhústerfean WordPress theme
 */

/* ── Widget card wrapper ─────────────────────────────── */
.fcs-widget-card {
  background: var(--white, #fff);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  margin-bottom: 24px;
}

.fcs-widget-head {
  background: var(--blue, #003087);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fcs-widget-title {
  font-family: var(--head, "Barlow Condensed", sans-serif);
  font-size: 18px;
  letter-spacing: 2px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── Fixtures list ───────────────────────────────────── */
.fcs-fx-list {
  display: flex;
  flex-direction: column;
}

.fcs-fx {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line, #e3e6ef);
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 12px;
  transition: background .15s;
}

.fcs-fx:last-child { border-bottom: none; }
.fcs-fx:hover { background: var(--paper, #f4f5f9); }

.fcs-fx-dt {
  font-family: var(--head, "Barlow Condensed", sans-serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--orange, #FF5200);
  line-height: 1.3;
}

.fcs-fx-dt span {
  display: block;
  color: var(--muted, #5a6179);
  font-size: 11px;
  margin-top: 2px;
}

.fcs-fx-clubs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fcs-fx-clubs .fcs-home {
  font-family: var(--head, "Barlow Condensed", sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #0b1020);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.fcs-fx-clubs .fcs-home.fcs-eigen { color: var(--blue, #003087); }
.fcs-fx-clubs .fcs-away {
  font-size: 13px;
  color: var(--muted, #5a6179);
}

.fcs-fx-score,
.fcs-fx-badge {
  font-family: var(--head, "Barlow Condensed", sans-serif);
  font-weight: 800;
  font-size: 15px;
  background: var(--paper, #f4f5f9);
  border-radius: 2px;
  padding: 5px 10px;
  text-align: center;
  min-width: 56px;
  color: var(--ink, #0b1020);
}

.fcs-fx-score.fcs-win  { color: #1a7a3c; background: #e8f5e9; }
.fcs-fx-score.fcs-loss { color: #c62828; background: #ffebee; }
.fcs-fx-score.fcs-draw { color: var(--muted, #5a6179); }

/* ── Stand tabel ─────────────────────────────────────── */
.fcs-stand-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.fcs-stand-tbl th {
  padding: 8px 10px;
  font-family: var(--head, "Barlow Condensed", sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.7);
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.15);
  background: var(--blue, #003087);
}

.fcs-stand-tbl td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line, #e3e6ef);
  color: var(--ink, #0b1020);
}

.fcs-stand-tbl .num,
.fcs-stand-tbl th.num { text-align: center; }

.fcs-stand-tbl .pts {
  text-align: center;
  font-family: var(--head, "Barlow Condensed", sans-serif);
  font-weight: 800;
  font-size: 15px;
  color: var(--blue, #003087);
}

.fcs-stand-tbl tr.fcs-us td {
  background: rgba(0,48,135,.05);
  color: var(--blue, #003087);
  font-weight: 700;
}

.fcs-stand-tbl tr:last-child td { border-bottom: none; }

/* Vorm badges */
.fcs-fr { display: flex; gap: 3px; }
.fcs-fr i {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 2px;
  font-style: normal;
  font-family: var(--head, "Barlow Condensed", sans-serif);
  font-size: 10px;
  font-weight: 700;
}
.fcs-fr .w { background: #1a7a3c; color: #fff; }
.fcs-fr .d { background: var(--muted, #5a6179); color: #fff; }
.fcs-fr .l { background: #c62828; color: #fff; }

/* ── Teams grid ──────────────────────────────────────── */
.fcs-teams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) { .fcs-teams-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .fcs-teams-grid { grid-template-columns: 1fr; } }

/* ── API notice (alleen voor admins) ────────────────── */
.fcs-api-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 13px;
}
.fcs-api-notice a { color: #003087; font-weight: 700; }

/* ── Foutmelding ─────────────────────────────────────── */
.fcs-error {
  color: #c62828;
  font-size: 13px;
  font-style: italic;
}

/* ── Afgelastingen ───────────────────────────────────── */
.fcs-afgelast .fcs-fx-dt { color: #c62828 !important; }

/* ── Clubinfo ────────────────────────────────────────── */
.fcs-clubinfo {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted, #5a6179);
}

/* ── Responsief voor .fcs-fx ─────────────────────────── */
@media (max-width: 480px) {
  .fcs-fx { grid-template-columns: 1fr auto; }
  .fcs-fx-dt { grid-column: 1 / -1; }
}
