/* Mood Red - Navigation Menu */

/* Hamburger Button */
.nav-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(33, 33, 33, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: background 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(50, 50, 50, 0.95);
}

.nav-toggle:focus {
    outline: 2px solid #E4F23D;
    outline-offset: 2px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation when open */
.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: #1a1a1a;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.nav-menu.open {
    transform: translateX(0);
}

/* Nav Header */
.nav-header {
    padding: 1.5rem;
    padding-top: 4.5rem; /* Account for hamburger button */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    font-family: 'Urbanist', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #961515;
    text-decoration: none;
    display: block;
}

.nav-logo:hover {
    color: #b01a1a;
}

.nav-tagline {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-top: 0.25rem;
}

/* Nav Links */
.nav-links {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    flex: 1;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

.nav-links a.active {
    background: rgba(150, 21, 21, 0.3);
    color: #FFFFFF;
    border-left: 3px solid #961515;
    padding-left: calc(1.5rem - 3px);
}

.nav-links a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-links a:hover svg {
    opacity: 1;
}

/* Nav Divider */
.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 1.5rem;
}

/* External Link Indicator */
.nav-links a[target="_blank"]::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Nav Footer */
.nav-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Body padding when menu could overlap content */
body.has-nav {
    /* Add left padding on larger screens if needed */
}

/* Ensure content doesn't go under the hamburger */
.nav-spacer {
    height: 60px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Site Footer */
.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}
