/* Minimal base styles for shared nav and footer */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    transition: padding 0.2s ease;
    z-index: 100;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(128, 128, 128, 0.25);
    backdrop-filter: blur(4px);
}

[data-theme="light"] nav.scrolled {
    background: rgba(255, 255, 255, 0.6);
}

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

.nav-brand {
    font-family: var(--font-heading, system-ui);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-color);
    text-decoration: none;
}

.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-links { display: flex; list-style: none; gap: 1.25rem; margin: 0; padding: 0; }
.nav-links a { color: var(--text-color); text-decoration: none; opacity: 0.85; font-weight: 500; }
.nav-links a:hover { opacity: 1; }

.hamburger { display: none; cursor: pointer; padding: 0.25rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-color); margin: 5px 0; }

.theme-toggle { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(128,128,128,0.25); background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle svg { width: 18px; height: 18px; fill: var(--text-color); }
/* Show only the correct theme icon */
.theme-toggle .sun, .theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: inline-block; }
[data-theme="light"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: inline-block; }

@media (max-width: 768px) {
    .nav-links { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; }
    [data-theme="light"] .nav-links { background: rgba(255,255,255,0.7); }
    .nav-links.show { display: flex; }
    .hamburger { display: block; }
}

footer { text-align: center; padding: 2rem 0; color: var(--text-secondary, #9ca3af); }
.footer-content { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.footer-links { margin-top: 0.75rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary, #9ca3af); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--text-color); }


