/* ==========================================================================
   Base Styles - WuwaAPI
   Shared variables, reset, and common components
   ========================================================================== */

:root {
    /* Theme - Crimson Palette (STYLE_GUIDE.md) + Wuthering Waves */
    --bg-deep: #0e0c0d;        /* Obsidian */
    --bg-surface: #16131a;     /* Midnight */
    --bg-highlight: #1e1a1c;   /* Dark Mauve */
    --border-color: #2a2426;   /* Warm Graphite */

    --text-primary: #e8e8e8;   /* White */
    --text-secondary: #a0a0a0; /* Silver */
    --text-tertiary: #6a6a6a;  /* Gray */

    --accent: #dc143c;         /* Crimson */
    --accent-dim: rgba(220, 20, 60, 0.15);
    --accent-glow: rgba(220, 20, 60, 0.14);
    --accent-gold: #ffd700;

    --font-sans: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;

    --radius: 12px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(14, 12, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a {
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

/* Footer */
footer {
    margin-top: auto;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    background: var(--bg-deep);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
}
