/* SnapUtils — shared base styles, cached across all pages */

/* Box model reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Dark mode CSS custom properties */
:root {
    --bg: #0a0a0b;
    --surface: #131315;
    --surface-2: #1a1a1e;
    --surface-3: #222228;
    --border: #2a2a30;
    --border-hover: #3a3a42;
    --text: #e8e8ec;
    --text-muted: #8b8b96;
    --accent: #00e599;
    --accent-dim: #00e59920;
    --accent-hover: #00cc88;
    --orange: #ff6b35;
    --blue: #4d8dff;
    --purple: #c792ea;
    --red: #ff5555;
    --red-dim: #ff555520;
    --green: #50fa7b;
    --radius: 12px;
    --radius-sm: 8px;
}

/* Base styles */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }
code, pre, .mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

@media (min-width: 769px) {
    footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover { text-decoration: underline; }

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* Skip to content link (accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--accent);
    color: #0a0a0b;
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.1s;
}
.skip-link:focus { top: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* Ad unit containers — ready for AdSense placement after approval */
.ad-unit {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-unit-top {
    margin-top: 0.5rem;
}

.ad-unit-bottom {
    margin-bottom: 1rem;
}
