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

/* ===== DARK THEME (default) ===== */
:root, [data-theme="dark"] {
    --bg: #0a0a0f;
    --surface: #12121a;
    --surface-2: #1a1a26;
    --surface-3: #222233;
    --border: #2a2a3a;
    --border-hover: #3a3a4f;
    --primary: #e3350d;
    --primary-glow: rgba(227, 53, 13, 0.3);
    --accent: #e3350d;
    --accent-2: #ff5733;
    --text: #f0f0f5;
    --text-muted: #8888a0;
    --text-dim: #55556a;
    --sol-green: #14f195;
    --warning: #ffd93d;
    --red: #ff6b6b;
    --nav-bg: rgba(10, 10, 15, 0.8);
    --shadow: rgba(0, 0, 0, 0.5);
    --logo-filter: grayscale(100%) brightness(2);
    --logo-filter-hover: grayscale(0%) brightness(1);
    --card-hover-shadow: rgba(227, 53, 13, 0.1);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg: #f5f5f8;
    --surface: #ffffff;
    --surface-2: #f0f0f4;
    --surface-3: #e8e8ee;
    --border: #dddde5;
    --border-hover: #c8c8d4;
    --primary: #cc2200;
    --primary-glow: rgba(204, 34, 0, 0.2);
    --accent: #cc2200;
    --accent-2: #e3350d;
    --text: #1a1a2e;
    --text-muted: #6b6b80;
    --text-dim: #9999aa;
    --sol-green: #0dba7a;
    --warning: #e6a800;
    --red: #e05555;
    --nav-bg: rgba(245, 245, 248, 0.85);
    --shadow: rgba(0, 0, 0, 0.08);
    --logo-filter: grayscale(100%) brightness(0.4);
    --logo-filter-hover: grayscale(0%) brightness(1);
    --card-hover-shadow: rgba(204, 34, 0, 0.06);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', sans-serif; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-2); }

/* SHARED NAV */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, border-color 0.3s;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    -webkit-text-fill-color: white;
    font-weight: 700;
}

.logo-icon-img {
    height: 30px;
    width: 30px;
    border-radius: 6px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
    letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* THEME TOGGLE */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--text);
    background: var(--surface-2);
}

.theme-toggle svg { transition: transform 0.3s; }
.theme-toggle:hover svg { transform: rotate(30deg); }

.theme-icon-dark,
.theme-icon-light { display: none; }

[data-theme="dark"] .theme-icon-dark { display: block; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: block; }

/* BUTTONS */
.btn {
    padding: 0.65rem 1.6rem;
    border-radius: 10px;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-2));
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

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

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(227, 53, 13, 0.08);
    color: var(--text);
}

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.82rem; border-radius: 8px; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; border-radius: 12px; }

/* FOOTER */
.site-footer {
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--border);
    max-width: 1100px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 0.8rem;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p { color: var(--text-dim); font-size: 0.78rem; }

.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--text-dim); font-size: 0.78rem; }

/* GDPR BANNER */
.gdpr-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 999;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    max-width: 380px;
    box-shadow: 0 8px 40px var(--shadow);
    animation: slideUp 0.4s ease-out;
}

.gdpr-banner.hidden { display: none; }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.gdpr-banner p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.gdpr-banner a { color: var(--accent); text-decoration: underline; }

.gdpr-actions { display: flex; gap: 0.6rem; }

.gdpr-actions button {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.gdpr-accept { background: var(--primary); color: white; }
.gdpr-accept:hover { background: var(--accent-2); }

.gdpr-decline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.gdpr-decline:hover { border-color: var(--text-muted); color: var(--text); }

/* TRANSITION HELPERS */
.surface-transition {
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

/* MOBILE */
@media (max-width: 768px) {
    nav { padding: 0.8rem 1rem; }
    .nav-links { gap: 1rem; }
    .nav-links .hide-mobile { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .gdpr-banner { left: 1rem; right: 1rem; max-width: none; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
