/* ============================================================
   Notary Exam Quiz Theme — assets/css/quiz.css
   Multimedia Solutions LLC
============================================================ */

/* BRAND DEFAULTS (overridden by PHP dynamic CSS) */
:root {
    --brand-primary:      #CC0000;
    --brand-primary-dark: #A00000;
    --brand-glow:         rgba(204,0,0,0.18);
    --brand-accent-text:  #FCA5A5;
    --brand-timer:        30s;

    --navy:   #0D0D0D;
    --white:  #FFFFFF;
    --off:    #F7F7F7;
    --border: rgba(255,255,255,0.1);
    --muted:  rgba(255,255,255,0.4);
    --text:   rgba(255,255,255,0.85);
    --gold:   #CFA82C;

    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   BASE
============================================================ */
html { font-size: 16px; }

body.net-brand-pa,
body.net-brand-ny {
    background: var(--navy);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   GLOW EFFECT
============================================================ */
.net-glow {
    position: fixed;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--brand-glow) 0%, transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.8s;
}

/* ============================================================
   URGENCY BAR
============================================================ */
.net-urgency {
    background: var(--brand-primary);
    padding: 10px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
    line-height: 1.5;
}

.net-urgency-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    flex-shrink: 0;
    animation: netPulse 2s ease-in-out infinite;
}

@keyframes netPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ============================================================
   NAV
============================================================ */
.net-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(13,13,13,0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 24px;
}

.net-nav-logo {
    font-family: 'Instrument Serif', serif;
    font-size: 17px;
    color: rgba(255,255,255,0.75);
}

.net-nav-sister {
    position: absolute;
    right: 24px;
    font-size: 12px;
    color: var(--muted);
}

.net-nav-sister a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity var(--transition);
}

.net-nav-sister a:hover { opacity: 0.75; }

/* ============================================================
   PAGE + CARD
============================================================ */
.net-page {
    min-height: calc(100vh - 52px - 38px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.net-card {
    width: 100%;
    max-width: 540px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
}

.net-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--brand-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ============================================================
   PROGRESS
============================================================ */
.net-progress {
    margin-bottom: 28px;
}

.net-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.net-progress-track {
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.net-progress-fill {
    height: 100%;
    background: var(--brand-primary);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

/* ============================================================
   TIMER
============================================================ */
.net-timer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.net-timer-ring {
    position: relative;
    width: 48px;
    height: 48px;
}

.net-timer-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

/* ============================================================
   STEPS + TRANSITIONS
============================================================ */
.net-step {
    display: none;
    animation: netFadeSlide 0.35s ease both;
}

.net-step.active {
    display: block;
}

@keyframes netFadeSlide {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.net-step.exit {
    animation: netFadeSlideOut 0.25s ease both;
}

@keyframes netFadeSlideOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-12px); }
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
.net-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 14px;
}

.net-headline {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(24px, 4.5vw, 38px);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 12px;
}

.net-headline em {
    color: var(--brand-accent-text);
    font-style: italic;
}

.net-sub {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 28px;
}

.net-q-topic {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 10px;
}

.net-q-headline {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(18px, 3vw, 26px);
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 24px;
    font-weight: 400;
}

/* ============================================================
   DIFFICULTY SELECTOR
============================================================ */
.net-difficulty {
    margin-bottom: 24px;
}

.net-difficulty-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.net-difficulty-options {
    display: flex;
    gap: 10px;
}

.net-diff-btn {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 14px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
    color: var(--muted);
}

.net-diff-btn:hover {
    border-color: rgba(255,255,255,0.2);
    color: var(--white);
}

.net-diff-btn.active {
    border-color: var(--brand-primary);
    background: rgba(var(--brand-primary), 0.08);
    color: var(--white);
}

.net-diff-icon { font-size: 20px; }
.net-diff-name { font-size: 13px; font-weight: 700; color: var(--white); }
.net-diff-desc { font-size: 11px; color: var(--muted); }

/* ============================================================
   OPTIONS
============================================================ */
.net-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.net-option {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    transition: all var(--transition);
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    width: 100%;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.net-option::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background var(--transition);
}

.net-option:hover:not([disabled]) {
    border-color: rgba(255,255,255,0.25);
    color: var(--white);
    background: rgba(255,255,255,0.06);
}

.net-option[disabled] { cursor: not-allowed; }

.net-option.net-correct {
    border-color: #16A34A;
    background: rgba(22,163,74,0.1);
    color: #4ADE80;
}

.net-option.net-wrong {
    border-color: var(--brand-primary);
    background: rgba(204,0,0,0.1);
    color: var(--brand-accent-text);
}

.net-option-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
    transition: all var(--transition);
}

.net-option.net-correct .net-option-letter {
    background: #16A34A;
    color: var(--white);
}

.net-option.net-wrong .net-option-letter {
    background: var(--brand-primary);
    color: var(--white);
}

/* ============================================================
   FEEDBACK
============================================================ */
.net-feedback {
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.6;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease, margin 0.3s ease;
}

.net-feedback.show {
    padding: 12px 16px;
    max-height: 200px;
    margin-bottom: 12px;
}

.net-feedback.net-fb-correct {
    background: rgba(22,163,74,0.1);
    border: 1px solid rgba(22,163,74,0.25);
    color: #4ADE80;
}

.net-feedback.net-fb-wrong {
    background: rgba(204,0,0,0.1);
    border: 1px solid rgba(204,0,0,0.25);
    color: var(--brand-accent-text);
}

/* ============================================================
   BUTTONS
============================================================ */
.net-btn-primary {
    display: block;
    width: 100%;
    background: var(--brand-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
    margin-top: 16px;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.net-btn-primary:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.net-btn-primary:disabled,
.net-btn-primary[aria-disabled="true"] {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.net-btn-ghost {
    display: block;
    width: 100%;
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
    margin-top: 10px;
    text-align: center;
}

.net-btn-ghost:hover {
    border-color: rgba(255,255,255,0.25);
    color: var(--white);
}

/* ============================================================
   INTRO META
============================================================ */
.net-intro-meta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
}

/* ============================================================
   CAPTURE FORM
============================================================ */
.net-capture-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 7px;
}

.net-capture-input {
    display: block;
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 13px 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--white);
    outline: none;
    margin-bottom: 14px;
    transition: border-color var(--transition);
    -webkit-appearance: none;
}

.net-capture-input:focus {
    border-color: var(--brand-primary);
}

.net-capture-input::placeholder {
    color: rgba(255,255,255,0.2);
}

.net-capture-fine {
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    text-align: center;
    margin-top: 10px;
    line-height: 1.6;
}

.net-capture-error {
    background: rgba(204,0,0,0.15);
    border: 1px solid rgba(204,0,0,0.3);
    border-radius: var(--radius-sm);
    color: var(--brand-accent-text);
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

/* ============================================================
   RESULTS
============================================================ */
.net-results-headline {
    font-size: clamp(20px, 3vw, 28px) !important;
    margin-bottom: 24px !important;
}

.net-score-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
    gap: 8px;
}

.net-score-ring {
    position: relative;
    width: 140px;
    height: 140px;
}

.net-score-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.net-score-num {
    font-family: 'Instrument Serif', serif;
    font-size: 44px;
    color: var(--white);
    line-height: 1;
}

.net-score-denom {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.net-score-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    text-align: center;
}

/* CHART */
.net-chart-wrap {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.net-chart-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

/* RESULT MESSAGE */
.net-result-message {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 24px;
    text-align: center;
}

/* RESULT CTAS */
.net-result-ctas {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* SHARE */
.net-share {
    margin: 16px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.net-share-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}

.net-share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.net-share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition);
}

.net-share-btn:hover {
    border-color: rgba(255,255,255,0.25);
    color: var(--white);
}

/* ============================================================
   DOTS
============================================================ */
.net-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
}

.net-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    transition: all 0.3s ease;
}

.net-dot.active {
    background: var(--brand-primary);
    width: 20px;
    border-radius: 3px;
}

.net-dot.done {
    background: rgba(255,255,255,0.25);
}

/* ============================================================
   FOOTER
============================================================ */
.net-footer {
    background: rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 20px 24px;
    position: relative;
    z-index: 1;
}

.net-footer-inner {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}

.net-footer-brand {
    font-family: 'Instrument Serif', serif;
    font-size: 15px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 4px;
}

.net-footer-sister {
    font-size: 12px;
    color: rgba(255,255,255,0.2);
    margin-bottom: 8px;
}

.net-footer-sister a {
    color: var(--brand-primary);
    text-decoration: none;
    opacity: 0.8;
}

.net-footer-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.net-footer-links a {
    font-size: 12px;
    color: rgba(255,255,255,0.2);
    text-decoration: none;
    transition: color var(--transition);
}

.net-footer-links a:hover { color: rgba(255,255,255,0.45); }

.net-footer-dot { color: rgba(255,255,255,0.15); }

.net-footer-copy {
    font-size: 11px;
    color: rgba(255,255,255,0.15);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media ( max-width: 540px ) {
    .net-card { padding: 28px 20px; border-radius: 16px; }
    .net-headline { font-size: 22px; }
    .net-difficulty-options { flex-direction: column; }
    .net-share-buttons { flex-direction: column; }
    .net-intro-meta { gap: 8px; font-size: 11px; }
}

/* ============================================================
   NY BRAND OVERRIDES
   (Applied when body has .net-brand-ny)
============================================================ */
body.net-brand-ny .net-headline em {
    color: #B5D4F4;
}
