/* CSS Personalizzato per Torneo Biliardino */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bg-gradient {
    background: var(--gradient-primary);
    min-height: auto;
    padding-bottom: 2rem;
}

/* Cards personalizzate */
.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border-bottom: none;
    padding: 1.5rem;
}

.border-left-primary {
    border-left: 5px solid var(--primary-color) !important;
}

/* Animazioni per i form */
.form-control:focus {
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.form-select:focus {
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

/* Bottoni personalizzati */
.btn {
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-success {
    background: var(--gradient-success);
    border: none;
}

.btn-warning {
    background: var(--gradient-warning);
    border: none;
    color: white !important;
}

/* Navbar personalizzata */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
}

/* Tabelle responsive */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.1);
    transform: scale(1.01);
}

/* Badge personalizzati */
.badge {
    border-radius: 8px;
    padding: 0.5em 0.8em;
    font-weight: 600;
}

/* Modal personalizzati */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-footer {
    border-top: none;
    border-radius: 0 0 15px 15px;
}

/* Animazioni di caricamento */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Alert personalizzati */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .card-header h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Effetti speciali */
.glow {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.card-success {
    background: var(--gradient-success);
    color: white;
}

.card-warning {
    background: var(--gradient-warning);
    color: white;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Icone animate */
.fa-trophy {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Form check personalizzato */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-weight: 500;
}

/* Scrollbar personalizzata */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* === NUOVI STILI PER LAYOUT PARTITE === */

/* Card partite migliorata */
.match-card {
    transition: all 0.3s ease;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    border-left: 5px solid #667eea !important;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15) !important;
}

/* Container del match */
.match-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

/* Sezioni delle squadre */
.team-section {
    flex: 1;
    position: relative;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-section.winner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.team-section.loser {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    border: 2px dashed #dee2e6;
}

/* Info squadra */
.team-info {
    position: relative;
}

.team-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-players {
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
}

/* Corona del vincitore */
.winner-crown {
    color: #ffd700;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Separatore VS */
.vs-separator {
    position: relative;
    margin: 0 15px;
    z-index: 10;
}

.vs-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    border: 3px solid white;
    transition: all 0.3s ease;
}

.match-card:hover .vs-circle {
    transform: rotate(360deg);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Badge cappotto per squadra perdente */
.cappotto-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 20;
    animation: pulse 2s infinite;
}

.cappotto-badge .badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Badge tipo match nell'header */
.match-type-badge .badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .match-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .vs-separator {
        margin: 0;
    }
    
    .vs-circle {
        transform: rotate(90deg);
    }
    
    .team-section {
        width: 100%;
        margin: 0;
    }
    
    .team-section.winner {
        transform: scale(1.02);
    }
}

/* Animazione di entrata per le cards */
.match-card {
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effetti hover aggiuntivi */
.team-section:hover {
    transform: scale(1.02) !important;
}

.team-section.winner:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
}

/* Miglioramenti per i badge esistenti */
.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
}

/* Stili per la data */
.text-muted i {
    color: #667eea !important;
}

/* Hover effect per tutta la card */
.match-card:hover {
    border-left-color: #4f46e5 !important;
    border-left-width: 8px !important;
}

/* === STILI CLASSIFICA MIGLIORATA === */

/* Riga della squadra in classifica */
.team-row {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.team-row:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left-color: #667eea;
    transform: translateX(5px);
}

/* Evidenzia prima posizione */
.team-row[data-position="1"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-left-color: #ffc107;
}

.team-row[data-position="1"]:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    transform: translateX(8px);
}

/* Stili per le medaglie */
.team-row[data-position="1"] .badge,
.team-row[data-position="2"] .badge,
.team-row[data-position="3"] .badge {
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Miglioramenti tabella */
.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

/* Badge nella tabella */
.table .badge {
    min-width: 50px;
    font-weight: 500;
}

/* === MIGLIORAMENTI GENERALI === */

/* Header delle sezioni con gradiente */
.card-header.bg-gradient {
    border: none;
    position: relative;
    overflow: hidden;
    color: #2c3e50 !important;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}

.card-header.bg-gradient h5,
.card-header.bg-gradient .card-title {
    color: #2c3e50 !important;
    text-shadow: 0 2px 4px rgba(255,255,255,0.9);
    font-weight: 700;
}

.card-header.bg-gradient i {
    color: #34495e !important;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
    filter: drop-shadow(0 2px 4px rgba(255,255,255,0.3));
}

.card-header.bg-gradient .badge {
    background: rgba(44,62,80,0.9) !important;
    color: white !important;
    text-shadow: none;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Miglioramenti per i badge contatori negli header */
.card-header .badge {
    font-size: 0.8rem;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
}

.card-header h5 {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    width: 100%;
}

/* Animazione di caricamento per le cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Applica animazione a tutte le cards */
.card {
    animation: fadeInUp 0.6s ease;
}

/* Delay progressivo per le cards */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

/* Miglioramenti responsive per mobile */
@media (max-width: 576px) {
    .card-header h5 {
        font-size: 1rem;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .card-header .badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    .team-name {
        font-size: 1rem !important;
    }
    
    .team-players {
        font-size: 0.75rem !important;
    }
}

/* === STILI CONFRONTI DIRETTI === */

/* Card confronti diretti */
.head-to-head-card {
    transition: all 0.3s ease;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #fff 0%, #fefefe 100%);
    border-left: 4px solid #e74c3c !important;
}

.head-to-head-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.15) !important;
    border-left-width: 6px !important;
}

/* Container del confronto */
.head-to-head-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 15px 10px;
    min-height: 100px;
}

/* Squadra in confronto */
.team-stat {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
}

.team-stat.dominant {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    transform: scale(1.02);
    border-color: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

/* Nome squadra nelle statistiche */
.team-name-stat {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Giocatori nelle statistiche */
.team-players-stat {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 8px;
    font-style: italic;
}

/* Badge vittorie */
.wins-stat .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 10px;
}

.team-stat.dominant .team-players-stat {
    opacity: 0.9;
}

/* VS nelle statistiche */
.vs-stat {
    margin: 0 8px;
    text-align: center;
    position: relative;
}

.vs-circle-stat {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
    border: 2px solid white;
    margin: 0 auto 5px;
    transition: all 0.3s ease;
}

.head-to-head-card:hover .vs-circle-stat {
    transform: rotate(180deg);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.total-matches-stat {
    font-size: 0.65rem;
}

/* Responsive per confronti */
@media (max-width: 768px) {
    .head-to-head-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .vs-stat {
        margin: 10px 0;
        order: 2; /* Posiziona il VS al centro tra le squadre */
    }
    
    .vs-circle-stat {
        transform: rotate(0deg); /* Mantieni orizzontale su mobile */
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
        margin: 0 auto;
    }
    
    .team-stat {
        width: 100%;
        margin: 0;
        text-align: center;
    }
    
    .team-stat:first-child {
        order: 1;
    }
    
    .team-stat:last-child {
        order: 3;
    }
    
    .total-matches-stat {
        margin-top: 5px;
    }
    
    .head-to-head-card {
        margin-bottom: 20px;
    }
    
    .head-to-head-container {
        min-height: 140px;
        padding: 20px 15px;
    }
}

/* Animazione ingresso confronti */
.head-to-head-card {
    animation: slideInUp 0.6s ease;
}

/* Effetto hover squadra dominante */
.team-stat.dominant:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* === STILI STATISTICHE GENERALI === */

/* Card statistiche generali */
.stat-card {
    transition: all 0.4s ease;
    border-radius: 20px !important;
    overflow: hidden;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

.stat-card .card-body {
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.stat-card .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.stat-card:hover .card-body::before {
    left: 100%;
}

/* Icone delle statistiche */
.stat-icon {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon i {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Numeri delle statistiche */
.stat-number {
    font-weight: 800;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

/* Etichette delle statistiche */
.stat-label {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.stat-sublabel {
    font-size: 0.8rem;
    opacity: 0.9;
    font-style: italic;
}

/* Animazioni per le card statistiche */
.stat-card {
    animation: slideInUp 0.6s ease;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

/* Responsive per statistiche */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .stat-icon i {
        font-size: 2rem !important;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* Effetti pulsanti nelle card statistiche */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 20px rgba(255,255,255,0.6); }
    100% { box-shadow: 0 0 5px rgba(255,255,255,0.3); }
}

.stat-card:hover {
    animation: pulse-glow 2s infinite;
}

/* === STILI CARD SQUADRE === */

/* Card squadra principale */
.team-card {
    transition: all 0.4s ease;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    border: 1px solid rgba(102, 126, 234, 0.1) !important;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    transition: all 0.6s ease;
}

.team-card:hover::before {
    left: 0;
}

.team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
}

/* Avatar squadra */
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.team-card:hover .team-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.team-avatar i {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Nome squadra */
.team-name {
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
}

.team-players {
    font-size: 0.9rem;
    font-style: italic;
}

/* Badge trophy per leader */
.trophy-badge {
    animation: bounce 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    border-radius: 15px !important;
    padding: 8px 12px !important;
    font-weight: 600;
}

/* Statistiche circolari */
.stat-item {
    transition: all 0.3s ease;
}

.team-card:hover .stat-item {
    transform: translateY(-3px);
}

.stat-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.stat-circle i {
    color: white;
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.team-card:hover .stat-circle {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.stat-text {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Barra performance */
.performance-bar .progress {
    border-radius: 10px;
    background-color: rgba(102, 126, 234, 0.1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.performance-bar .progress-bar {
    border-radius: 10px;
    transition: all 0.8s ease;
    position: relative;
    overflow: hidden;
}

.performance-bar .progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine-progress 2s infinite;
}

@keyframes shine-progress {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Badge partite giocate */
.team-card .badge {
    transition: all 0.3s ease;
    border-radius: 12px !important;
    padding: 8px 12px;
    font-weight: 500;
}

.team-card:hover .badge {
    transform: scale(1.05);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/* Animazioni ingresso card squadre */
.team-card {
    animation: slideInUp 0.6s ease;
}

.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }
.team-card:nth-child(4) { animation-delay: 0.4s; }
.team-card:nth-child(5) { animation-delay: 0.5s; }
.team-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive card squadre */
@media (max-width: 768px) {
    .team-avatar {
        width: 60px;
        height: 60px;
    }
    
    .team-avatar i {
        font-size: 1.8rem !important;
    }
    
    .team-name {
        font-size: 1.2rem;
    }
    
    .stat-circle {
        width: 40px;
        height: 40px;
    }
    
    .stat-circle i {
        font-size: 1rem !important;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-text {
        font-size: 0.7rem;
    }
}

/* Effetto speciale per la squadra leader */
.team-card:first-child {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border-color: rgba(255, 193, 7, 0.3) !important;
}

.team-card:first-child:hover {
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.2) !important;
}

/* === STILI HALL OF FAME === */

/* Card achievement base */
.achievement-card {
    transition: all 0.4s ease;
    border-radius: 20px !important;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent !important;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: all 0.8s ease;
    z-index: 1;
}

.achievement-card:hover::before {
    left: 100%;
}

.achievement-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
}

/* Icona achievement */
.achievement-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.15) rotate(10deg);
}

.achievement-icon i {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Titolo achievement */
.achievement-title {
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

/* Team e players */
.achievement-team {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.achievement-players {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

/* Statistiche achievement */
.achievement-stat {
    position: relative;
    z-index: 2;
}

.stat-big {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.achievement-stat small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Tipologie di achievement con colori specifici */

/* Oro - Re dei Cappotti */
.achievement-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: #ffd700 !important;
}

.achievement-gold .achievement-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.achievement-gold .achievement-icon i {
    color: white;
}

.achievement-gold .achievement-title,
.achievement-gold .stat-big {
    color: #b8860b;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Platino - Dominatori */
.achievement-platinum {
    background: linear-gradient(135deg, #e8e8e8 0%, #ffffff 100%);
    border-color: #c0c0c0 !important;
}

.achievement-platinum .achievement-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.achievement-platinum .achievement-icon i {
    color: white;
}

.achievement-platinum .achievement-title,
.achievement-platinum .stat-big {
    color: #4a4a4a;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Bronzo - Più Attivi */
.achievement-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #d4941e 100%);
    border-color: #cd7f32 !important;
}

.achievement-bronze .achievement-icon {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
}

.achievement-bronze .achievement-icon i {
    color: white;
}

.achievement-bronze .achievement-title,
.achievement-bronze .stat-big,
.achievement-bronze .achievement-team {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.achievement-bronze .achievement-players {
    color: rgba(255,255,255,0.8);
}

/* Fire - Hot Streak */
.achievement-fire {
    background: linear-gradient(135deg, #ff9a56 0%, #ffad56 100%);
    border-color: #ff6b35 !important;
}

.achievement-fire .achievement-icon {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
}

.achievement-fire .achievement-icon i {
    color: white;
}

.achievement-fire .achievement-title,
.achievement-fire .stat-big,
.achievement-fire .achievement-team {
    color: #8b0000;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

/* Epic - Duello Epico */
.achievement-epic {
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%);
    border-color: #88d8a3 !important;
}

.achievement-epic .achievement-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.achievement-epic .achievement-icon i {
    color: white;
}

.achievement-epic .achievement-title,
.achievement-epic .stat-big {
    color: #2d5a27;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Victim - Sfortunati */
.achievement-victim {
    background: linear-gradient(135deg, #ffcccc 0%, #ffe6e6 100%);
    border-color: #ff9999 !important;
}

.achievement-victim .achievement-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.achievement-victim .achievement-icon i {
    color: white;
}

.achievement-victim .achievement-title,
.achievement-victim .stat-big {
    color: #cc0000;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Stili specifici per duello epico */
.epic-duel-teams {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.team-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.vs-text {
    font-weight: bold;
    color: #667eea;
    font-size: 0.9rem;
    background: white;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Animazioni achievement */
.achievement-card {
    animation: slideInUp 0.6s ease;
}

.achievement-card:nth-child(1) { animation-delay: 0.1s; }
.achievement-card:nth-child(2) { animation-delay: 0.2s; }
.achievement-card:nth-child(3) { animation-delay: 0.3s; }
.achievement-card:nth-child(4) { animation-delay: 0.4s; }
.achievement-card:nth-child(5) { animation-delay: 0.5s; }
.achievement-card:nth-child(6) { animation-delay: 0.6s; }

/* Effetti hover speciali */
.achievement-gold:hover {
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.3) !important;
}

.achievement-platinum:hover {
    box-shadow: 0 25px 50px rgba(192, 192, 192, 0.3) !important;
}

.achievement-bronze:hover {
    box-shadow: 0 25px 50px rgba(205, 127, 50, 0.3) !important;
}

.achievement-fire:hover {
    box-shadow: 0 25px 50px rgba(255, 71, 87, 0.3) !important;
}

.achievement-epic:hover {
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3) !important;
}

.achievement-victim:hover {
    box-shadow: 0 25px 50px rgba(255, 107, 107, 0.3) !important;
}

/* Responsive Hall of Fame */
@media (max-width: 768px) {
    .achievement-icon {
        width: 60px;
        height: 60px;
    }
    
    .achievement-icon i {
        font-size: 1.8rem !important;
    }
    
    .achievement-title {
        font-size: 0.9rem;
    }
    
    .stat-big {
        font-size: 2rem;
    }
    
    .achievement-team {
        font-size: 1rem;
    }
    
    .achievement-players {
        font-size: 0.8rem;
    }
} 