/* Bible Quiz Frontend Styles */
.bq-quiz-container {
    max-width: 680px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.bq-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1a237e;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid #e8eaf6;
}
.bq-subtitle {
    text-align: center;
    color: #555;
    font-size: 16px;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Buttons */
.bq-btn {
    display: inline-block;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}
.bq-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.bq-btn:active { transform: translateY(0); }
.bq-btn-primary { background: #1a237e; color: #fff; }
.bq-btn-primary:hover { background: #283593; }
.bq-btn-start { background: #43a047; color: #fff; font-size: 14px; padding: 8px 18px; }
.bq-btn-start:hover { background: #388e3c; }
.bq-btn-next { background: #1565c0; color: #fff; }
.bq-btn-next:hover { background: #0d47a1; }
.bq-btn-back { background: #f5f5f5; color: #333; font-size: 13px; padding: 6px 14px; }
.bq-btn-back:hover { background: #e0e0e0; }
.bq-btn-lg { font-size: 18px; padding: 14px 36px; }
.bq-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Level Items */
.bq-level-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    gap: 14px;
    transition: all 0.2s ease;
}
.bq-level-item.bq-level-open {
    border-color: #43a047;
    background: #f1f8e9;
}
.bq-level-item.bq-level-done {
    border-color: #1565c0;
    background: #e3f2fd;
}
.bq-level-item.bq-level-locked {
    border-color: #e0e0e0;
    background: #fafafa;
    opacity: 0.7;
}
.bq-level-badge {
    font-size: 28px;
    width: 44px;
    text-align: center;
    flex-shrink: 0;
}
.bq-level-details {
    flex: 1;
}
.bq-level-details strong {
    display: block;
    font-size: 17px;
    color: #222;
    margin-bottom: 4px;
}
.bq-level-desc {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}
.bq-score {
    display: block;
    font-size: 13px;
    color: #1565c0;
    font-weight: 600;
}
.bq-progress-text {
    display: block;
    font-size: 13px;
    color: #888;
}

/* Quiz Area */
.bq-quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.bq-progress-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}
.bq-score-label {
    font-size: 14px;
    color: #43a047;
}
.bq-question-text {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 24px;
    line-height: 1.5;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 12px;
    border-left: 4px solid #1a237e;
}

/* Options */
.bq-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bq-option {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    background: #fff;
    gap: 12px;
}
.bq-option:hover {
    border-color: #1a237e;
    background: #e8eaf6;
}
.bq-option.bq-selected {
    border-color: #1a237e;
    background: #c5cae9;
    font-weight: 600;
}
.bq-option.bq-correct {
    border-color: #43a047;
    background: #c8e6c9;
    font-weight: 600;
}
.bq-option.bq-wrong {
    border-color: #e53935;
    background: #ffcdd2;
}
.bq-option.bq-disabled {
    cursor: default;
    opacity: 0.8;
}
.bq-option.bq-disabled:hover {
    border-color: #ddd;
    background: #fff;
}
.bq-option.bq-correct:hover { background: #c8e6c9; border-color: #43a047; }
.bq-option.bq-wrong:hover { background: #ffcdd2; border-color: #e53935; }
.bq-option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #333;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.bq-option.bq-selected .bq-option-letter { background: #1a237e; color: #fff; }
.bq-option.bq-correct .bq-option-letter { background: #43a047; color: #fff; }
.bq-option.bq-wrong .bq-option-letter { background: #e53935; color: #fff; }

/* Feedback */
.bq-feedback {
    margin: 20px 0;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    animation: bqFadeIn 0.3s ease;
}
.bq-feedback.bq-feedback-correct {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #a5d6a7;
}
.bq-feedback.bq-feedback-wrong {
    background: #fce4ec;
    color: #c62828;
    border: 2px solid #ef9a9a;
}

#bq-next-wrap, #bq-random-next-wrap {
    text-align: center;
    margin-top: 16px;
}

/* Messages */
.bq-message {
    text-align: center;
    padding: 30px;
    margin: 20px 0;
    border-radius: 16px;
}
.bq-message.bq-success { background: #e8f5e9; }
.bq-message.bq-trophy { background: #fff8e1; }
.bq-message.bq-locked { background: #f5f5f5; }
.bq-icon {
    font-size: 56px;
    margin-bottom: 12px;
}
.bq-message p {
    font-size: 18px;
    color: #333;
    margin: 8px 0;
    font-weight: 600;
}
.bq-result-box {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 24px;
    background: #fff;
    border-radius: 8px;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Loading */
.bq-loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}
.bq-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ddd;
    border-top-color: #1a237e;
    border-radius: 50%;
    animation: bqSpin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* Random quiz specific */
#bq-random-intro {
    text-align: center;
    padding: 30px 0 20px;
}
#bq-random-intro .bq-subtitle {
    margin-bottom: 32px;
}
#bq-random-intro .bq-btn {
    margin-top: 8px;
}

#bq-continue-levels, #bq-random-restart {
    display: block;
    margin: 16px auto 0;
}

/* Animations */
@keyframes bqFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bqSpin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .bq-quiz-container {
        margin: 15px;
        padding: 20px;
    }
    .bq-title { font-size: 22px; }
    .bq-question-text { font-size: 17px; padding: 14px; }
    .bq-option { padding: 12px 14px; font-size: 14px; }
    .bq-btn-lg { font-size: 16px; padding: 12px 28px; }
    .bq-level-item { padding: 12px; }
    .bq-level-details strong { font-size: 15px; }
}

/* Levels summary (locked state) */
.bq-levels-summary {
    margin-top: 20px;
}
.bq-levels-summary .bq-level-item {
    cursor: default;
}
