/* Apply Montserrat font to the entire body */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure body takes at least full viewport height */
    color: #FFF;
    font-size: 16px; /* Base font size */
}

/* Header styling */
header {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align items to the left */
    background: #000;
    padding: 10px 20px; /* Add padding around the content */
    color: #fff;
    width: 100%;
    height: auto; /* Automatic height */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure header stays on top */
}

/* Logo styling */
header .logo {
    margin-right: 20px; /* Add space between logo and navigation */
}

header .logo img {
    width: 5vw; /* Adjust logo size */
}

/* Navigation styling */
nav {
    flex: 1;
    display: flex;
    justify-content: flex-start; /* Align navigation next to the logo */
    align-items: center;
}

nav ul {
    display: flex; /* Display navigation items in a row */
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px; /* Add space between navigation items */
}

nav ul li {
    width: auto; /* Ensure each navigation item is sized based on its content */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px; /* Adjust padding for clickable area */
    display: block;
}

nav ul li a:hover {
    background: #555;
    border-radius: 5px; /* Add border radius for hover effect */
}

/* Main content area */
main {
    padding: 20px;
    padding-top: 8vh;
    padding-bottom: 17vh; /* Ensure footer does not overlap */
    flex: 1;
    background: url('../assets/background.jpg');
    background-size: cover; /* Cover ensures full background */
    margin-top: 60px; /* Space for fixed header */
}

/* Gig Headers */
.gig-header{
    font-size: 2rem; /* Adjust for consistency */
    display: flex;
    align-items: center;
    justify-content: center; 
}

/* Gig Listings */
.gig-listings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gig-item {
    display: flex;
    background-color: rgba(0, 0, 0, 0.5); /* Match background with base CSS */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Image and date overlay */
.gig-image {
    position: relative;
    width: 300px;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.date-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5); /* Match base CSS */
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.date-overlay .date {
    font-size: 2em;
    font-weight: bold;
    line-height: 1em;
}

.date-overlay .month {
    font-size: 1.2em;
    text-transform: uppercase;
}

/* Gig details */
.gig-details {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gig-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem; /* Adjust to match base CSS */
}

.gig-blurb {
    margin: 0 0 20px 0;
    font-size: 1rem; /* Adjust to match base CSS */
    color: #666;
}

/* Base button styling with smooth gradient */
.buy-tickets {
    background: linear-gradient(135deg, #ff0024, #ff0000);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.buy-tickets:hover {
    background: linear-gradient(135deg, #ff0000, #ff0024);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.buy-tickets:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.5);
}

/* Footer styling */
footer {
    font-size: 1rem; /* Use rem for consistency */
    background: #000;
    color: #fff;
    text-align: center; /* Center-align all text */
    padding: 10px 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    display: flex;
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center all content horizontally */
    z-index: 10; /* Ensure footer is above other content */
}

/* Social media section styling */
footer .social-media {
    display: flex;
    justify-content: center; /* Center social media links within their section */
    gap: 5px; /* Space between social media links */
    margin-top: 10px; /* Add some space between text and social media links */
}

/* Social media links styling */
footer .social-media a {
    color: #fff;
    text-decoration: none;
}

footer .social-media a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for smaller screens */
@media only screen and (max-width: 768px) {
    /* General font size adjustment for mobile */
    body {
        font-size: 14px;
    }

    /* Header adjustments for mobile */
    header {
        flex-direction: row; /* Keep the logo and nav in a row */
        padding: 5px 10px; /* Reduce padding to conserve space */
        height: auto; /* Ensure height is only as tall as needed */
    }

    header .logo img {
        width: 15vw; /* Reduce the logo size */
        margin-right: 10px; /* Reduce margin between logo and nav */
    }

    nav ul {
        flex-direction: row; /* Keep navigation items in a row */
        flex-wrap: wrap; /* Allow items to wrap to the next line if necessary */
        gap: 10px; /* Reduce gap between navigation items */
    }

    nav ul li {
        text-align: left;
    }

    nav ul li a {
        font-size: 0.9rem; /* Slightly smaller font size */
        padding: 5px 10px; /* Reduce padding inside nav links */
    }

    main {
        padding-top: 80px; /* Space for fixed header */
        padding-bottom: 120px; /* Ensure footer does not overlap */
    }


    .gig-item {
        width: 100%; /* Full width for responsiveness */
    }

    .gig-image {
        height: 200px; /* Fixed height to ensure visibility */
        max-width: 20vw;
    }

    .date-overlay {
        font-size: 1em; /* Adjust font size for readability */
    }

    .gig-details {
        padding: 10px; /* Reduce padding */
    }

    .buy-tickets {
        padding: 10px 20px; /* Adjust padding */
        font-size: 14px; /* Smaller font size for mobile */
    }


    footer {
        font-size: 0.9rem; /* Adjust font size */
        padding: 15px 10px; /* Adjust padding */
    }

    footer .social-media {
        gap: 10px; /* Adjust spacing */
    }
}
