/* stesso-colore.css - Stili specifici per Quiz Stesso Colore */

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

.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 delle caselle */
.squares-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.square-name {
    font-size: 4em;
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 5px;
}

.and-text {
    font-size: 2em;
    color: var(--text-secondary);
    font-weight: 300;
}

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

.answer-btn {
    width: 200px;
    height: 200px;
    border: 5px solid #333;
    border-radius: 20px;
    font-size: 3em;
    font-weight: 900;
    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.2);
}

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

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

.yes-btn {
    background-color: #2c2c2c;
    color: white;
    border-color: #2c2c2c;
}

.yes-btn:hover {
    background-color: #1a1a1a;
}

.no-btn {
    background-color: white;
    color: #2c2c2c;
    border-color: #333;
}

.no-btn:hover {
    background-color: #f5f5f5;
}

/* Feedback animazioni */
@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); }
}

.answer-btn.correct {
    animation: correctPulse 0.6s ease;
}

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

/* Disabilita bottoni durante feedback */
.answer-buttons.disabled {
    pointer-events: none;
    opacity: 0.7;
}

/* Review items specifici */
.review-item {
    display: grid;
    grid-template-columns: 40px 150px 100px 100px 60px;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.review-item.correct {
    border-left: 4px solid var(--success-color);
}

.review-item.wrong {
    border-left: 4px solid var(--danger-color);
}

.review-squares {
    font-weight: 600;
    text-transform: uppercase;
}

.review-answer {
    font-weight: 500;
}

.review-correct-answer {
    color: var(--success-color);
    font-weight: bold;
}

.color-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1px solid #333;
    margin-left: 5px;
    vertical-align: middle;
}

.color-indicator.light {
    background-color: #f0d9b5;
}

.color-indicator.dark {
    background-color: #b58863;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .squares-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .square-name {
        font-size: 3em;
    }
    
    .and-text {
        font-size: 1.5em;
    }
    
    .answer-buttons {
        gap: 20px;
    }
    
    .answer-btn {
        width: 140px;
        height: 140px;
        font-size: 2.5em;
    }
    
    .review-item {
        grid-template-columns: 30px 1fr;
        gap: 10px;
    }
    
    .review-item > span:not(:first-child):not(:last-child) {
        display: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .no-btn {
        background-color: #2d2d2d;
        color: #ecf0f1;
        border-color: #555;
    }
    
    .no-btn:hover {
        background-color: #3d3d3d;
    }
    
    .yes-btn {
        background-color: #ecf0f1;
        color: #2d2d2d;
        border-color: #ecf0f1;
    }
    
    .yes-btn:hover {
        background-color: #fff;
    }
}