/* ============================================
   Análisis IA View
   ============================================ */

.analisis-ia-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.analisis-ia-container h1 {
    color: #333;
    margin-bottom: 10px;
}

.analisis-ia-container .description {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Selector de jugador */
.player-selector-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.player-selector-container label {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.player-selector {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.player-selector:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-analyze {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-analyze:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-analyze:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Resultado del análisis */
.analysis-result {
    animation: fadeIn 0.5s ease-in;
}

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

.analysis-header {
    text-align: center;
    margin-bottom: 30px;
}

.analysis-header h2 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 32px;
}

.analysis-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Stats overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 42px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

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

/* Desglose por día */
.day-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.day-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.day-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
}

.day-card p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

/* Sección de análisis IA */
.ai-analysis-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.ai-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.ai-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.ai-badge:hover {
    transform: translateY(-2px);
}

.ai-badge .badge-icon {
    font-size: 24px;
}

.ai-badge .badge-text {
    font-size: 16px;
}

.score-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.ai-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.ai-section:last-child {
    margin-bottom: 0;
}

.ai-section h4 {
    margin: 0 0 15px 0;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-profile-description {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.ai-summary p {
    margin: 10px 0;
    line-height: 1.7;
    font-size: 15px;
}

.ai-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.ai-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-list li {
    padding: 10px 0;
    line-height: 1.6;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-list li:last-child {
    border-bottom: none;
}

.strengths-list li::before {
    content: '✓ ';
    color: #10b981;
    font-weight: bold;
    margin-right: 8px;
    font-size: 18px;
}

.improvements-list li::before {
    content: '→ ';
    color: #fbbf24;
    font-weight: bold;
    margin-right: 8px;
    font-size: 18px;
}

.recommendations-list li::before {
    content: '• ';
    color: #60a5fa;
    font-weight: bold;
    margin-right: 8px;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .analisis-ia-container {
        padding: 15px;
    }

    .player-selector-container {
        flex-direction: column;
        align-items: stretch;
    }

    .player-selector {
        min-width: 100%;
    }

    .btn-analyze {
        width: 100%;
    }

    .analysis-header h2 {
        font-size: 24px;
    }

    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .day-breakdown {
        grid-template-columns: 1fr;
    }

    .ai-badges {
        flex-direction: column;
    }

    .ai-badge {
        justify-content: center;
    }

    .ai-two-columns {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 32px;
    }
}
