/* Global Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    overflow: hidden; /* Clear floats */
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #1a2a6c; /* Deep blue */
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    padding-top: 2rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: #b21f1f; /* Red accent */
}

a:hover {
    color: #fdbb2d; /* Gold accent on hover */
}

/* Navbar */
.navbar {
    background: linear-gradient(to right, #1a2a6c, #b21f1f, #fdbb2d); /* Blue, Red, Gold gradient */
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-item {
    margin-left: 20px;
}

.nav-link {
    color: #fff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fdbb2d; /* Gold accent */
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

/* Hero Section */
.hero-section {
    /* Updated background with a stronger dark overlay for better text contrast */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-banner-karaoke-by-walter.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 60px; /* Account for fixed navbar */
    position: relative; /* For positioning the content wrapper */
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.3); /* Subtle background for text */
    padding: 30px 50px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px); /* Slight blur for modern browsers */
    max-width: 800px; /* Control the width of the text container */
}

.hero-section h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.4);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.5);
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    background: #b21f1f; /* Red accent */
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.cta-button:hover {
    background: #fdbb2d; /* Gold accent */
    color: #1a2a6c;
    transform: translateY(-3px);
}

/* General Section Styling */
section {
    padding: 60px 0;
}

section:nth-child(even) {
    background-color: #fff;
}

/* Welcome Section */
.welcome-section p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Song List Section */
.song-list-section {
    background-color: #e9ecef;
}

.song-list-controls {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    position: relative; /* To position suggestions container relative to this */
    max-width: 500px; /* Match searchInput max-width */
    margin-left: auto;
    margin-right: auto;
}

#searchInput {
    width: 100%;
    max-width: 500px;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    position: relative; /* For positioning suggestions */
}

/* Autocomplete Suggestions */
.autocomplete-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%; /* Position below the search input */
    border: 1px solid #ddd;
    border-top: none;
    background-color: #fff;
    z-index: 999;
    max-height: 200px;
    overflow-y: auto;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.autocomplete-suggestions div {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.autocomplete-suggestions div:last-child {
    border-bottom: none;
}

.autocomplete-suggestions div:hover {
    background-color: #f0f0f0;
}

.autocomplete-suggestions div.active-suggestion {
    background-color: #e0e0e0;
}

#songListContainer {
    min-height: 200px; /* Placeholder height */
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 1rem; /* Add some space above the list */
}

/* Styling the song list as a table-like structure */
.song-list-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 2px solid #1a2a6c; /* Deep blue */
    margin-bottom: 10px;
    color: #1a2a6c;
}

.song-list-header .song-title-header,
.song-list-header .song-artist-header,
.song-list-header .song-remix-header {
    padding: 0 10px;
    text-align: left;
}

.song-list-header .song-artist-header { flex-basis: 25%; }
.song-list-header .song-title-header { flex-basis: 50%; }
.song-list-header .song-remix-header { flex-basis: 25%; text-align: right; }

.song-list {
    list-style: none;
    padding: 0;
}

.song-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.song-item:hover {
    background-color: #f9f9f9;
}

.song-item:last-child {
    border-bottom: none;
}

.song-item .song-title,
.song-item .song-artist,
.song-item .song-remix {
    padding: 0 10px;
    text-align: left;
    display: flex; /* For vertical centering if needed */
    align-items: center;
}

.song-item .song-artist { flex-basis: 25%; color: #555; }
.song-item .song-title { flex-basis: 50%; font-weight: 600; color: #333; }
.song-item .song-remix { flex-basis: 25%; color: #777; font-style: italic; text-align: right; justify-content: flex-end; }

/* Services Section */
.services-section .service-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

.services-section .service-item h3 {
    color: #b21f1f; /* Red accent */
    margin-bottom: 0.5rem;
}

/* About Section */
.about-section p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact-section {
    background-color: #333;
    color: #fff;
}

.contact-section h2 {
    color: #fff;
}

.contact-section a {
    color: #fdbb2d; /* Gold accent */
}
.contact-section a:hover {
    color: #fff;
}

#songRequestForm {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#songRequestForm input,
#songRequestForm textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #555;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: #444;
    color: #fff;
}

#songRequestForm textarea {
    resize: vertical;
}

#songRequestForm button {
    align-self: center;
}


/* Footer */
footer {
    background: #1a2a6c; /* Deep blue */
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media(max-width: 768px) {
    /* General section padding adjustment for mobile */
    section {
        padding: 40px 0;
    }

    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        display: none; /* Hidden by default */
        text-align: center;
    }

    .nav-menu.active {
        display: flex; /* Show when active */
    }

    .nav-item {
        margin: 10px 0;
    }

    .nav-link {
        padding: 10px;
        display: block;
        width: 100%;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        height: auto;
        padding: 120px 20px 60px; /* Adjust padding for smaller screens */
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
        padding-top: 1rem; /* Reduced top padding for h2 on mobile */
    }

    .services-section .container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /* Adjust song list for smaller screens */
    .song-list-header {
        display: none; /* Hide headers on small screens, display info in blocks */
    }

    .song-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 10px;
        border-bottom: 1px solid #ddd;
    }

    .song-item .song-title,
    .song-item .song-artist,
    .song-item .song-remix {
        flex-basis: auto; /* Reset flex-basis */
        width: 100%;
        padding: 2px 0;
        text-align: left; /* Ensure text is left-aligned */
        justify-content: flex-start; /* Align remix text to start */
    }

    .song-item .song-title {
        font-size: 1.1em;
        margin-bottom: 3px;
    }
    .song-item .song-artist::before {
        content: "Artist: ";
        font-weight: bold;
        color: #333;
        margin-right: 5px;
    }
    .song-item .song-remix::before {
        content: "Version: ";
        font-weight: bold;
        color: #333;
        margin-right: 5px;
    }
    .song-item .song-remix {
        font-size: 0.9em;
    }
}

/* Songbook Page Specific Styles */
.songbook-hero-variant {
    height: 50vh; /* Shorter hero for the songbook page */
    min-height: 300px;
    /* Ensure same background image and gradient overlay as main hero */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-banner-karaoke-by-walter.png') no-repeat center center/cover;
}

.songbook-hero-variant .container {
    padding-bottom: 50px; /* Increased bottom padding for songbook hero text */
}

.songbook-controls-section {
    background-color: #fff; /* Light background for filter area */
    padding: 40px 0;
}

.filter-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end; /* Align items to the bottom of their grid cell */
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.filter-group input[type="text"],
.filter-group select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.filter-group .action-buttons {
    display: flex; /* Ensure flex is explicitly set */
    flex-direction: row; /* Align buttons in a row by default */
    gap: 10px;
    margin-top: 20px; /* Add some space if they wrap */
}

.filter-group .action-buttons .cta-button {
    flex-grow: 1; /* Allow buttons to grow and share space */
    width: auto; /* Allow natural width based on content and flex-grow */
}

.cta-button.secondary-button {
    background-color: #6c757d; /* Bootstrap secondary grey */
    color: white;
}
.cta-button.secondary-button:hover {
    background-color: #5a6268;
    color: white;
}


#songListCount {
    margin-bottom: 1rem;
    text-align: left;
}

#paginationControls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#paginationControls button {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#paginationControls button:hover:not(:disabled) {
    background-color: var(--primary-color-dark);
    color: var(--text-color);
}

#paginationControls button:disabled {
    background-color: #ccc;
    color: #757575;
    cursor: not-allowed;
}

#paginationControls span {
    font-size: 0.9rem;
    color: var(--text-color);
}

.results-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-per-page label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.results-per-page select {
    padding: 0.4rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.results-per-page select:hover {
    border-color: var(--primary-color);
}

.results-per-page select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

/* Loading Message Style */
.loading-message {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #555;
}

/* Active Nav Link for Songbook */
.nav-link.active-page {
    color: #fdbb2d; /* Gold accent for active page */
    font-weight: bold;
}

/* New Arrivals Section */
.new-arrivals-section {
    padding: 60px 0;
    background-color: #eef1f5; /* A slightly different light background */
}

.new-arrivals-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.new-arrivals-section > .container > p {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: #555;
}

#newArrivalsListContainer .song-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

#newArrivalsListContainer .song-item {
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    display: flex; /* Use flex for better control over content alignment */
    flex-direction: column; /* Stack items vertically */
    justify-content: space-between; /* Pushes remix to bottom if available */
    min-height: 120px; /* Ensure cards have some minimum height */
}

#newArrivalsListContainer .song-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

#newArrivalsListContainer .song-item .song-title {
    font-weight: 600;
    font-size: 1.15rem;
    color: #1a2a6c; /* Deep blue */
    margin-bottom: 5px;
    flex-grow: 1; /* Allow title to take available space */
}

#newArrivalsListContainer .song-item .song-artist {
    font-size: 1rem;
    color: #b21f1f; /* Red accent */
    margin-bottom: 8px;
}

#newArrivalsListContainer .song-item .song-remix {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    margin-top: auto; /* Pushes to the bottom if title/artist are short */
}

.text-center {
    text-align: center;
}

/* Events Section */
.events-section {
    padding: 60px 0;
    background-color: #fff; /* Or a very light grey like #f9f9f9 */
}

.events-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.event-item {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
    gap: 30px;
    margin-bottom: 40px;
    align-items: center; /* Vertically align items if they have different heights */
    transition: transform 0.3s ease; /* Add smooth transition for hover effect */
}

.event-item:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
}

.event-flyer-column {
    flex: 1 1 300px; /* Grow, shrink, base width 300px */
    max-width: 400px; /* Max width for flyer */
    margin: auto; /* Center flyer if column becomes wider */
}

.event-flyer-column img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease; /* Smooth transition for shadow */
}

.event-item:hover .event-flyer-column img {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15); /* Enhanced shadow on hover */
}

.event-info-column {
    flex: 1 1 400px; /* Grow, shrink, base width 400px */
    padding-left: 20px; /* Add some space if not stacked */
}

.event-info-column h3 {
    font-size: 1.8rem;
    color: #b21f1f; /* Red accent for event titles */
    margin-bottom: 15px;
}

.event-info-column p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 10px;
    color: #333;
}

.event-info-column .event-time strong,
.event-info-column .event-location strong,
.event-info-column .event-phone strong,
.event-info-column .event-details strong {
    color: #1a2a6c; /* Deep blue for labels */
    margin-right: 5px;
}

.event-divider {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 50px auto;
    width: 80%;
}

/* Responsive adjustments for Events Section */
@media(max-width: 768px) {
    .event-item {
        flex-direction: column; /* Stack flyer and info vertically */
        align-items: center; /* Center items when stacked */
    }
    .event-flyer-column {
        max-width: 100%; /* Allow flyer to take full width of its container */
        margin-bottom: 20px;
    }
    .event-info-column {
        padding-left: 0; /* Remove padding when stacked */
        text-align: center; /* Center text for a cleaner mobile look */
    }
    .event-info-column h3 {
        font-size: 1.6rem;
    }
}

/* Additional mobile optimization for smaller screens */
@media(max-width: 480px) {
    .events-section {
        padding: 40px 0; /* Less padding on very small screens */
    }
    
    .events-section h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .event-item {
        margin-bottom: 30px;
        gap: 15px;
    }
    
    .event-info-column h3 {
        font-size: 1.4rem;
    }
    
    .event-info-column p {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .event-divider {
        margin: 30px auto;
    }
}

/* Video Showcase Section */
.video-showcase-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    position: relative;
    overflow: hidden;
}

.video-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M95,50 C95,74.85 74.85,95 50,95 C25.15,95 5,74.85 5,50 C5,25.15 25.15,5 50,5 C74.85,5 95,25.15 95,50 Z" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>');
    background-repeat: repeat;
    opacity: 0.15;
    z-index: 1;
}

.video-showcase-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    gap: 40px;
}

.video-container {
    position: relative;
    width: 400px; /* Wider for desktop, less 'skinny' */
    max-width: 100%; /* Ensures it shrinks if viewport is narrower */
    height: 0;
    padding-bottom: 177.78%; /* Aims for 9:16 Aspect Ratio */
    max-height: 600px; /* Caps the height on desktop to prevent it being 'too tall' */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: perspective(1000px) rotateY(-5deg);
    background-color: #000; /* Fallback/letterbox color */
    margin: 0 auto 30px auto; /* Centered with more bottom margin */
}

.video-container:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    color: #fff;
    padding: 0 20px;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.video-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.video-info .cta-button {
    margin-top: 15px;
    background-color: #fff;
    color: #1a2a6c;
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-info .cta-button:hover {
    background-color: #fdbb2d;
    color: #1a2a6c;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Video Showcase Section - Mobile Responsiveness */
@media(max-width: 768px) { 
    .video-container {
        width: 320px; 
    }
    /* Stack songbook filter buttons on mobile */
    .songbook-controls-section .filter-group.action-buttons {
        flex-direction: column;
    }
    .songbook-controls-section .filter-group.action-buttons .cta-button {
        width: 100%; /* Make buttons full width when stacked */
    }
}

@media(max-width: 576px) {
    .video-showcase-section {
        padding: 60px 0;
    }
    
    .video-container {
        width: 300px; /* max-height won't affect 9:16 */
        margin-bottom: 20px; /* Adjust margin for smaller screens */
    }
    
    .video-info h2 {
        font-size: 1.8rem;
    }
    
    .video-info p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media(max-width: 380px) { 
    .video-container {
        width: 280px; /* max-height won't affect 9:16 */
    }
} 