/* --- Wrapper e Contenitore Base --- */
#vienna-quiz-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    background-color: #f4f4f4;
    min-height: 60vh;
}

.quiz-container {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 600px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden; /* Importante per le barre */
}

/* --- Spinner Caricamento --- */
.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #b82424;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Schermata Avvio --- */
.intro-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #b82424;
    text-align: left;
}

/* --- Header Info (Timer e Contatore) --- */
.quiz-header-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
}

.timer-bar-container {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.timer-bar {
    height: 100%;
    background-color: #b82424;
    width: 100%;
    transition: width 1s linear;
}

/* --- Pulsanti Risposta --- */
.btn-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.quiz-btn {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
    width: 100%;
}

.quiz-btn:hover:not([disabled]) {
    background-color: #e2e2e2;
    transform: translateY(-2px);
}

/* Feedback Colori */
.quiz-btn.correct {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.quiz-btn.wrong {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
    animation: shake 0.5s;
}

/* Animazione Shake per errore */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* --- Next Button --- */
.next-btn {
    background-color: #b82424;
    color: white;
    border: none;
    margin-top: 20px;
    padding: 12px 24px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.next-btn:hover {
    background-color: #961d1d;
}

/* --- Condivisione Social --- */
.share-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-btn {
    border: none;
    padding: 10px 15px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    font-size: 0.9rem;
}

.wa-btn { background-color: #25D366; }
.wa-btn:hover { background-color: #1ebe57; }

.fb-btn { background-color: #3b5998; }
.fb-btn:hover { background-color: #2d4373; }

/* --- Utility --- */
.hide { display: none !important; }