/* --- CSS Reset & Variables for a Modern Build --- */
:root {
    --color-primary: #8a0303; 
    --color-secondary: #000;
    --color-text-light: #fff;
    --color-text-dark: #333;
    --color-background-main: #f4f4f4;
    --color-background-dark: #1a1a1a;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    
    /* --- NEW BACKGROUND IMAGE STYLING --- */
    /* Ensure your 'background.jpg' is high-quality but compressed (e.g., < 500kb) */
    background-image: url('background.jpg');
    background-size: cover;          /* Ensures the image always covers the entire viewport */
    background-attachment: fixed;    /* KEY: Fixes image to viewport, improving performance */
    background-position: center center;
    background-repeat: no-repeat;
    background-color: var(--color-background-dark); /* Fallback color */
    /* --- END NEW STYLING --- */
}

/* --- Typography & Headings (The Luxury Look) --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5em;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 { font-size: 2.5em; }
h2 { font-size: 1.8em; }

/* --- Header & Navigation (The Branding Area) --- */
.site-header {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    padding-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 1000;
}

.header-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 10px;
    gap: 20px;
}

.header-image {
    width: 100px; /* Standard size for the DJ image */
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.header-text {
    flex-grow: 1;
    text-align: center;
}

.logo {
    font-size: 3em;
    color: var(--color-primary);
    margin-bottom: 0;
    line-height: 1;
}

.tagline {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 400;
    font-size: 1em;
    color: #ccc;
    margin-top: 5px;
}

/* GIF Container for the "ON AIR" sign */
.gif-container {
    width: 150px;
    height: auto;
    border: none;
    background: none;
    border-radius: 0;
}

/* Main Navigation Bar */
.main-nav {
    background-color: #000; /* Solid black bar */
    border-top: 1px solid var(--color-primary);
    padding: 10px 0;
}

.main-nav ul {
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
}

.main-nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 700;
    padding: 5px 10px;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 4px;
    white-space: nowrap; /* Keep links on one line */
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Main Content Layout --- */
main {
    padding-top: 20px; /* Space below sticky header */
}

/* New: Semi-transparent background for content sections for readability */
main section, main aside {
    background-color: rgba(255, 255, 255, 0.9); /* 90% opaque white */
    border-radius: 8px; /* Softens the corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Lifts the content off the background */
    margin-bottom: 20px;
}

.main-section {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 60px 20px;
}

/* --- Specific Section Styling --- */

/* Listen/Player Section */
#listen {
    text-align: center;
    padding: 40px 20px; /* Reduced top/bottom padding to keep the player prominent */
}

#listen h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.player-container {
    /* Styles for the container holding your audio player */
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border: 3px solid var(--color-primary);
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(138, 3, 3, 0.5);
}

.player-container iframe {
    /* Ensure the player iframe takes full width */
    width: 100%;
    height: 100px;
    border: none;
}

/* Schedule Section */
.schedule-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 20px auto 0;
}

.schedule-list li {
    padding: 15px 0;
    border-bottom: 1px dashed #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-time {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1em;
    min-width: 120px;
    text-align: left;
}

.schedule-show {
    flex-grow: 1;
    font-style: italic;
    text-align: right;
}

/* History Section */
.history-list {
    list-style-type: none;
    columns: 2; /* Display list items in two columns */
    column-gap: 40px;
    max-width: 800px;
    margin: 20px auto 0;
    padding: 0;
}

.history-list li {
    margin-bottom: 10px;
    padding: 5px 0;
    break-inside: avoid; /* Prevents list items from being split across columns */
    border-left: 3px solid var(--color-primary);
    padding-left: 10px;
}

.track-style {
    font-style: italic;
    color: #666;
    font-size: 0.9em;
}

/* Request Section */
.request-section {
    text-align: center;
}

.request-intro {
    max-width: 700px;
    margin: 20px auto 30px;
    font-size: 1.1em;
}

.request-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.request-button:hover {
    background-color: #6a0303;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Call to Action Aside */
.cta-aside {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    margin: 60px auto;
    background-color: rgba(26, 26, 26, 0.95); /* Darker, less transparent background for contrast */
    color: var(--color-text-light);
}

/* Specific styling for the follow button in the CTA block */
.cta-aside .follow-btn {
    background-color: #4a4a4a; 
    color: var(--color-text-light);
    border: 1px solid var(--color-text-light);
    padding: 10px 25px;
    margin-top: 20px;
    font-size: 1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    border-radius: 4px;
}

.cta-aside .follow-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    color: #eee; /* Light text for the dark footer */
    background-color: #111; /* Solid dark background for the footer */
    border-top: 1px solid var(--color-primary);
}

.site-footer a {
    color: var(--color-primary);
    text-decoration: none;
}

/* --- Responsive Navigation Improvements --- */

/* On smaller screens (like phones), force the navigation links to wrap */
@media (max-width: 768px) {
    .header-image {
        display: none; 
    }
    .header-content-wrapper {
        gap: 0; 
        flex-direction: column; 
    }
    .header-text {
        text-align: center;
        width: 100%; 
    }
    .logo {
        font-size: 2em;
    }

    .main-nav ul {
        flex-wrap: wrap; /* Allows links to flow to the next line */
        justify-content: center;
        gap: 10px;      /* Reduces spacing between links when wrapped */
    }

    .main-nav li {
        flex-basis: 40%; /* Each link takes up slightly less than half the width */
        text-align: center;
    }
    
    .main-nav a {
        padding: 5px;
        font-size: 0.9em;
    }

    .history-list {
        columns: 1; /* Collapse to a single column on small screens */
    }
}