
/* =================================================
   IQRANIX AI — PREMIUM DESIGN
   Four themes: Royal, Emerald, White, Black
================================================= */


/* ================= ROOT / ROYAL THEME ================= */

:root {
    --bg: #080e25;
    --surface: #111b38;
    --surface-2: #192748;
    --primary: #c5a45e;
    --gold: #e8ce91;
    --text: #f8f5ed;
    --muted: #b6bfd0;
    --border: rgba(232, 206, 145, 0.16);
    --shadow: 0 15px 40px rgba(0,0,0,0.25);
    --header-bg: rgba(8,14,37,0.96);
    --soft-gold: rgba(232,206,145,0.10);
}


/* ================= EMERALD THEME ================= */

body[data-theme="emerald"] {
    --bg: #071b17;
    --surface: #102c25;
    --surface-2: #183b31;
    --primary: #d0b36d;
    --gold: #e5cc8d;
    --text: #f5f7ef;
    --muted: #b5c9bf;
    --border: rgba(229,204,141,0.17);
    --header-bg: rgba(7,27,23,0.96);
    --soft-gold: rgba(229,204,141,0.10);
}


/* ================= WHITE THEME ================= */

body[data-theme="white"] {
    --bg: #f4f3ef;
    --surface: #ffffff;
    --surface-2: #eeece5;
    --primary: #987536;
    --gold: #9c793b;
    --text: #202b35;
    --muted: #68727d;
    --border: rgba(40,50,60,0.12);
    --header-bg: rgba(255,255,255,0.96);
    --soft-gold: rgba(156,121,59,0.10);
    --shadow: 0 12px 30px rgba(20,30,40,0.08);
}


/* ================= BLACK THEME ================= */

body[data-theme="black"] {
    --bg: #050505;
    --surface: #111111;
    --surface-2: #1c1c1c;
    --primary: #d0b36d;
    --gold: #e8ce91;
    --text: #f5f5f5;
    --muted: #aaaaaa;
    --border: rgba(255,255,255,0.12);
    --header-bg: rgba(5,5,5,0.97);
    --soft-gold: rgba(232,206,145,0.09);
}


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    padding-bottom: 25px;
    background: var(--bg);
    color: var(--text);
    font-family: "Poppins", Arial, sans-serif;
    transition: background 0.25s ease, color 0.25s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}


/* ================= HEADER ================= */

.ai-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.back-button,
.theme-button {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--gold);
    font-size: 17px;
}

.back-button:active,
.theme-button:active {
    transform: scale(0.94);
}

.ai-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1;
    min-width: 0;
}

.brand-icon {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--soft-gold);
    color: var(--gold);
    font-size: 20px;
}

.ai-brand h1 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.ai-brand p {
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px;
}


/* ================= THEME PANEL ================= */

.theme-panel {
    position: absolute;
    z-index: 200;
    top: 76px;
    right: 14px;
    width: min(330px, calc(100% - 28px));
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.theme-panel[hidden] {
    display: none;
}

.theme-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.theme-panel-heading h3 {
    font-size: 15px;
}

.theme-panel-heading p {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

#closeThemePanel {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--muted);
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 47px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    text-align: left;
    font-size: 11px;
}

.theme-option.active {
    border-color: var(--gold);
    box-shadow: inset 0 0 0 1px var(--gold);
}

.theme-swatch {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.royal-swatch {
    background: linear-gradient(135deg, #080e25 50%, #c5a45e 50%);
}

.emerald-swatch {
    background: linear-gradient(135deg, #071b17 50%, #d0b36d 50%);
}

.white-swatch {
    background: linear-gradient(135deg, #ffffff 50%, #987536 50%);
}

.black-swatch {
    background: linear-gradient(135deg, #050505 50%, #d0b36d 50%);
}


/* ================= MAIN ================= */

.ai-main {
    width: min(100% - 30px, 680px);
    margin: 0 auto;
}


/* ================= WELCOME ================= */

.ai-welcome {
    position: relative;
    overflow: hidden;
    margin-top: 23px;
    padding: 27px 22px;
    border: 1px solid var(--border);
    border-radius: 23px;
    background:
        radial-gradient(circle at 90% 10%, var(--soft-gold), transparent 45%),
        var(--surface);
}

.welcome-symbol {
    width: 53px;
    height: 53px;
    display: grid;
    place-items: center;
    margin-bottom: 17px;
    border-radius: 17px;
    background: var(--soft-gold);
    color: var(--gold);
    font-size: 23px;
}

.welcome-label {
    color: var(--gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.ai-welcome h2 {
    max-width: 440px;
    margin-top: 10px;
    font-size: clamp(23px, 5vw, 31px);
    line-height: 1.3;
    font-weight: 700;
}

.ai-welcome > p:last-child {
    max-width: 480px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}


/* ================= SECTION HEADINGS ================= */

.ai-options {
    margin-top: 31px;
}

.section-heading {
    margin-bottom: 15px;
}

.section-heading h2,
.ai-how > h2 {
    font-size: 19px;
    font-weight: 700;
}

.section-heading p {
    color: var(--muted);
    margin-top: 4px;
    font-size: 11px;
}


/* ================= OPTION CARDS ================= */

.ai-option-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 19px 15px;
    margin-bottom: 13px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ai-option-card:active {
    transform: scale(0.985);
}

.ai-option-card:hover {
    background: var(--surface-2);
    border-color: var(--gold);
}

.option-icon {
    width: 49px;
    height: 49px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--soft-gold);
    color: var(--gold);
    font-size: 20px;
}

.option-content {
    flex: 1;
    min-width: 0;
}

.option-number {
    color: var(--gold);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.option-content h3 {
    margin-top: 5px;
    font-size: 16px;
    font-weight: 700;
}

.option-content > p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.option-features {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 12px;
}

.option-features span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 9px;
}

.option-features i {
    color: var(--gold);
    font-size: 10px;
}

.option-arrow {
    flex-shrink: 0;
    align-self: center;
    color: var(--gold);
    font-size: 13px;
}


/* ================= HOW IT WORKS ================= */

.ai-how {
    margin-top: 31px;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.how-item {
    min-width: 0;
    padding: 17px 9px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.how-item > i {
    color: var(--gold);
    font-size: 19px;
    margin-bottom: 9px;
}

.how-item h3 {
    font-size: 12px;
    margin-bottom: 5px;
}

.how-item p {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
}


/* ================= DISCLAIMER ================= */

.ai-disclaimer {
    margin-top: 27px;
    padding: 18px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 16px;
    background: var(--soft-gold);
}

.disclaimer-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.disclaimer-heading i {
    color: var(--gold);
    font-size: 17px;
}

.disclaimer-heading h3 {
    font-size: 13px;
}

.ai-disclaimer p {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
}

.ai-disclaimer p + p {
    margin-top: 9px;
}


/* ================= FOOTER ================= */

.ai-footer {
    padding: 31px 15px 25px;
    margin-top: 10px;
    text-align: center;
    color: var(--muted);
}

.ai-footer h3 {
    color: var(--gold);
    font-size: 19px;
    margin-bottom: 5px;
}

.ai-footer p {
    font-size: 11px;
    margin-bottom: 5px;
}

.ai-footer small {
    font-size: 9px;
}

.footer-copyright {
    margin-top: 14px;
    color: var(--muted);
    opacity: 0.7;
    font-size: 10px;
}


/* ================= ACCESSIBILITY ================= */

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}


/* ================= SMALL SCREENS ================= */

@media (max-width: 380px) {
    .ai-header {
        padding: 12px 10px;
        gap: 9px;
    }

    .ai-brand h1 {
        font-size: 16px;
    }

    .ai-brand p {
        font-size: 9px;
    }

    .ai-main {
        width: calc(100% - 22px);
    }

    .ai-welcome {
        padding: 22px 17px;
    }

    .ai-option-card {
        gap: 10px;
        padding: 15px 11px;
    }

    .option-icon {
        width: 43px;
        height: 43px;
        font-size: 17px;
    }

    .option-content h3 {
        font-size: 14px;
    }

    .option-content > p {
        font-size: 10px;
    }

    .option-features span {
        font-size: 8px;
    }

    .how-grid {
        gap: 6px;
    }

    .how-item {
        padding: 14px 6px;
    }
}


/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
