﻿/* ========================================
   DRAGON BALL Z - TRIVIA STYLES
   Estilos para el juego de trivia
   ======================================== */

/* Contenedor principal */
.trivia-container {
    min-height: 100vh;
    padding: 40px 0;
}

/* Tarjeta principal */
.trivia-card {
    background: rgba(42, 47, 74, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid #ff6b1a;
    max-width: 800px;
    margin: 0 auto;
}

/* Pantalla de bienvenida */
.welcome-screen h2 {
    font-family: 'Bangers', cursive;
    color: #ff6b1a;
    font-size: 3rem;
    text-shadow: 0 0 10px #ffd700;
    margin-bottom: 30px;
}

.best-score-display {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 107, 26, 0.1) 100%);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.best-score-display h3 {
    color: #ffd700;
    font-weight: bold;
}

.best-score-value {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px #ffd700;
}

/* Selector de dificultad */
.difficulty-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.difficulty-btn {
    padding: 20px;
    border: 3px solid;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #ffffff;
}

.difficulty-btn.easy {
    border-color: #4caf50;
}

.difficulty-btn.medium {
    border-color: #ff6b1a;
}

.difficulty-btn.hard {
    border-color: #f44336;
}

.difficulty-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

/* Header del juego */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ff6b1a;
}

.question-counter {
    font-size: 1.2rem;
    color: #ffd700;
    font-weight: 600;
}

.score-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

/* Barra de progreso */
.progress-container {
    margin-bottom: 30px;
}

.progress {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.progress-bar {
    background: linear-gradient(90deg, #ff6b1a 0%, #ffd700 100%);
    transition: width 0.5s ease;
}

/* Pregunta */
.question-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.4;
}

/* Opciones de respuesta */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid #0066cc;
    color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-btn:hover:not(:disabled) {
    background: rgba(0, 102, 204, 0.25);
    border-color: #ffd700;
    transform: translateX(10px);
}

.answer-btn strong {
    color: #ffd700;
    margin-right: 10px;
    font-size: 1.2rem;
}

.answer-btn.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
    color: #ffffff;
}

.answer-btn.incorrect {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
    color: #ffffff;
}

.answer-btn:disabled {
    cursor: not-allowed;
}

/* Pistas */
.hint-container {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-hint {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1f3a;
    border: 2px solid #ffd700;
    padding: 10px 25px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-hint:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-hint:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hint-text {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.08) 100%);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 15px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
}

.hint-text::before {
    content: "💡 ";
}

/* Feedback */
.feedback-alert {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
}

.feedback-alert.correct {
    background: rgba(76, 175, 80, 0.25);
    border: 2px solid #4caf50;
    color: #ffffff;
}

.feedback-alert.incorrect {
    background: rgba(244, 67, 54, 0.25);
    border: 2px solid #f44336;
    color: #ffffff;
}

/* Pantalla de resultados */
.results-screen {
    text-align: center;
}

.result-icon {
    font-size: 6rem;
    margin-bottom: 20px;
}

.result-icon.perfect {
    color: #ffd700;
}

.result-icon.good {
    color: #4caf50;
}

.result-icon.bad {
    color: #f44336;
}

.final-score {
    font-size: 4rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px #ffd700;
    margin-bottom: 20px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid #ff6b1a;
    border-radius: 12px;
    padding: 20px;
}

.stat-card h4 {
    color: #ffd700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
}

/* Botones */
.btn-restart,
.btn-home {
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.btn-restart {
    background: linear-gradient(135deg, #ff6b1a 0%, #ff8c4a 100%);
}

.btn-restart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 26, 0.5);
}

.btn-home {
    background: linear-gradient(135deg, #0066cc 0%, #1e88e5 100%);
}

.btn-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .trivia-card {
        padding: 25px;
    }
    
    .welcome-screen h2 {
        font-size: 2rem;
    }
    
    .question-text {
        font-size: 1.4rem;
    }
    
    .answer-btn {
        padding: 15px;
        font-size: 1rem;
    }
    
    .final-score {
        font-size: 3rem;
    }
}
