/* ============================================================================
   DASHBOARD MODERNO - ESTILOS PROFESIONALES
   ============================================================================ */

/* Variables modernas */
:root {
    --gradient-primary: linear-gradient(135deg, #e10600 0%, #ff4444 100%);
    --gradient-secondary: 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%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* MotoGP Banner como Header */
.motogp-banner {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.88) 0%, rgba(0, 0, 0, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.banner-content {
    text-align: center;
    color: white;
    max-width: 1000px;
}

.banner-content h2 {
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    white-space: nowrap;
}

.banner-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-banner {
    padding: 14px 32px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-banner-primary {
    background: white;
    color: #e10600;
}

.btn-banner-primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.btn-banner-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-banner-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    font-size: 1.2em;
}

/* 3 Cards Compactos */
.dashboard-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card-compact {
    background: white;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
    border: 1px solid #f0f0f0;
}

.dashboard-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.dashboard-card-compact h3 {
    font-size: 1.1em;
    margin-bottom: 16px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* Season Info Compacto */
.season-info-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.info-row-compact:hover {
    background: #f0f0f0;
    transform: translateX(3px);
}

.info-row-compact .info-label {
    font-weight: 500;
    color: #666;
    font-size: 0.9em;
}

.info-row-compact .info-value {
    font-weight: 700;
    color: #e10600;
    font-size: 1em;
}

/* Leader Info Compacto */
.leader-info-compact {
    text-align: center;
    padding: 16px;
}

.leader-info-compact .leader-name {
    font-size: 1.5em;
    font-weight: 700;
    color: #e10600;
    margin-bottom: 8px;
}

.leader-info-compact .leader-points {
    font-size: 2.2em;
    font-weight: 800;
    color: #e10600;
    margin: 12px 0;
}

.leader-info-compact .leader-team {
    color: #666;
    font-size: 0.9em;
}

/* Next Race Info Compacto */
.next-race-info-compact {
    text-align: center;
    padding: 16px;
}

.next-race-info-compact .next-race-name {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.next-race-info-compact .next-race-date {
    font-size: 1em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Stats Cards - Diseño Limpio y Profesional */
.dashboard-stats-clean {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card-clean {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: var(--transition-smooth);
}

.stat-card-clean:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #e10600;
}

.stat-value {
    font-size: 3em;
    font-weight: 800;
    color: #e10600;
    line-height: 1;
    margin-bottom: 12px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card-clean:nth-child(1) .stat-value {
    color: #e10600;
}

.stat-card-clean:nth-child(2) .stat-value {
    color: #11998e;
}

.stat-card-clean:nth-child(3) .stat-value {
    color: #667eea;
}

.stat-card-clean:nth-child(4) .stat-value {
    color: #f5576c;
}

/* Loading State */
.loading-text {
    color: #999;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .motogp-banner {
        height: 250px;
    }
    
    .banner-content h2 {
        font-size: 1.4em;
        white-space: normal;
        margin-bottom: 20px;
    }
    
    .banner-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .btn-banner {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 0.9em;
    }
    
    .dashboard-grid-compact {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dashboard-card-compact {
        padding: 16px 20px;
    }
    
    .dashboard-stats-clean {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-card-clean {
        padding: 24px 16px;
    }
    
    .stat-value {
        font-size: 2.5em;
    }
    
    .stat-label {
        font-size: 0.8em;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.motogp-banner,
.dashboard-card-compact,
.stat-card-clean {
    animation: fadeInUp 0.6s ease-out backwards;
}

.motogp-banner { animation-delay: 0.05s; }

.dashboard-card-compact:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card-compact:nth-child(2) { animation-delay: 0.15s; }
.dashboard-card-compact:nth-child(3) { animation-delay: 0.2s; }

.stat-card-clean:nth-child(1) { animation-delay: 0.25s; }
.stat-card-clean:nth-child(2) { animation-delay: 0.3s; }
.stat-card-clean:nth-child(3) { animation-delay: 0.35s; }
.stat-card-clean:nth-child(4) { animation-delay: 0.4s; }
