/*
 * QuizPlatform foydalanuvchi interfeys sozlamalari.
 * Ushbu fayl header.php orqali barcha sahifalarda ulanadi.
 */

/* Asosiy ranglar */

html[data-accent="blue"] {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #7c3aed;
    --secondary-light: #ede9fe;
}

html[data-accent="purple"] {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #ede9fe;
    --secondary: #2563eb;
    --secondary-light: #dbeafe;
}

html[data-accent="green"] {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #dcfce7;
    --secondary: #0f766e;
    --secondary-light: #ccfbf1;
}

html[data-accent="orange"] {
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --primary-light: #ffedd5;
    --secondary: #d97706;
    --secondary-light: #fef3c7;
}

/* Qorong‘i rejim */

html[data-theme="dark"] {
    color-scheme: dark;
    --white: #111827;
    --dark: #f8fafc;
    --text: #e2e8f0;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    --background: #0f172a;
    --border: #334155;
}

html[data-theme="dark"] body {
    color: #e2e8f0;
    background: #0f172a;
}

html[data-theme="dark"] :is(.site-header,
    .dashboard-panel,
    .profile-panel,
    .profile-side-card,
    .settings-navigation,
    .settings-tab-panel,
    .feature-card,
    .step-card,
    .pricing-v2-card,
    .payment-modal-dialog,
    .account-delete-dialog) {
    color: #e2e8f0;
    border-color: #334155;
    background-color: #111827;
}

html[data-theme="dark"] :is(h1,
    h2,
    h3,
    h4,
    strong,
    label) {
    color: #f8fafc;
}

html[data-theme="dark"] :is(p,
    small,
    .form-helper,
    .settings-field-help) {
    color: #94a3b8;
}

html[data-theme="dark"] :is(input,
    textarea,
    select) {
    color: #f8fafc;
    border-color: #475569;
    background: #1e293b;
}

html[data-theme="dark"] :is(input,
    textarea)::placeholder {
    color: #64748b;
}

/* Tizim rejimi */

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        color-scheme: dark;
        --white: #111827;
        --dark: #f8fafc;
        --text: #e2e8f0;
        --text-light: #cbd5e1;
        --text-muted: #94a3b8;
        --background: #0f172a;
        --border: #334155;
    }

    html[data-theme="system"] body {
        color: #e2e8f0;
        background: #0f172a;
    }

    html[data-theme="system"] :is(.site-header,
        .dashboard-panel,
        .profile-panel,
        .profile-side-card,
        .settings-navigation,
        .settings-tab-panel,
        .feature-card,
        .step-card,
        .pricing-v2-card,
        .payment-modal-dialog,
        .account-delete-dialog) {
        color: #e2e8f0;
        border-color: #334155;
        background-color: #111827;
    }

    html[data-theme="system"] :is(h1,
        h2,
        h3,
        h4,
        strong,
        label) {
        color: #f8fafc;
    }

    html[data-theme="system"] :is(input,
        textarea,
        select) {
        color: #f8fafc;
        border-color: #475569;
        background: #1e293b;
    }
}

/* Ixcham ko‘rinish */

html.interface-compact :is(.dashboard-panel,
    .profile-panel,
    .profile-side-card,
    .settings-tab-panel,
    .feature-card,
    .step-card,
    .pricing-v2-card) {
    border-radius: 14px;
}

html.interface-compact :is(.dashboard-panel-header,
    .profile-panel-header,
    .settings-panel-header,
    .settings-form,
    .dashboard-panel-content) {
    padding-top: 15px;
    padding-bottom: 15px;
}

html.interface-compact :is(.profile-section,
    .settings-section,
    .dashboard-section) {
    padding-top: 24px;
    padding-bottom: 50px;
}

/* Animatsiyalar o‘chirilganda */

html.interface-no-animations *,
html.interface-no-animations *::before,
html.interface-no-animations *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

/* =========================================================
   QORONG‘I REJIM — FOOTER
   ========================================================= */

html[data-theme="dark"] .site-footer {
    color: #cbd5e1 !important;
    border-top-color: #263449 !important;
    background: #0b1220 !important;
}

html[data-theme="dark"] .site-footer :is(p,
    span,
    small,
    li) {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .site-footer :is(h2,
    h3,
    h4,
    strong,
    .brand-text) {
    color: #f8fafc !important;
}

html[data-theme="dark"] .site-footer a {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .site-footer a:hover {
    color: var(--primary) !important;
}

html[data-theme="dark"] .site-footer :is(.footer-bottom,
    .footer-column,
    .footer-contact-item) {
    border-color: #263449 !important;
}

/* Qurilma qorong‘i rejimida */

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .site-footer {
        color: #cbd5e1 !important;
        border-top-color: #263449 !important;
        background: #0b1220 !important;
    }
}

html[data-theme="system"] .site-footer :is(p,
    span,
    small,
    li) {
    color: #94a3b8 !important;
}

html[data-theme="system"] .site-footer :is(h2,
    h3,
    h4,
    strong,
    .brand-text) {
    color: #f8fafc !important;
}

html[data-theme="system"] .site-footer a {
    color: #cbd5e1 !important;
}

html[data-theme="system"] .site-footer a:hover {
    color: var(--primary)
}

/* =========================================================
   QORONG‘I REJIM — BOSH SAHIFA HERO QISMI
   ========================================================= */

html[data-theme="dark"] .hero-section {
    background:
        radial-gradient(circle at 10% 20%,
            rgba(37, 99, 235, 0.18),
            transparent 32%),
        radial-gradient(circle at 90% 25%,
            rgba(124, 58, 237, 0.18),
            transparent 32%),
        linear-gradient(135deg,
            #0f172a,
            #111827) !important;
}

html[data-theme="dark"] .hero-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .hero-title span {
    color: transparent !important;
    background:
        linear-gradient(135deg,
            #60a5fa,
            #a78bfa);
    background-clip: text;
    -webkit-background-clip: text;
}

html[data-theme="dark"] .hero-description {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .hero-badge {
    color: #93c5fd !important;
    border-color: rgba(96, 165, 250, 0.28) !important;
    background: rgba(37, 99, 235, 0.13) !important;
}

html[data-theme="dark"] .hero-benefit {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .dashboard-preview {
    color: #e2e8f0 !important;
    border-color: #334155 !important;
    background: #111827 !important;
}

html[data-theme="dark"] .preview-header h3,
html[data-theme="dark"] .preview-stat-card strong,
html[data-theme="dark"] .preview-test-info strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .preview-header small,
html[data-theme="dark"] .preview-stat-card span,
html[data-theme="dark"] .preview-test-info span,
html[data-theme="dark"] .hero-dashboard-demo-note {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .preview-stat-card,
html[data-theme="dark"] .preview-test-card {
    border-color: #334155 !important;
    background: #0f172a !important;
}

html[data-theme="dark"] .preview-result-card {
    border-color: #334155 !important;
    background:
        linear-gradient(135deg,
            #1e293b,
            #334155) !important;
}

/* Qurilmaning tizim rejimi qorong‘i bo‘lsa */

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .hero-section {
        background:
            radial-gradient(circle at 10% 20%,
                rgba(37, 99, 235, 0.18),
                transparent 32%),
            radial-gradient(circle at 90% 25%,
                rgba(124, 58, 237, 0.18),
                transparent 32%),
            linear-gradient(135deg,
                #0f172a,
                #111827) !important;
    }

    html[data-theme="system"] .hero-title {
        color: #f8fafc !important;
    }

    html[data-theme="system"] .hero-title span {
        color: transparent !important;
        background:
            linear-gradient(135deg,
                #60a5fa,
                #a78bfa);
        background-clip: text;
        -webkit-background-clip: text;
    }

    html[data-theme="system"] .hero-description,
    html[data-theme="system"] .hero-benefit {
        color: #cbd5e1 !important;
    }

    html[data-theme="system"] .dashboard-preview {
        color: #e2e8f0 !important;
        border-color: #334155 !important;
        background: #111827 !important;
    }

    html[data-theme="system"] .preview-stat-card,
    html[data-theme="system"] .preview-test-card {
        border-color: #334155 !important;
        background: #0f172a !important;
    }
}