/* Common Styles - Navigation & Footer */
/* This file is loaded by all pages for consistent navigation and footer */

/* Header */
header {
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

header h1 {
    font-size: 2rem;
    letter-spacing: 1em;
    color: #d1d5db;
    font-weight: 300;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

nav a {
    position: relative;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    color: #6b7280;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover {
    color: #111827;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}

nav a.active {
    font-weight: 600;
}

/* Color-coded navigation */
nav a[href*="index"] { color: #6b7280; }
nav a[href*="index"]::after { background-color: #6b7280; }

nav a[href*="discography"] { color: #8D1D34; }
nav a[href*="discography"]::after { background-color: #8D1D34; }

nav a[href*="classical"] { color: #1F7B3E; }
nav a[href*="classical"]::after { background-color: #1F7B3E; }

nav a[href*="reviews"] { color: #52348D; }
nav a[href*="reviews"]::after { background-color: #52348D; }

nav a[href*="about"] { color: #B09602; }
nav a[href*="about"]::after { background-color: #B09602; }

nav a[href*="influences"] { color: #4b5563; }
nav a[href*="influences"]::after { background-color: #4b5563; }

/* Footer */
footer {
    border-top: 1px solid #e5e7eb;
    padding: 2rem 1rem;
    margin-top: auto;
    background: #f9fafb;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #111827;
}

/* Responsive */
@media (min-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    nav {
        gap: 2.5rem;
    }
}

@media (max-width: 767px) {
    header {
        padding: 1rem 1rem 0.5rem 1rem;
    }

    header h1 {
        font-size: 1.5rem;
        letter-spacing: 0.4em;
        margin-bottom: 1rem;
    }

    /* Wrap nav links into a centered horizontal row (2-3 lines) instead of a
       tall vertical stack that ate ~2/3 of the mobile viewport. */
    nav {
        gap: 0.5rem 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.875rem;
        padding: 0.35rem 0.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
