/* ==========================================================================
   STYLE.CSS - Base Styles & UI Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');
@import url('all.min.css');

/* --- Theme Variables (Stripe/Linear Minimal SaaS Default) --- */
:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Primary Accent (Executive Indigo) */
    --primary-hue: 238;
    --primary: hsl(var(--primary-hue), 85%, 65%);
    --primary-glow: hsla(var(--primary-hue), 85%, 65%, 0.15);

    /* Secondary Accent (Slate Blue) */
    --secondary-hue: 217;
    --secondary: hsl(var(--secondary-hue), 90%, 60%);
    --secondary-glow: hsla(var(--secondary-hue), 90%, 60%, 0.15);

    /* Background (Deeper Obsidian) */
    --bg-gradient: radial-gradient(circle at 50% 50%, #07080f 0%, #010204 100%);
    --bg-primary: #010204;

    /* Surface and Borders */
    --surface: rgba(8, 10, 20, 0.75);
    --surface-solid: #080a14;
    --border-color: rgba(255, 255, 255, 0.07);

    /* Typography Hues */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Executive Colors */
    --success: #10b981;
    /* Emerald */
    --warning: #f59e0b;
    /* Amber */
    --danger: #ef4444;
    /* Crimson */
    --info: #06b6d4;
    /* Cyan */

    /* Premium Glassmorphism Configuration */
    --glass-bg: rgba(5, 7, 18, 0.72);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    --aura-gradient: radial-gradient(circle, rgba(127, 90, 240, 0.07) 0%, rgba(6, 182, 212, 0.03) 55%, transparent 75%);

    --transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    --border-radius-sm: 10px;
    --border-radius-md: 18px;
    --border-radius-lg: 28px;
}

/* Light Theme (Clean Minimalist Indigo Slate) */
[data-theme="light"] {
    --bg-gradient: radial-gradient(circle at 50% 50%, #f8fafc 0%, #cbd5e1 100%);
    --bg-primary: #cbd5e1;

    --primary: #4f46e5;
    /* Royal Indigo */
    --primary-glow: rgba(79, 70, 229, 0.12);

    --secondary: #0f172a;
    /* Deep Slate */
    --secondary-glow: rgba(15, 23, 42, 0.1);

    --surface: rgba(255, 255, 255, 0.78);
    --surface-solid: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;

    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
    --aura-gradient: radial-gradient(circle, rgba(79, 70, 229, 0.03) 0%, rgba(37, 99, 235, 0.01) 55%, transparent 75%);
}



/* --- Base Resets & Layout --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: var(--aura-gradient);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -2;
    animation: breathingAura 12s ease-in-out infinite alternate;
}

@keyframes breathingAura {
    0% {
        width: 400px;
        height: 400px;
        opacity: 0.6;
    }

    100% {
        width: 800px;
        height: 800px;
        opacity: 1.2;
    }
}



h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Glassmorphism Utilities --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow:
        3px 3px 0px var(--primary-glow),
        6px 6px 12px rgba(0, 0, 0, 0.25);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;

    /* 3D Isometric Extrusion Shadow */
    box-shadow:
        4px 4px 0px var(--primary),
        8px 8px 0px var(--primary-glow),
        12px 12px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.glass-card:hover {
    transform: translate(-6px, -6px);
    border-color: var(--secondary);
    box-shadow:
        10px 10px 0px var(--secondary),
        20px 20px 0px var(--secondary-glow),
        30px 30px 40px rgba(0, 0, 0, 0.6);
}



/* --- Navigation Header --- */
.header-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Logo pill styles removed — logo blends directly via mix-blend-mode */
.nav-logo-pill {
    display: none;
}

.nav-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    mix-blend-mode: screen;
    display: block;
    margin-right: 8px;
    flex-shrink: 0;
}

.nav-brand i {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.6rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.2rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: var(--primary-glow);
    color: var(--primary);
    transform: rotate(15deg);
}

.nav-streak-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: hsla(38, 95%, 50%, 0.1);
    color: var(--warning);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid hsla(38, 95%, 50%, 0.2);
}

.nav-xp-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: hsla(280, 80%, 55%, 0.1);
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid hsla(280, 80%, 55%, 0.2);
}

.menu-toggle-btn {
    display: none;
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    color: var(--text-secondary);
}

/* --- Mobile Drawer Navigation --- */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--surface-solid);
    border-left: 1px solid var(--border-color);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: var(--transition);
}

.mobile-nav-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-close-btn {
    font-size: 1.4rem;
    color: var(--text-secondary);
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.drawer-link.active,
.drawer-link:hover {
    color: var(--primary);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Standard Elements & UI Components --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(110, 84, 243, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 84, 243, 0.45);
}

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Unique Web 2.0 Glossy Green Download Button --- */
.btn-download-glossy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 2.2rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.05rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff !important;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #2ecc71 0%, #27ae60 50%, #1e8449 51%, #196f3d 100%);
    border: 1.5px solid #145a32;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 4px 15px rgba(46, 204, 113, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.btn-download-glossy::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 45%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 30px 30px 10px 10px;
    pointer-events: none;
}

.btn-download-glossy:hover {
    transform: translateY(-2px);
    background: linear-gradient(to bottom, #2ecc71 0%, #34e77f 50%, #229954 51%, #1e8449 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 6px 22px rgba(46, 204, 113, 0.6);
}

.btn-download-glossy:active {
    transform: translateY(1px);
    background: linear-gradient(to bottom, #1e8449 0%, #196f3d 100%);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.4),
        0 2px 5px rgba(46, 204, 113, 0.3);
}

/* Glossy Circle Button for Header Nav */
.btn-download-glossy-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #2ecc71 0%, #27ae60 50%, #1e8449 51%, #196f3d 100%);
    border: 1px solid #145a32;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 4px 10px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

.btn-download-glossy-circle::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 45%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50% 50% 10px 10px;
    pointer-events: none;
}

.btn-download-glossy-circle:hover {
    transform: translateY(-2px);
    background: linear-gradient(to bottom, #2ecc71 0%, #34e77f 50%, #229954 51%, #1e8449 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 6px 15px rgba(46, 204, 113, 0.5);
}

.btn-download-glossy-circle:active {
    transform: translateY(1px);
    background: linear-gradient(to bottom, #1e8449 0%, #196f3d 100%);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.4),
        0 2px 5px rgba(46, 204, 113, 0.3);
}

/* Unique Web 2.0 Glossy Red Circle Button for Header Nav */
.btn-download-glossy-circle-red {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #ff3b30 0%, #e60000 50%, #b30000 51%, #800000 100%);
    border: 1.5px solid #660000;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 4px 12px rgba(255, 59, 48, 0.45);
    transition: all 0.3s ease;
}

.btn-download-glossy-circle-red::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 45%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-radius: 50% 50% 10px 10px;
    pointer-events: none;
}

.btn-download-glossy-circle-red:hover {
    transform: translateY(-2px);
    background: linear-gradient(to bottom, #ff4f44 0%, #f01a1a 50%, #cc0000 51%, #990000 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 6px 16px rgba(255, 59, 48, 0.65);
}

.btn-download-glossy-circle-red:active {
    transform: translateY(1px);
    background: linear-gradient(to bottom, #990000 0%, #800000 100%);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.5),
        0 2px 6px rgba(255, 59, 48, 0.3);
}

/* --- Form Fields & Inputs --- */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius-sm);
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* --- Badge & Tag Indicators --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-beginner {
    background: hsla(195, 85%, 50%, 0.1);
    color: var(--info);
    border: 1px solid hsla(195, 85%, 50%, 0.2);
}

.badge-easy {
    background: hsla(145, 80%, 42%, 0.1);
    color: var(--success);
    border: 1px solid hsla(145, 80%, 42%, 0.2);
}

.badge-medium {
    background: hsla(38, 95%, 50%, 0.1);
    color: var(--warning);
    border: 1px solid hsla(38, 95%, 50%, 0.2);
}

.badge-hard {
    background: hsla(355, 85%, 55%, 0.1);
    color: var(--danger);
    border: 1px solid hsla(355, 85%, 55%, 0.2);
}

.badge-expert {
    background: hsla(280, 80%, 55%, 0.1);
    color: var(--secondary);
    border: 1px solid hsla(280, 80%, 55%, 0.2);
}

/* --- Footer --- */
.main-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: var(--surface);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about .brand {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.footer-about p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Toast Notification System --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 1000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-sm);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition);
}

.toast.toast-success {
    background: var(--success);
}

.toast.toast-warning {
    background: var(--warning);
}

.toast.toast-danger {
    background: var(--danger);
}

.toast.toast-info {
    background: var(--info);
}

.toast-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.8;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    background-image: url('../images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    opacity: 0.025;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: screen;
}

[data-theme="light"] body::after {
    opacity: 0.045;
    mix-blend-mode: multiply;
}