/* ==========================================================================
   Iránytű komponens — közös stílus (js/iranytu.js párja)

   A dashboard.html a saját (korábbi) .option-card/.modal-options stílusait is
   tartalmazza — az értékek itt ugyanazok, így ott sem ütközik. Az onboarding
   és minden későbbi gazda-oldal ebből a fájlból kap mindent.
   ========================================================================== */

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    text-decoration: none;
    color: inherit;
}

.option-card:hover {
    border-color: rgba(160, 136, 83, 0.3);
    transform: translateY(-1px);
}

.option-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.option-icon.identity { background: rgba(160, 136, 83, 0.12); color: var(--gold, #A08853); }
.option-icon.vakfolt { background: rgba(236, 72, 153, 0.12); color: #ec4899; }
.option-icon.taszito { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.option-icon.boseg { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.option-icon.manifesztacio { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.option-icon.lelkitars { background: rgba(244, 114, 182, 0.12); color: #f472b6; }

.option-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.option-desc {
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.4;
}

/* --- Kvíz-vizuál: ugyanaz a nyelv, mint a /teszt oldalakon (css/teszt.css).
   Szándékosan önálló másolat, hogy a komponens ott is jól nézzen ki, ahol a
   teszt.css nincs betöltve (dashboard-modal, onboarding). --- */

.progress-bar {
    width: 100%;
    max-width: 600px;
    height: 8px;
    background: rgba(26, 39, 56, 0.5);
    border-radius: 10px;
    margin: 0 auto 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-light, #8B7442), var(--gold-bright, #A08853));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    margin: 0 0 14px;
}

.question-card {
    background: rgba(26, 39, 56, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--gold-light, #8B7442);
    border-radius: 14px;
    padding: 24px 20px;
    margin-bottom: 18px;
    animation: iranytuFadeIn 0.35s ease;
    text-align: left;
}

@keyframes iranytuFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.question-section-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-light, #c4b391);
    margin-bottom: 10px;
    font-weight: 600;
}

.question-title {
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-light, #e2e8f0);
    margin: 0 0 16px;
    line-height: 1.3;
}

.question-description {
    color: var(--text-muted, #94a3b8);
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-option {
    background: rgba(26, 39, 56, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.answer-option:hover {
    border-color: rgba(160, 136, 83, 0.5);
}

.answer-option.selected {
    border-color: var(--gold-bright, #A08853);
    background: rgba(160, 136, 83, 0.15);
}

.answer-label {
    flex: 1;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light, #e2e8f0);
}

.text-input {
    width: 100%;
    padding: 14px;
    font-family: inherit;
    font-size: 0.95rem;
    background: rgba(26, 39, 56, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-light, #e2e8f0);
    transition: all 0.2s;
    resize: vertical;
    min-height: 96px;
}

.text-input:focus {
    outline: none;
    border-color: var(--gold-bright, #A08853);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.quiz-navigation .btn {
    flex: 1;
    border: none;
    border-radius: 12px;
    padding: 13px 18px;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-navigation .btn-primary {
    background: linear-gradient(135deg, #7a6838, #A08853);
    color: #000;
}

.quiz-navigation .btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(160, 136, 83, 0.3);
}

.quiz-navigation .btn-primary:disabled { cursor: default; }

.quiz-navigation .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted, #94a3b8);
}

.quiz-navigation .btn-secondary:hover {
    color: var(--text-light, #e2e8f0);
    border-color: rgba(255, 255, 255, 0.3);
}

.option-card.iranytu-reco {
    border-color: rgba(160, 136, 83, 0.55);
    background: linear-gradient(135deg, rgba(160, 136, 83, 0.12), rgba(0, 0, 0, 0.25));
}

.iranytu-accordion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding: 10px 4px;
    color: var(--text-muted, #94a3b8);
    font-size: 0.9rem;
    cursor: pointer;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.iranytu-accordion-head:hover {
    color: var(--text-light, #e2e8f0);
}

/* ---------- Világos téma ---------- */

html.light-theme .option-card {
    background: rgba(139, 115, 64, 0.06);
    border-color: rgba(45, 42, 38, 0.12);
}

html.light-theme .option-card:hover {
    border-color: rgba(160, 136, 83, 0.45);
}

html.light-theme .option-title { color: #2d2a26; }
html.light-theme .option-desc { color: #6b6560; }

html.light-theme .progress-bar { background: rgba(0, 0, 0, 0.08); }

html.light-theme .question-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
    border-top-color: #8b7340;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

html.light-theme .question-title { color: #2d2a26; }
html.light-theme .question-description,
html.light-theme .progress-text { color: #6b6560; }
html.light-theme .question-section-title { color: #8b7340; }

html.light-theme .answer-option {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.12);
}

html.light-theme .answer-option:hover {
    border-color: #8b7340;
    background: rgba(255, 255, 255, 0.8);
}

html.light-theme .answer-option.selected {
    border-color: #a08853;
    background: rgba(139, 115, 64, 0.1);
}

html.light-theme .answer-label { color: #2d2a26; }

html.light-theme .text-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
    color: #2d2a26;
}

html.light-theme .quiz-navigation .btn-secondary {
    border-color: rgba(45, 42, 38, 0.18);
    color: #6b6560;
}

html.light-theme .option-card.iranytu-reco {
    background: linear-gradient(135deg, rgba(160, 136, 83, 0.14), rgba(45, 42, 38, 0.03));
}

html.light-theme .iranytu-accordion-head {
    border-top-color: rgba(45, 42, 38, 0.12);
    color: #6b6560;
}

html.light-theme .iranytu-accordion-head:hover {
    color: #2d2a26;
}
