/* ==========================================================================
   Risultati Gara — Eagles Golf
   File: /assets/css/risultati.css
   Pattern: allineato a matchplay-gironi.css (group-board)
   ========================================================================== */

/* --- Leaderboard board (replica group-board pattern) -------------------- */
.ris-board {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17,18,21,.92), rgba(11,12,15,.96));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.ris-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.ris-board-head h2 {
  margin: 0;
  font-family: var(--eagles-heading-family);
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}
.ris-board-head > span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
  white-space: nowrap;
}
.ris-board-meta {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.48);
}
.ris-board-meta span + span::before {
  content: "·";
  margin-right: 6px;
}

/* --- TPC pill (header) -------------------------------------------------- */
.ris-tpc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(13,113,186,.12);
  border: 1px solid rgba(13,113,186,.22);
}
.ris-tpc-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0d72b9;
}
.ris-tpc-pill span {
  font-size: 10px;
  font-weight: 800;
  color: #7ec8f0;
  text-transform: uppercase;
  letter-spacing: .15em;
}

/* --- Table (white bg, like group-board-table) --------------------------- */
.ris-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
}

/* Colgroup widths */
.ris-table col.col-rank    { width: 64px; }
.ris-table col.col-player  { /* flex: remaining space */ }
.ris-table col.col-phcp    { width: 72px; }
.ris-table col.col-score   { width: 80px; }
.ris-table col.col-topar   { width: 80px; }
.ris-table col.col-tpc     { width: 80px; }

/* --- thead -------------------------------------------------------------- */
.ris-table thead th {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(17,22,28,.10);
  background: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(17,22,28,.58);
  text-align: center;
}
.ris-table thead th.col-player {
  padding-left: 18px;
  text-align: left;
}

/* --- tbody rows --------------------------------------------------------- */
.ris-table tbody tr {
  background: #ffffff;
}
.ris-table tbody tr + tr td {
  border-top: 1px solid rgba(17,22,28,.08);
}
.ris-table tbody tr.is-first {
  background: linear-gradient(180deg, rgba(13,114,185,.05), rgba(13,114,185,.02));
}
.ris-table tbody tr.is-nc {
  opacity: .42;
}

/* --- cells -------------------------------------------------------------- */
.ris-table td {
  padding: 15px 10px;
  text-align: center;
  color: #11161c;
  vertical-align: middle;
}
.ris-table td.col-player {
  padding-left: 18px;
  text-align: left;
}

/* --- rank badge (circle, like group-rank) ------------------------------- */
.ris-rank {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(17,22,28,.06);
  border: 1px solid rgba(17,22,28,.08);
  font-family: var(--eagles-heading-family);
  font-size: 17px;
  line-height: 1;
  color: #11161c;
}
.ris-rank.is-first {
  background: #b11d26;
  border-color: #b11d26;
  color: #ffffff;
}
.ris-status {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(17,22,28,.38);
}

/* --- player name (like player-stack) ------------------------------------ */
.ris-player {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ris-player strong {
  display: block;
  font-family: var(--eagles-heading-family);
  font-size: 18px;
  line-height: 1;
  color: #11161c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ris-player small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(17,22,28,.48);
}

/* --- metric values (like .metric) --------------------------------------- */
.ris-metric {
  font-family: var(--eagles-heading-family);
  font-size: 24px;
  line-height: 1;
  color: #11161c;
}
.ris-metric-subtle {
  color: rgba(17,22,28,.42);
}
.ris-metric-sbf {
  color: #0d72b9;
  font-weight: 800;
  font-size: 26px;
}

/* --- To Par coloring ---------------------------------------------------- */
.ris-topar-under { color: #0d6847; }
.ris-topar-over  { color: #b11d26; }

/* --- TPC points pill (like points-pill) --------------------------------- */
.ris-tpc-badge {
  display: inline-flex;
  min-width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #0d72b9;
  color: #0d72b9;
  font-family: var(--eagles-heading-family);
  font-size: 20px;
  line-height: 1;
}
.ris-tpc-badge.is-first {
  background: #0d72b9;
  border-color: #0d72b9;
  color: #fff;
}

/* --- board footer (legend / actions) ------------------------------------ */
.ris-board-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.10);
}

/* --- CTA buttons -------------------------------------------------------- */
.ris-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .16s ease;
}
.ris-cta-ghost {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.72);
}
.ris-cta-ghost:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.ris-cta-tpc {
  background: #0d72b9;
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(13,114,185,.3);
}
.ris-cta-tpc:hover {
  background: #0a5d9a;
}

/* --- Meta row ----------------------------------------------------------- */
.ris-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ris-meta-item label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .2em;
}
.ris-meta-item span {
  display: block;
  margin-top: 2px;
  font-weight: 700;
  color: #fff;
}
.ris-meta-sep {
  width: 1px;
  align-self: center;
  height: 32px;
  background: rgba(255,255,255,.08);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .ris-board-head {
    padding: 16px 18px;
  }
  .ris-board-head h2 {
    font-size: 22px;
  }
  .ris-table {
    table-layout: auto;
  }
  .ris-table thead th,
  .ris-table td {
    padding: 12px 8px;
  }
  .ris-table thead th.col-player,
  .ris-table td.col-player {
    padding-left: 14px;
  }
  .ris-player strong {
    font-size: 15px;
  }
  .ris-metric {
    font-size: 19px;
  }
  .ris-tpc-badge {
    min-width: 38px;
    height: 38px;
    font-size: 17px;
  }
  .ris-rank {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  /* Hide PHCP on small screens */
  .col-phcp { display: none; }
  .ris-meta { gap: 16px; }
  .ris-meta-sep { height: 24px; }
}
