/* Custom Top Navigation for The Crip Chronicle */
/* Accessible horizontal navigation bar - newspaper style */

/* Hide the original sidebar completely */
#sidebar {
    display: none !important;
}

/* Make main content full width */
#main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

#main > .inner {
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* Top navigation bar styling */
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #000000;
    z-index: 10000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.top-nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-nav-links li {
    margin: 0;
    border-right: 2px solid white;
}

.top-nav-links li:last-child {
    border-right: none;
}

.top-nav-links a {
    font-family: 'Georgia', serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9em;
    color: white;
    background: #000000;
    text-decoration: none;
    padding: 14px 30px;
    display: block;
    transition: all 0.3s ease;
}

.top-nav-links a:hover,
.top-nav-links a:focus {
    background: #c41e3a;
    color: white;
    outline: 3px solid #c41e3a;
    outline-offset: -3px;
}

/* Enhanced keyboard accessibility */
.top-nav-links a:focus-visible {
    outline: 3px solid #FFD700;
    outline-offset: -3px;
}

/* Active page indicator */
.top-nav-links li.active a {
    background: #c41e3a;
}

/* Add padding to body so content doesn't hide under fixed nav */
body {
    padding-top: 50px;
}

#wrapper {
    margin-top: 0;
    padding-top: 0;
}

/* Footer styling at bottom of main content */
#footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 4px double #000000;
    text-align: center;
}

/* Mobile responsive - stack vertically */
@media (max-width: 980px) {
    .top-nav-links {
        flex-direction: column;
        width: 100%;
    }

    .top-nav-links li {
        border-right: none;
        border-bottom: 2px solid white;
        width: 100%;
    }

    .top-nav-links li:last-child {
        border-bottom: none;
    }

    .top-nav-links a {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
    }

    body {
        padding-top: 60px;
    }
}

/* Tablet responsive */
@media (max-width: 1280px) and (min-width: 981px) {
    .top-nav-links a {
        padding: 12px 20px;
        font-size: 0.85em;
    }
}
