/* ============================================
   ZYNCRA.SHOP — Premium Metin2 Marketplace
   Design System & Styles — Part 1: Base & Nav
   ============================================ */
:root {
    --primary-hue: 270;
    --primary: hsl(270, 85%, 55%);
    --primary-light: hsl(270, 85%, 65%);
    --primary-dark: hsl(270, 85%, 40%);
    --primary-glow: hsla(270, 85%, 55%, 0.4);
    --accent: hsl(45, 95%, 55%);
    --accent-light: hsl(45, 95%, 70%);
    --accent-glow: hsla(45, 95%, 55%, 0.3);
    --cyber: hsl(180, 95%, 50%);
    --cyber-glow: hsla(180, 95%, 50%, 0.3);
    --bg-primary: hsl(240, 20%, 6%);
    --bg-secondary: hsl(240, 18%, 9%);
    --bg-tertiary: hsl(240, 16%, 12%);
    --bg-card: hsla(240, 18%, 12%, 0.6);
    --bg-card-hover: hsla(240, 18%, 15%, 0.8);
    --bg-glass: hsla(240, 18%, 12%, 0.4);
    --text-primary: hsl(0, 0%, 95%);
    --text-secondary: hsl(240, 10%, 65%);
    --text-muted: hsl(240, 10%, 45%);
    --border: hsla(240, 15%, 25%, 0.5);
    --border-hover: hsla(270, 85%, 55%, 0.4);
    --section-padding: 120px;
    --container-width: 1200px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-glow: 0 0 30px var(--primary-glow);
    --surface: hsla(240, 18%, 12%, 0.4);
}

/* ── Light Theme ─────────────────────── */
[data-theme="light"] {
    --bg-primary: hsl(240, 20%, 97%);
    --bg-secondary: hsl(240, 18%, 94%);
    --bg-tertiary: hsl(240, 16%, 91%);
    --bg-card: hsla(240, 18%, 100%, 0.8);
    --bg-card-hover: hsla(240, 18%, 98%, 0.9);
    --bg-glass: hsla(240, 18%, 100%, 0.6);
    --text-primary: hsl(240, 20%, 10%);
    --text-secondary: hsl(240, 10%, 40%);
    --text-muted: hsl(240, 10%, 55%);
    --border: hsla(240, 15%, 80%, 0.5);
    --border-hover: hsla(270, 85%, 55%, 0.4);
    --surface: hsla(240, 18%, 100%, 0.6);
}

[data-theme="light"] .navbar.scrolled {
    background: hsla(240, 20%, 99%, 0.92);
    border-bottom-color: hsla(270, 60%, 70%, 0.15);
    box-shadow: 0 4px 20px hsla(270, 40%, 50%, 0.06);
}
[data-theme="light"] .nav-discord {
    border-color: hsla(240, 15%, 80%, 0.3);
    background: hsla(240, 15%, 95%, 0.5);
}
[data-theme="light"] .nav-discord:hover {
    background: hsla(270, 80%, 60%, 0.08);
    border-color: hsla(270, 80%, 60%, 0.25);
}

[data-theme="light"] #preloader {
    background: hsl(240, 20%, 97%);
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: hsl(240, 20%, 94%);
}

[data-theme="light"] .hero-section {
    background: linear-gradient(180deg, hsl(240, 20%, 95%), hsl(240, 20%, 97%));
}

[data-theme="light"] .footer {
    background: hsl(240, 20%, 8%);
    color: hsl(0, 0%, 90%);
}
[data-theme="light"] .footer .footer-desc,
[data-theme="light"] .footer .footer-links a,
[data-theme="light"] .footer .footer-copyright {
    color: hsl(0, 0%, 70%);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: color 0.3s var(--ease-out); }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
::selection { background: var(--primary); color: white; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

#particles-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* Preloader */
#preloader { position: fixed; inset: 0; z-index: 10000; background: var(--bg-primary); display: flex; align-items: center; justify-content: center; transition: opacity 0.6s ease, visibility 0.6s ease; }
#preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-logo { font-family: 'Orbitron', monospace; font-size: 3rem; font-weight: 900; background: linear-gradient(135deg, var(--primary-light), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: 8px; animation: preloaderPulse 1.5s ease-in-out infinite; }
.preloader-bar { width: 200px; height: 3px; background: var(--bg-tertiary); border-radius: 3px; margin: 24px auto 0; overflow: hidden; }
.preloader-bar-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; animation: preloaderFill 1.8s var(--ease-out) forwards; }
@keyframes preloaderPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes preloaderFill { 0% { width: 0%; } 100% { width: 100%; } }

.gradient-text { background: linear-gradient(135deg, var(--primary-light), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; border-radius: var(--radius-md); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.3px; transition: all 0.4s var(--ease-out); position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; box-shadow: 0 4px 20px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--primary-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { border: 1.5px solid var(--border); color: var(--text-primary); backdrop-filter: blur(10px); background: var(--bg-glass); }
.btn-outline:hover { border-color: var(--primary); background: hsla(270, 85%, 55%, 0.1); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; padding: 16px 32px; font-size: 1rem; }

/* Navigation */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 18px 0; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.navbar.scrolled { padding: 8px 0; background: hsla(240, 20%, 6%, 0.92); backdrop-filter: blur(24px) saturate(1.4); border-bottom: 1px solid hsla(270, 80%, 60%, 0.12); box-shadow: 0 4px 30px hsla(270, 80%, 40%, 0.08); }
.nav-container { width: 100%; max-width: none; padding: 0 24px; display: flex; align-items: center; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: 'Orbitron', monospace; font-weight: 800; font-size: 1.3rem; z-index: 1001; transition: all 0.3s ease; flex-shrink: 0; }
.nav-logo:hover { filter: drop-shadow(0 0 12px var(--primary-glow)); transform: scale(1.03); }
.logo-icon { font-size: 1.5rem; filter: drop-shadow(0 0 8px var(--primary-glow)); animation: logoPulse 3s ease-in-out infinite; }
@keyframes logoPulse { 0%, 100% { filter: drop-shadow(0 0 6px var(--primary-glow)); } 50% { filter: drop-shadow(0 0 14px var(--primary-glow)); } }
.logo-text { letter-spacing: 2px; }
.logo-dot { color: var(--primary-light); }
.nav-links { display: flex; list-style: none; gap: 4px; flex: 1; justify-content: center; }
.nav-link { padding: 8px 16px; font-size: 0.88rem; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius-sm); transition: all 0.3s var(--ease-out); position: relative; }
.nav-link:hover { color: var(--text-primary); background: hsla(270, 80%, 60%, 0.06); }
.nav-link.active { color: var(--primary-light); font-weight: 600; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) scaleX(0); width: 60%; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); border-radius: 2px; transition: transform 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.nav-link.active::after { background: linear-gradient(90deg, transparent, var(--primary-light), var(--primary), var(--primary-light), transparent); box-shadow: 0 0 8px var(--primary-glow); }
.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-discord { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid hsla(0, 0%, 100%, 0.08); color: var(--text-secondary); font-size: 1rem; transition: all 0.3s var(--ease-out); background: hsla(0, 0%, 100%, 0.02); }
.nav-discord:hover { color: var(--primary-light); border-color: hsla(270, 80%, 60%, 0.3); background: hsla(270, 80%, 60%, 0.08); box-shadow: 0 0 15px hsla(270, 80%, 60%, 0.15); transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; z-index: 1001; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s var(--ease-out); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
