/* BibleQuiz.biz — App Styles */

:root {
    --bq-orange: #fb880c;
    --bq-dark:   #2c2c2c;
    --bq-light:  #f8f9fa;
    --bq-correct: #198754;
    --bq-wrong:   #dc3545;
    --bq-muted:   #6c757d;
}

/* ---- Layout ---- */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #fff;
    color: var(--bq-dark);
}

.site-header {
    background: var(--bq-dark);
    color: #fff;
    padding: 0.75rem 0;
}

.site-header a { color: var(--bq-orange); text-decoration: none; }
.site-header a:hover { color: #fff; }

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-bq .nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500;
}
.navbar-bq .nav-link:hover,
.navbar-bq .nav-link.active {
    color: var(--bq-orange) !important;
}

footer {
    background: var(--bq-dark);
    color: rgba(255,255,255,.6);
    font-size: .85rem;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* ---- Home page ---- */
.bible-quote {
    background: #fff8f0;
    border-left: 4px solid var(--bq-orange);
    padding: 1rem 1.25rem;
    border-radius: 4px;
    font-style: italic;
    color: #555;
}

.stat-badge {
    background: var(--bq-orange);
    color: #fff;
    border-radius: 8px;
    padding: .5rem 1rem;
    display: inline-block;
    font-weight: 600;
}

/* ---- Quiz card ---- */
#quiz-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.quiz-progress-text {
    font-size: .9rem;
    color: var(--bq-muted);
}

.quiz-timer {
    font-size: .9rem;
    font-weight: 600;
    color: var(--bq-muted);
    font-variant-numeric: tabular-nums;
}

.quiz-timer.warning {
    color: var(--bq-wrong);
}

#question-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,.1);
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.answer-btn {
    text-align: left;
    border-radius: 8px !important;
    border: 2px solid #dee2e6;
    background: #fff;
    color: var(--bq-dark);
    font-size: 1rem;
    padding: .75rem 1.25rem;
    min-height: 48px;
    transition: border-color .15s, background .15s;
    position: relative;
}

.answer-btn:hover:not(:disabled) {
    border-color: var(--bq-orange);
    background: #fff8f0;
}

.answer-btn .pos-badge {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    background: var(--bq-orange);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    margin-right: .6rem;
    flex-shrink: 0;
}

.answer-btn.correct {
    border-color: var(--bq-correct);
    background: #d1e7dd;
    color: #0a3622;
}
.answer-btn.correct .pos-badge { background: var(--bq-correct); }

.answer-btn.wrong {
    border-color: var(--bq-wrong);
    background: #f8d7da;
    color: #58151c;
}
.answer-btn.wrong .pos-badge { background: var(--bq-wrong); }

.answer-btn.eliminated {
    opacity: .35;
    pointer-events: none;
}

.answer-btn:disabled {
    cursor: default;
}

/* ---- Feedback bar ---- */
#feedback-bar {
    border-radius: 8px;
    font-weight: 500;
    padding: .75rem 1rem;
    min-height: 54px;
}

/* ---- Lifeline button ---- */
#lifeline-btn {
    border-radius: 50px;
    padding: .4rem 1.2rem;
    font-size: .9rem;
    font-weight: 600;
    border: 2px solid var(--bq-orange);
    color: var(--bq-orange);
    background: transparent;
}
#lifeline-btn:hover:not(:disabled) {
    background: var(--bq-orange);
    color: #fff;
}
#lifeline-btn:disabled {
    opacity: .4;
}

/* ---- Score summary ---- */
.score-card {
    background: linear-gradient(135deg, #2c2c2c 0%, #3d3d3d 100%);
    color: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.score-points {
    font-size: 3rem;
    font-weight: 700;
    color: var(--bq-orange);
    line-height: 1;
}

.score-label {
    font-size: .9rem;
    opacity: .7;
    margin-bottom: .25rem;
}

.score-stat {
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    padding: .75rem;
    text-align: center;
}

/* ---- Toplist ---- */
.toplist-table th {
    background: var(--bq-dark);
    color: #fff;
}

.toplist-table tr:nth-child(1) td { background: #fff8e1; }
.toplist-table tr:nth-child(2) td { background: #f5f5f5; }
.toplist-table tr:nth-child(3) td { background: #fff3e0; }

.rank-badge {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: .85rem;
}

.rank-1 { background: gold; color: #333; }
.rank-2 { background: silver; color: #333; }
.rank-3 { background: #cd7f32; color: #fff; }
.rank-n { background: #e9ecef; color: #555; }

.flag-img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border: 1px solid #ddd;
    vertical-align: middle;
    margin-right: 4px;
}

/* ---- Spinner ---- */
.quiz-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

/* ---- Ads ---- */
.ad-container {
    text-align: center;
    margin: 1rem 0;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 576px) {
    .question-text { font-size: 1.05rem; }
    .score-points  { font-size: 2.2rem; }
}
