/* =========================================================
   WIRELAB — TEST PAGE
   NEON ROYAL / GRAPHITE / ELECTRIC PURPLE
========================================================= */

/* =========================================================
   TEST CONTENT
========================================================= */
.test-content {
    padding-bottom: 40px;
    color: var(--wire-text);
}


/* =========================================================
   PAGE INTRODUCTION
========================================================= */
.test-intro {
    width: 100%;
    margin-bottom: 12px;
}

.test-intro h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 1.5px;
    color: var(--wire-text);
    text-transform: uppercase;
}

.test-intro p {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--wire-text-muted);
}


/* =========================================================
   TEST GRID
========================================================= */
.test-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* =========================================================
   TEST CARDS
========================================================= */
.test-card {
    width: 100%;
    padding: 16px;

    background: var(--wire-card);
    border: 1px solid var(--wire-border);
    border-radius: 5px;

    box-shadow:
        0 6px 18px var(--wire-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    overflow: hidden;
}


/* =========================================================
   MAIN TEST CARD
========================================================= */
.test-card-main {
    width: 100%;
    margin-top: -12px;
    border-color: var(--wire-accent);
}

.test-card-header {
    width: 100%;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--wire-border);
}

.card-label {
    display: block;
    margin-bottom: 4px;

    font-size: 10px;
    font-weight: 300;
    letter-spacing: 1.4px;

    color: var(--wire-accent-bright);
}

.test-card h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.8px;
    color: var(--wire-text);
}

.test-card-header p {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--wire-text-muted);
}


/* =========================================================
   TEST AREA
========================================================= */
.test-area {
    width: 100%;
    margin-top: 14px;
}


/* =========================================================
   TEST START
========================================================= */
.test-start {
    width: 100%;
    padding: 18px 14px;

    border: 1px solid var(--wire-border-accent);
    border-radius: 4px;
    background: var(--wire-surface);

    text-align: center;
}

.test-start h4 {
    margin: 0;
    font-size: 19px;
    font-weight: 300;
    letter-spacing: 0.7px;
    color: var(--wire-text);
}

.test-start p {
    margin: 7px 0 14px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--wire-text-muted);
}


/* =========================================================
   TEST BUTTONS
========================================================= */
.test-button {
    min-height: 32px;
    padding: 0 14px;

    border: 1px solid var(--wire-accent);
    border-radius: 4px;

    background: rgba(160, 94, 210, 0.10);
    color: var(--wire-text);

    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 1px;

    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.test-button:hover {
    border-color: var(--wire-accent-bright);
    background: rgba(160, 94, 210, 0.20);
    color: var(--wire-accent-bright);
}


/* =========================================================
   QUESTION AREA
========================================================= */
.question-area {
    width: 100%;
}

.question-progress {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;

    font-size: 10px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--wire-text-muted);
}

#questionCategory {
    color: var(--wire-accent-bright);
}


/* =========================================================
   QUESTION PROGRESS BAR
========================================================= */
.progress-track {
    width: 100%;
    height: 7px;
    margin-bottom: 16px;
    overflow: hidden;

    border: 1px solid var(--wire-border-accent);
    border-radius: 4px;
    background: rgb(17, 17, 20);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--wire-accent);

    box-shadow: 0 0 8px rgba(160, 94, 210, 0.35);
    transition: width 0.25s ease;
}


/* =========================================================
   QUESTION TEXT
========================================================= */
.question-area h4 {
    margin: 0 0 14px;
    font-size: 19px;
    font-weight: 300;
    line-height: 1.35;
    color: var(--wire-text);
}


/* =========================================================
   ANSWER CHOICES
========================================================= */
.answer-choices {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.answer-choices button {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;

    border: 1px solid var(--wire-border-accent);
    border-radius: 4px;

    background: rgb(25, 25, 29);
    color: var(--wire-text);

    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 300;
    text-align: left;

    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.answer-choices button:not(:disabled):hover {
    background: rgba(85, 115, 205, 0.12);
    border-color: var(--wire-accent);
}

.answer-choices button:disabled {
    cursor: default;
}


/* =========================================================
   ANSWER FEEDBACK
========================================================= */
.answer-feedback {
    width: 100%;
    margin-top: 12px;
    padding: 10px 12px;

    border: 1px solid var(--wire-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.025);

    font-size: 12px;
    line-height: 1.5;
    color: var(--wire-text-muted);
}


/* =========================================================
   NEXT QUESTION
========================================================= */
#nextQuestionButton {
    margin-top: 12px;
}


/* =========================================================
   TEST COMPLETE
========================================================= */
.test-complete {
    width: 100%;
    padding: 20px 14px;

    border: 1px solid var(--wire-accent);
    border-radius: 4px;
    background: var(--wire-surface);

    text-align: center;
}

.test-complete h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--wire-text);
}

.test-complete p {
    margin: 8px 0 14px;
    font-size: 16px;
    font-weight: 300;
    color: var(--wire-accent-bright);
}


/* =========================================================
   TEST PROGRESS
========================================================= */
.test-progress {
    width: 100%;
    display: flex;
    gap: 8px;

    margin-top: 14px;
    padding-top: 14px;

    border-top: 1px solid var(--wire-border);
}

.test-progress > div {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 6px;

    border: 1px solid var(--wire-border-accent);
    border-radius: 4px;
    background: var(--wire-surface);

    text-align: center;
}

.test-progress span {
    display: block;
    margin-bottom: 4px;

    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.8px;
    line-height: 1.4;

    color: var(--wire-text-muted);
}

.test-progress strong {
    display: block;
    font-size: 19px;
    font-weight: 300;
    color: var(--wire-text);
}


/* =========================================================
   RESET
========================================================= */
.reset-button {
    width: 100%;
    min-height: 30px;
    margin-top: 10px;
    padding: 4px 10px;

    border: 1px solid var(--wire-border);
    border-radius: 4px;

    background: transparent;
    color: var(--wire-text-muted);

    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 1px;

    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.reset-button:hover {
    border-color: var(--wire-accent);
    background: rgba(160, 94, 210, 0.08);
    color: var(--wire-text);
}


/* =========================================================
   FUTURE TEST CARDS
========================================================= */
.test-card-medium,
.test-card-small {
    width: 100%;
    border-color: var(--wire-border);
}

.test-card-medium:hover,
.test-card-small:hover {
    border-color: var(--wire-border-accent);
}

.test-card-medium p,
.test-card-small p {
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--wire-text-muted);
}


/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
    .test-button,
    .answer-choices button,
    .reset-button,
    .progress-bar {
        transition: none;
    }
}