/* =========================================================
   RAPID QUIZ FRONTEND CSS
   ========================================================= */

/* --- 1. Általános és Segédosztályok --- */
.rq-noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#rq-cheat-warning { 
    display: none; 
    background: #dc3232; 
    color: white; 
    text-align: center; 
    padding: 10px; 
    font-weight: bold; 
    font-size: 14px; 
}

@keyframes blink { 
    50% { opacity: 0.7; } 
}

/* --- 2. Kvíz Kitöltő Felület --- */
.rq-quiz-wrapper { 
    margin: 0 auto; 
    background: #fff; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    border-radius: 1px; 
    border: 1px solid #f8f8f8; /* Hiányzó # pótolva */
    overflow: hidden; 
    outline: none; 
}

.rq-header { 
    background: #f8f9fa; 
    padding: 15px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 2px solid #eee; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}
.rq-header-info { font-size: 14px; color: #555; }

.rq-timer { font-size: 20px; font-weight: bold; padding: 5px 15px; border-radius: 20px; background: #e9ecef; transition: color 0.3s; }
.rq-timer.green { color: #008a20; }
.rq-timer.orange { color: #d68b00; }
.rq-timer.red { color: #dc3232; animation: blink 1s infinite; }

.rq-progress { padding: 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; background: #fafafa; border-bottom: 1px solid #eee; }
.rq-circle { width: 30px; height: 30px; border-radius: 50%; background: #e0e0e0; display: flex; justify-content: center; align-items: center; font-size: 13px; font-weight: bold; cursor: pointer; color: #555; border: 2px solid transparent; transition: 0.2s; }
.rq-circle.answered { background: #008a20; color: white; }
.rq-circle.active { border: 2px solid #2271b1; transform: scale(1.1); box-shadow: 0 0 5px rgba(34,113,177,0.5); }

.rq-body { padding: 30px 20px; }
.rq-question-title { font-size: 18px; font-weight: bold; margin-bottom: 25px; color: #333; }

.rq-options-wrap { display: flex; justify-content: space-between; gap: 20px; }
.rq-opt-col { width: 48%; display: flex; flex-direction: column; gap: 5px; }

.rq-option { display: flex; align-items: center; padding: 12px 15px; margin-bottom: 10px; background: #f4f6f8; border: 2px solid transparent; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.rq-option:hover { background: #e2e8f0; }
.rq-option.focused { border-color: #8c8f94; background: #e2e8f0; } 
.rq-option.selected { background: #d1e7dd; border-color: #0f5132; color: #0f5132; font-weight: bold; } 
.rq-option input { margin-right: 15px; transform: scale(1.2); cursor: pointer; }

.rq-footer { padding: 15px 20px; background: #f8f9fa; border-top: 1px solid #eee; display: flex; justify-content: space-between; }
.rq-btn { padding: 10px 20px; font-size: 16px; font-weight: bold; border: none; border-radius: 4px; cursor: pointer; transition: 0.2s; }
.rq-btn-prev { background: #6c757d; color: white; }
.rq-btn-prev:disabled { opacity: 0.5; cursor: not-allowed; }
.rq-btn-next { background: #2271b1; color: white; }
.rq-btn-submit { background: #dc3232; color: white; }

/* --- 3. Eredmény (Végső) Felület --- */
.rq-final-box { width: 100%; max-width: 800px; margin: 0 auto; background: #fff; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); overflow: hidden; }
.rq-top-section { padding: 30px; }
.rq-stats-row { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 10px; font-size: 16px; flex-wrap: wrap; gap: 5px; }

.rq-score-dashboard { display: flex; justify-content: space-around; align-items: center; margin-top: 25px; background: #fdfdfd; padding: 25px 20px; border-radius: 8px; border: 1px solid #eee; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02); flex-wrap: wrap; gap: 20px; }
.rq-score-info { text-align: center; }
.rq-grade-info { text-align: center; border-left: 2px solid #eee; padding-left: 40px; }

.rq-details-section { padding: 0 30px 30px 30px; border-top: 2px solid #eee; background: #fff; }
.rq-q-block { padding: 20px; margin-top: 20px; border-radius: 4px; }

/* --- 4. Mobil Nézet (mindig a fájl legvégén) --- */
@media (max-width: 600px) {
    /* Eredmény oldal mobilon */
    .rq-top-section { padding: 20px 15px; }
    .rq-details-section { padding: 0 15px 20px 15px; }
    .rq-q-block { padding: 15px; }
    .rq-score-dashboard { flex-direction: column; gap: 15px; padding: 15px; }
    .rq-grade-info { border-left: none; padding-left: 0; border-top: 1px solid #eee; padding-top: 15px; width: 100%; }
    
    /* Kvíz oldal mobilon */
    .rq-options-wrap { flex-direction: column; gap: 5px; }
    .rq-opt-col { width: 100%; }
}