/* colori.css - Stili specifici per Quiz Colori della Casa */

/* Contenitore domanda colori */
.color-question-container {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-secondary);
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.color-question-container h2 {
    font-size: 2.5em;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.instruction-text {
    font-size: 1.1em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Display della casella */
.square-display {
    display: inline-block;
    padding: 40px 60px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border: 3px solid var(--secondary-color);
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#current-square {
    font-size: 4em;
    font-weight: 900;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 5px;
}

/* Bottoni colore */
.color-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.color-buttons.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.color-btn {
    width: 150px;
    height: 150px;
    border: 5px solid #333;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.color-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.color-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.color-btn.black {
    background: #2c2c2c;
    background: radial-gradient(circle at 30% 30%, #3a3a3a, #1a1a1a);
}

.color-btn.white {
    background: #ffffff;
    background: radial-gradient(circle at 30% 30%, #ffffff, #f0f0f0);
    border-color: #666;
}

.question-mark {
    font-size: 4em;
    font-weight: 900;
    color: #888;
    opacity: 0.5;
}

.color-btn.black .question-mark {
    color: #fff;
}

.color-btn.white .question-mark {
    color: #333;
}

/* Animazioni feedback */
@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background-color: var(--success-color); }
    100% { transform: scale(1); }
}

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

.color-btn.correct {
    animation: correctPulse 0.5s ease;
}

.color-btn.wrong {
    animation: wrongShake 0.5s ease;
    background-color: var(--danger-color) !important;
}

/* Review items specifici per colori */
.review-item .square-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 3px;
    margin-left: 10px;
    vertical-align: middle;
}

.review-item .square-color.black {
    background-color: #2c2c2c;
}

.review-item .square-color.white {
    background-color: #ffffff;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .color-question-container h2 {
        font-size: 1.8em;
    }
    
    #current-square {
        font-size: 3em;
    }
    
    .square-display {
        padding: 30px 40px;
    }
    
    .color-buttons {
        gap: 20px;
    }
    
    .color-btn {
        width: 120px;
        height: 120px;
    }
    
    .question-mark {
        font-size: 3em;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .square-display {
        background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
        border-color: #555;
    }
    
    #current-square {
        color: #ecf0f1;
    }
    
    .color-btn.white {
        border-color: #999;
    }
}