/* ======================================================
   Bludit Test Plugin — restyled (dark / #0049B8)
   ====================================================== */

.bq-wrap {
    max-width: 680px;
    margin: 2rem auto;
    color: #fff;
}

/* ---- Start screen ---- */
.bq-scr-start {
    text-align: center;
    padding: 4rem 2rem;
}

.bq-btn-start {
    display: inline-block;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.7rem 4rem;
    border: 2px solid #fff;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s;
}
.bq-btn-start:hover {
    background: #fff;
    color: #0049B8;
    border-color: #0049B8;
}
.bq-btn-start:active {
    transform: translateY(0);
}

/* ---- Loading screen ---- */
.bq-scr-load {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255,255,255,0.7);
}
.bq-load-text {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}
.bq-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bq-spin 0.75s linear infinite;
    margin: 0 auto 1.2rem;
}
@keyframes bq-spin { to { transform: rotate(360deg); } }

/* ---- Question card ---- */
.bq-card {
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.3);
    border-left: 5px solid #fff;
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.6rem;
    color: #fff;
}
.bq-question-text {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #fff;
}
.bq-question-text em {
    font-style: italic;
    color: rgba(255,255,255,0.85);
}
.bq-question-text strong {
    color: #fff;
}

/* ---- Option buttons ---- */
.bq-options {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.4rem;
}
.bq-option {
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 1rem 1.4rem;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.55;
    text-align: left;
    text-transform: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
    user-select: none;
}
.bq-option:hover:not(:disabled) {
    background: rgba(255,255,255,0.22);
    transform: translateX(5px);
}
.bq-option:disabled {
    cursor: default;
}

/* Correct answer */
.bq-option.bq-correct {
    background: rgba(40,167,69,0.35) !important;
    border-color: #28a745;
    color: #d4edda;
    font-weight: 600;
}
.bq-option.bq-correct::before {
    content: "✓ ";
    color: #28a745;
}

/* Wrong answer */
.bq-option.bq-wrong {
    background: rgba(220,53,69,0.35) !important;
    border-color: #dc3545;
    color: #f8d7da;
    text-decoration: line-through;
}
.bq-option.bq-wrong::before {
    content: "✗ ";
    color: #dc3545;
}

/* ---- Explanation ---- */
.bq-explanation {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-left: 5px solid #fff;
    border-radius: 5px;
    display: none;
    animation: fadeIn 0.5s;
    color: #fff;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- Action buttons ---- */
.bq-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.bq-btn {
    padding: 0.5rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
    background: transparent;
}
.bq-btn:hover { background: #fff; color: #0049B8; border-color: #0049B8; }
.bq-btn:active { transform: translateY(0); }

.bq-btn-primary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.bq-btn-primary:hover {
    background: #fff;
    color: #0049B8;
    border-color: #0049B8;
}
.bq-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}
.bq-btn-secondary:hover {
    background: #fff;
    color: #0049B8;
    border-color: #0049B8;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .bq-btn-start { font-size: 1.2rem; padding: 0.9rem 2.5rem; }
    .bq-option    { font-size: 0.95rem; padding: 0.85rem 1.1rem; }
}
