/* ================================================
   Strava Leaderboard — Cycling Race Registration
   ================================================ */

.crr-strava-wrap {
    font-family: 'Roboto', sans-serif;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    overflow: hidden;
    max-width: 780px;
    margin: 32px auto;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

/* Header */
.crr-strava-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1a1713 0%, #312D27 100%);
    color: #fff;
}
.crr-strava-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.crr-strava-logo span {
    font-size: 10px;
    font-weight: 600;
    color: #FC4C02;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.crr-strava-meta { flex: 1; }
.crr-strava-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: 0.01em;
}
.crr-strava-efforts {
    font-size: 12px;
    color: rgba(255,255,255,.6);
    letter-spacing: 0.02em;
}
.crr-strava-kom-badge {
    background: #FC4C02;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

/* Tabella */
.crr-strava-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.crr-strava-table thead tr {
    background: #f5f2ec;
}
.crr-strava-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #7A7A7A;
    border-bottom: 2px solid #e8e4dc;
}
.crr-strava-row td {
    padding: 11px 16px;
    border-bottom: 1px solid #f0ece4;
    vertical-align: middle;
}
.crr-strava-row:last-child td { border-bottom: none; }
.crr-strava-row:hover td { background: #faf8f4; }

/* KOM row */
.crr-strava-kom td { background: #fff8f0; }
.crr-strava-kom:hover td { background: #fff3e6; }
.crr-strava-kom .crr-strava-time strong { color: #FC4C02; font-size: 15px; }

/* Iscritto evidenziato */
.crr-strava-iscritto td { background: #f0f7f0; }
.crr-strava-iscritto:hover td { background: #e8f3e8; }

/* Colonne */
.crr-strava-pos {
    width: 42px;
    text-align: center;
    font-weight: 600;
    color: #9a9590;
    font-size: 14px;
}
.crr-strava-crown { font-size: 16px; }
.crr-strava-name {
    display: flex;
    align-items: center;
    gap: 10px;
}
.crr-strava-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e8e4dc;
}
.crr-strava-badge-iscritto {
    background: #312D27;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.crr-strava-time { width: 90px; }
.crr-strava-time strong { color: #312D27; font-size: 14px; }
.crr-strava-speed { width: 110px; color: #7A7A7A; }
.crr-strava-date  { width: 90px; color: #b0aa9f; font-size: 12px; }

/* Footer */
.crr-strava-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f5f2ec;
    border-top: 1px solid #e8e4dc;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.crr-strava-footer a {
    color: #FC4C02;
    text-decoration: none;
    font-weight: 600;
}
.crr-strava-footer a:hover { text-decoration: underline; }
.crr-strava-footer span { color: #b0aa9f; }

/* Mobile */
@media (max-width: 600px) {
    .crr-strava-header { padding: 16px; gap: 12px; }
    .crr-strava-title { font-size: 15px; }
    .crr-strava-table th, .crr-strava-row td { padding: 9px 10px; }
    .crr-strava-speed, .crr-strava-date { display: none; }
    .crr-strava-avatar { width: 24px; height: 24px; }
}
