/* I-No-oNe shared design system - liquid glass, light + dark */
:root {
    --bg: #eef1ee;
    --ink: #14161a;
    --ink-2: #3c4149;
    --muted: #656b73;
    --line: rgba(20, 24, 28, .08);
    --line-2: rgba(20, 24, 28, .14);
    --accent: #16a34a;
    --accent-2: #0ea5a3;
    --accent-ink: #0f7a37;
    --accent-soft: rgba(22, 163, 74, .14);

    --glass: rgba(255, 255, 255, .74);
    --glass-2: rgba(255, 255, 255, .56);
    --glass-brd: rgba(255, 255, 255, .7);
    --glass-hi: rgba(255, 255, 255, .9);
    --blur: 12px;

    --shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 20px 46px rgba(20, 22, 26, .10);
    --shadow-sm: 0 1px 2px rgba(20, 22, 26, .05), 0 10px 24px rgba(20, 22, 26, .07);
    --header-bg: rgba(238, 241, 238, .6);
    --radius: 22px;
    --radius-sm: 15px;
    --speed: .24s;
    --ease: cubic-bezier(.22, 1, .36, 1);

    --aur-1: rgba(22, 163, 74, .40);
    --aur-2: rgba(14, 165, 163, .34);
    --aur-3: rgba(101, 199, 120, .30);
    --code-bg: #0b0f0d;
    --code-ink: #d6f5df;
    --font: 'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
    --bg: #08090c;
    --ink: #f2f4f6;
    --ink-2: #c4c9d0;
    --muted: #888f99;
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .14);
    --accent: #2bd968;
    --accent-2: #22d3d0;
    --accent-ink: #4ade80;
    --accent-soft: rgba(43, 217, 104, .16);

    --glass: rgba(22, 26, 32, .74);
    --glass-2: rgba(22, 26, 32, .55);
    --glass-brd: rgba(255, 255, 255, .10);
    --glass-hi: rgba(255, 255, 255, .16);

    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 24px 50px rgba(0, 0, 0, .55);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 26px rgba(0, 0, 0, .4);
    --header-bg: rgba(8, 9, 12, .55);

    --aur-1: rgba(22, 163, 74, .34);
    --aur-2: rgba(20, 180, 178, .26);
    --aur-3: rgba(16, 120, 90, .28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background var(--speed), color var(--speed);
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent); }

/* Aurora background */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9; will-change: transform; }
.blob-1 { width: 46vw; height: 46vw; top: -12vw; left: -8vw;
    background: radial-gradient(circle at 30% 30%, var(--aur-1), transparent 65%);
    animation: drift1 22s var(--ease) infinite alternate; }
.blob-2 { width: 42vw; height: 42vw; top: 8vw; right: -12vw;
    background: radial-gradient(circle at 60% 40%, var(--aur-2), transparent 65%);
    animation: drift2 26s var(--ease) infinite alternate; }
.blob-3 { width: 38vw; height: 38vw; bottom: -14vw; left: 30vw;
    background: radial-gradient(circle at 50% 50%, var(--aur-3), transparent 65%);
    animation: drift3 30s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(10vw, 8vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-8vw, 10vw) scale(1.1); } }
@keyframes drift3 { to { transform: translate(6vw, -10vw) scale(1.2); } }

/* Glass surface */
.glass {
    background: var(--glass);
    backdrop-filter: blur(var(--blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    border: 1px solid var(--glass-brd);
    box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
}

/* Buttons */
.btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: .92rem; line-height: 1;
    padding: 12px 20px; border-radius: 12px;
    border: 1px solid var(--glass-brd); background: var(--glass);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: var(--ink); cursor: pointer;
    transition: transform var(--speed) var(--ease), border-color var(--speed), box-shadow var(--speed), color var(--speed);
    font-family: inherit;
}
.btn::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%);
    transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--muted); box-shadow: var(--shadow-sm); color: var(--ink); }
.btn:hover::after { transform: translateX(120%); }
[data-theme="dark"] .btn::after { background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.16) 50%, transparent 80%); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 22px var(--accent-soft); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; box-shadow: 0 12px 30px var(--accent-soft); }
[data-theme="dark"] .btn-primary { color: #052012; }
[data-theme="dark"] .btn-primary:hover { color: #052012; }

/* Inputs */
.field {
    width: 100%; font-family: inherit; font-size: 1rem;
    color: var(--ink); background: var(--glass-2);
    border: 1px solid var(--line-2); border-radius: 12px;
    padding: 12px 14px;
    transition: border-color var(--speed), box-shadow var(--speed);
}
.field::placeholder { color: var(--muted); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* Theme toggle */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--glass-brd); background: var(--glass);
    backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
    color: var(--ink-2); cursor: pointer;
    transition: color var(--speed), border-color var(--speed), transform var(--speed);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); transform: translateY(-1px) rotate(-8deg); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

/* Mobile drawer controls (hidden on desktop) */
.nav-burger {
    display: none; position: fixed; top: 14px; left: 14px; z-index: 120;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    border-radius: 12px; border: 1px solid var(--glass-brd);
    background: var(--glass); color: var(--ink); cursor: pointer;
    backdrop-filter: blur(var(--blur)) saturate(160%); -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    box-shadow: var(--shadow-sm);
}
.nav-scrim { display: none; }

/* Sidebar layout */
.layout { display: flex; min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; align-self: flex-start;
    width: 264px; height: 100vh; flex-shrink: 0;
    display: flex; flex-direction: column; gap: 6px;
    padding: 22px 16px;
    background: var(--glass);
    backdrop-filter: blur(var(--blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    border-right: 1px solid var(--glass-brd);
    overflow-y: auto;
}
.side-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; letter-spacing: -.01em; color: var(--ink);
    font-size: 1.1rem; padding: 6px 10px 14px;
}
.side-brand img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); }
.side-label {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted);
    padding: 14px 12px 6px;
}
.side-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 12px;
    color: var(--ink-2); font-weight: 500; font-size: .95rem;
    border: 1px solid transparent;
    transition: background var(--speed), color var(--speed), border-color var(--speed);
}
.side-link:hover { background: var(--glass-2); color: var(--ink); }
.side-link.active {
    background: var(--accent-soft); color: var(--accent-ink);
    border-color: var(--accent-soft); font-weight: 600;
}
.side-link .ico { width: 20px; text-align: center; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; }
.side-foot .side-donate { flex: 1; }
.side-foot .theme-toggle { flex-shrink: 0; }

.content { flex: 1; min-width: 0; padding: 40px 44px; display: flex; flex-direction: column; }
.content-inner { max-width: 860px; margin: auto; width: 100%; }

/* Cards */
.panel {
    background: var(--glass);
    backdrop-filter: blur(var(--blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm), inset 0 1px 0 var(--glass-hi);
    padding: 30px;
}

/* Page entrance */
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
.rise { animation: rise .6s var(--ease) both; }

/* Mobile sidebar -> topbar */
@media (max-width: 780px) {
    .nav-burger { display: inline-flex; }
    .nav-scrim {
        display: block; position: fixed; inset: 0; z-index: 105;
        background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden;
        transition: opacity .3s ease, visibility .3s ease;
    }
    .nav-scrim.open { opacity: 1; visibility: visible; }
    .sidebar {
        position: fixed; top: 0; left: 0; height: 100vh; width: 276px;
        padding-top: 70px;
        transform: translateX(-100%); transition: transform .32s var(--ease);
        z-index: 110; border-right: 1px solid var(--glass-brd);
    }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow); }
    .content { padding: 74px 18px 28px; }
}

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