/* --- CARD & HERO ---------------------------------------------------------- */
.sexy-table-card {
  border-radius: 1rem;
  overflow: hidden;
}
.card-hero {
  background: linear-gradient(135deg, #1f6feb 0%, #3aa0ff 55%, #6fd3ff 100%);
  color: #fff;
}
.event-title {
  font-size: clamp(1.35rem, 2.2vw + 0.6rem, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 6px rgba(0,0,0,.18);
  margin-left: 2.6rem; /* spazio per la freccia */
}
.tournament-title {
  font-size: clamp(1rem, 1.2vw + 0.4rem, 1.35rem);
  font-weight: 600;
  opacity: .95;
}
.event-dates {
  font-size: 0.95rem;
  color: rgba(255,255,255,.9) !important;
}

/* Cerchio freccia (più grande e visibile) */
.back-circle {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 8px 18px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.35);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.back-circle:hover {
  background: rgba(255,255,255,.3);
  transform: translateY(-50%) scale(1.06);
}

/* Rende tutta la hero cliccabile e accessibile */
.card-hero { position: relative; }
.card-hero .hero-link {
  position: absolute; inset: 0;
  /* Miglior feedback focus/keyboard */
  outline: none;
}
.card-hero .hero-link:focus-visible {
  outline: 3px solid rgba(255,255,255,.65);
  outline-offset: -3px;
  border-radius: .75rem;
}

/* Freccia decorativa: non intercetta i click */
.back-circle {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 8px 18px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.35);
  pointer-events: none;      /* <— chiave: lascia passare i click */
}

/* --- TABELLA -------------------------------------------------------------- */
.table-ice {
  --bs-table-bg: #ffffff;
  --bs-table-color: #142033;
  --bs-table-striped-bg: rgba(31, 111, 235, 0.06);
  --bs-table-striped-color: inherit;
  --bs-table-border-color: rgba(20, 32, 51, .08);
  box-shadow: 0 6px 24px rgba(31, 111, 235, 0.12);
}

/* Header 3D + maggiore separazione dal corpo */
.table-ice-head {
  position: relative;
  z-index: 1; /* per il drop-shadow */
  filter: drop-shadow(0 8px 10px rgba(13, 48, 105, .18));
}
.table-ice-head > tr > th {
  background: linear-gradient(180deg, rgba(31,111,235,.18) 0%,
                                      rgba(31,111,235,.11) 55%,
                                      rgba(31,111,235,.07) 100%);
  color: #0b2a6f;
  font-weight: 800;
  border-bottom: 2px solid rgba(20, 32, 51, .12);
  position: relative;
  letter-spacing: .2px;
}
.table-ice-head-3d > tr > th::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.7), rgba(255,255,255,0));
  opacity: .85;
}
.table-ice-head-3d > tr > th::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px; height: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.08));
  opacity: .22;
}

/* Footer coerente */
.table-ice-foot > tr > td {
  background: rgba(31,111,235,.04);
  border-top: 1px solid rgba(20, 32, 51, .08);
}

/* Righe più compatte (niente hover) */
.table-compact {
  --bs-table-cell-padding-y: .35rem;
  --bs-table-cell-padding-x: .75rem;
  font-size: .95rem;
}

/* RIMOSSO l'hover: nessuna trasformazione, nessun colore hover */
.table-ice tbody tr { border-color: rgba(20, 32, 51, .06); }

/* Pulsanti coerenti col tema */
.btn-outline-primary {
  --bs-btn-color: #1f6feb;
  --bs-btn-border-color: #1f6feb;
  --bs-btn-hover-bg: #1f6feb;
  --bs-btn-hover-border-color: #1f6feb;
  --bs-btn-active-bg: #195ccc;
  --bs-btn-active-border-color: #195ccc;
}

/* --- Dark mode (facoltativo) --------------------------------------------- */
@media (prefers-color-scheme: dark) {
  .card-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 55%, #7dd3fc 100%);
  }
  .sexy-table-card { box-shadow: 0 10px 28px rgba(0,0,0,.35) !important; }
  .table-ice {
    --bs-table-bg: #0f172a;
    --bs-table-color: #e2e8f0;
    --bs-table-striped-bg: rgba(59,130,246,.10);
    --bs-table-border-color: rgba(226,232,240,.08);
    box-shadow: 0 6px 24px rgba(59,130,246,.25);
  }
  .table-ice-head > tr > th {
    background: linear-gradient(180deg, rgba(59,130,246,.30), rgba(59,130,246,.14));
    color: #e2e8f0;
    border-bottom-color: rgba(226,232,240,.12);
  }
}