/**
 * DocuCelebrities Trivia - Frontend Styles
 * @version 1.0
 */

.docujuegos-celebs-trivia-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 25px;
    border: 3px solid #0073aa;
    border-radius: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: Arial, sans-serif;
    text-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.celebs-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    padding: 20px;
    border-radius: 15px;
    color: white;
    text-align: center;
}

.celebs-start-screen {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../placeholder.jpg');
}

.celebs-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.celebs-header h1 {
    margin: 0 0 15px 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Estilo para mostrar el puntaje global del usuario */
.celebs-global-score {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 300px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.celebs-score-icon {
    font-size: 1.5em;
    margin-right: 10px;
    vertical-align: middle;
}

.celebs-score-label {
    font-weight: bold;
    margin-right: 5px;
}

.celebs-score-value {
    font-weight: bold;
    font-size: 1.2em;
    color: #FFD700; /* Color dorado para el puntaje */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.celebs-stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.celebs-stat {
    background: rgba(255,255,255,0.2);
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    font-weight: bold;
    font-size: 1.1em;
}

.celebs-quiz-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.celebs-image-column {
    text-align: center;
}

.celebs-image {
    width: 100%;
    max-width: 350px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.celebs-image:hover {
    transform: scale(1.02);
}

.celebs-question-text {
    margin-top: 20px;
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.celebs-options-column {
    display: block; /* Changed from grid */
    align-content: start;
}

.celebs-options-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.celebs-options-column h3 {
    grid-column: 1 / -1; /* Span full width */
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
}

.celebs-option-btn {
    padding: 18px;
    border: 3px solid #e0e0e0;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex; /* Added for centering */
    align-items: center; /* Added for centering */
    justify-content: center; /* Added for centering */
    min-height: 80px; /* Added for uniform height */
}

.celebs-option-btn:hover {
    border-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.3);
}

.celebs-option-btn.selected {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border-color: #1976d2;
    transform: translateY(-2px);
}

.celebs-option-btn.correct {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    border-color: #388e3c;
    animation: celebsCorrectPulse 0.6s ease;
}

.celebs-option-btn.incorrect {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border-color: #d32f2f;
    animation: celebsIncorrectShake 0.6s ease;
}

.celebs-option-btn:disabled {
    cursor: default;
    opacity: 0.7;
}

.celebs-game-controls, .celebs-game-actions {
    text-align: center;
    padding: 20px 0 0 0;
}

.docujuegos-btn.celebs-btn-show-answer {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.docujuegos-btn.celebs-btn-next {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.celebs-end-screen .celebs-final-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .celebs-quiz-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .celebs-options-column {
        grid-template-columns: 1fr !important;
    }
    .docujuegos-celebs-trivia-container {
        margin: 10px !important;
        padding: 15px !important;
    }
    .celebs-header h1 {
        font-size: 2em !important;
    }
    .celebs-stats-container {
        flex-direction: column !important;
        align-items: center !important;
    }
}

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

@keyframes celebsIncorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ==========================================================================
   FORZAR COLOR DE FUENTE - SOLICITUD DE USUARIO
   ========================================================================== */

.docujuegos-celebs-trivia-container,
.docujuegos-celebs-trivia-container h1,
.docujuegos-celebs-trivia-container h3,
.docujuegos-celebs-trivia-container p,
.docujuegos-celebs-trivia-container .celebs-option-btn {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Excepciones para texto que debe ser blanco para contrastar */
.celebs-header,
.celebs-header *,
.celebs-option-btn.selected,
.celebs-option-btn.correct,
.celebs-option-btn.incorrect,
.docujuegos-btn.celebs-btn-show-answer,
.docujuegos-btn.celebs-btn-next {
    color: #ffffff !important;
}

/* ==========================================================================
   INSTRUCTIONS BUTTON
   ========================================================================== */
.docujuegos-instructions-container {
    margin-top: 20px;
}

.docujuegos-instructions {
  background: linear-gradient(135deg, #28a745, #34ce57);
  color: white !important; /* Forzar color de texto */
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(40,167,69,0.3);
  display: inline-block;
  position: relative;
  z-index: 15;
}

.docujuegos-instructions:hover {
  background: linear-gradient(135deg, #218838, #28a745);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40,167,69,0.4);
  border-color: rgba(255,255,255,0.3);
}

.docujuegos-instructions:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(40,167,69,0.3);
}