/* css/style.css */

/* GENERAL UTILS */
.game-section { display: none; }
.active-section { display: block; }

/* ERROR MESSAGE */
#error-msg:not(:empty) { display: block !important; }

/* --- GAME ELEMENTS --- */

/* 1. QUIZ OPTION BUTTONS */
/* We style the JS-created .option-btn to look like a Bootstrap button */
.option-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.option-btn:hover:not(:disabled) {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

/* STATE: Correct Answer (Green) */
.option-btn.correct {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

/* STATE: Incorrect Answer (Red) */
.option-btn.incorrect {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

/* 2. SENTENCE BUILDER TILES */
.word-tile {
    background: white;
    border: 1px solid #ced4da;
    padding: 8px 16px;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    user-select: none;
    transition: all 0.2s;
}

.word-tile:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.word-tile:active {
    transform: scale(0.95);
}

/* 3. PRIORITY BADGE ANIMATION */
.priority-badge { 
    display: none; 
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}