/* === ADVANCED STATISTICS SECTION === */
.stats-header {
    position: relative;
    margin-bottom: 2rem;
}

.stat-box {
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
}

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

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

/* Mode Stats */
.mode-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4A90E2;
    transition: all 0.2s ease;
}

.mode-stat-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.mode-stat-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.mode-stat-details {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.mode-stat-metric {
    text-align: center;
}

.mode-stat-metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.mode-stat-metric-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
}

/* Position Stats */
.position-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.position-stat-item:hover {
    border-color: #4A90E2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.position-stat-name {
    font-weight: 600;
    color: #2c3e50;
    min-width: 80px;
}

.position-stat-bar-container {
    flex: 1;
    margin: 0 1rem;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.position-stat-bar {
    height: 100%;
    background: linear-gradient(90deg, #4A90E2 0%, #2E7D32 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.position-stat-value {
    font-weight: 600;
    color: #2c3e50;
    min-width: 60px;
    text-align: right;
}

/* Common Mistakes */
.mistake-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mistake-item:hover {
    background: #ffe69c;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.mistake-item-info {
    flex: 1;
}

.mistake-item-hand {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.mistake-item-context {
    font-size: 0.85rem;
    color: #6c757d;
}

.mistake-item-count {
    background: #ffc107;
    color: #000;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.empty-state-subtext {
    font-size: 0.9rem;
    color: #adb5bd;
}

/* Responsive */
@media (max-width: 768px) {
    .mode-stat-details {
        gap: 1rem;
    }

    .mode-stat-metric-value {
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .mode-stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .mode-stat-details {
        width: 100%;
        justify-content: space-around;
    }

    .position-stat-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .position-stat-bar-container {
        width: 100%;
        margin: 0;
    }
}