/*
 * shared.css
 * Common layout styles for the "Dirty After Work" website.
 */

/* 1. Base & Resets */
html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Heebo', sans-serif;
    background-color: #222;
    background-image: url('background-texture.png');
    background-repeat: repeat;
    background-attachment: fixed;
}

.main-container {
    flex-grow: 1;
    padding-top: 120px; /* Pushes content below the fixed header */
}


/* 2. Page Header */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.page-header h1 {
    font-family: 'Rock Salt', cursive;
    margin: 0 0 0 20px;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: normal;
    color: #222; /* Dark text for the light header background */
}


/* 3. Off-Canvas Navigation */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above the fixed header */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333; /* Dark bars for the light header background */
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Hamburger-to-X animation */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Slide-in menu panel */
.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 1000;
    width: 300px;
    max-width: 80vw;
    background-color: #f8f9fa;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.main-nav.open {
    transform: translateX(0);
}

.main-nav a {
    font-size: 1.8rem;
    margin: 1.2rem 0;
    font-family: 'Heebo', sans-serif;
    color: #444;
    text-decoration: none;
    text-align: left;
}

/* Dark page overlay when nav is open */
body.nav-open {
    overflow: hidden;
}

body.nav-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}


/* 4. Content Sections */
.content-section {
    font-family: 'Heebo', sans-serif;
    padding: 0 15px 30px 15px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.song-card,
.image-card {
    background-color: rgba(255, 255, 255, 0.97);
    border: 1px solid #ddd;
}


/* 5. Footer */
.site-footer {
    padding: 2rem 1rem;
    background-color: #f8f9fa;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    border-top: 1px solid #e9ecef;
}

.site-footer .social-links a {
    color: #333;
    text-decoration: none;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.2s ease-in-out;
}

.site-footer .social-links a:hover {
    color: #000;
}

.site-footer p {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #888;
}
