/* General Body and Typography */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #121212; /* Dark background for a sleek look */
    color: #e0e0e0; /* Light text for contrast */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure footer stays at bottom */
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

a {
    color: #1DB954; /* Spotify green for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2ED264;
}

/* Header Styling */
.main-header {
    background: linear-gradient(to right, #333333, #1a1a1a);
    color: #fff;
    padding: 2.5em 1.5em;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.header-content h1 {
    font-size: 2.8em;
    margin-bottom: 0.2em;
}

.header-content p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Album Grid Container */
.album-grid-container {
    display: grid;
    /* Default for mobile: single column */
    grid-template-columns: 1fr;
    gap: 1.5em; /* Space between album cards */
    padding: 2em 1em;
    max-width: 1200px; /* Max width for content */
    margin: 2em auto; /* Center the grid */
    flex-grow: 1; /* Allows grid to take up available space */
}

/* Album Card Styling */
.album-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Stack image and info vertically */
}

.album-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.album-cover-wrapper {
    position: relative;
    padding-bottom: 100%; /* Makes the wrapper a perfect square */
    overflow: hidden;
}

.album-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    display: block;
}

.album-info {
    padding: 1em 1.2em;
    text-align: center;
    flex-grow: 1; /* Allows info section to expand */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically if space allows */
}

.album-info .album-artist {
    font-size: 0.9em;
    color: #bbbbbb;
    margin-bottom: 0.2em;
    display: block; /* Ensures it takes full width */
}

.album-info .album-title {
    font-size: 1.5em;
    margin-top: 0;
    color: #ffffff;
}

/* Overlay for "Listen Now" Button */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-card:hover .overlay {
    opacity: 1;
}

.overlay-btn {
    background-color: #1DB954;
    color: #fff;
    padding: 0.8em 1.5em;
    border-radius: 50px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.overlay-btn:hover {
    background-color: #2ED264;
    transform: scale(1.05);
}

.overlay-btn i {
    font-size: 1.3em;
}

.coming-soon .overlay {
    background: rgba(0, 0, 0, 0.8);
    cursor: not-allowed;
}

.coming-soon .overlay-text {
    color: #fff;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer Styling */
.main-footer {
    background-color: #1a1a1a;
    color: #b3b3b3;
    text-align: center;
    padding: 1.5em 1em;
    margin-top: 2em; /* Space above footer */
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.social-links a {
    color: #b3b3b3;
    font-size: 1.8em;
    margin: 0 0.7em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #1DB954;
}

/* --- Media Queries for Responsiveness --- */

/* Tablets and larger devices (e.g., iPads, small laptops) */
@media (min-width: 768px) {
    .main-header {
        padding: 3em 2em;
    }

    .header-content h1 {
        font-size: 3.5em;
    }

    .header-content p {
        font-size: 1.4em;
    }

    .album-grid-container {
        /* 2 columns for tablets */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        padding: 3em 1.5em;
        gap: 2em;
    }

    .album-info .album-title {
        font-size: 1.8em;
    }
}

/* Desktops and larger screens */
@media (min-width: 1024px) {
    .main-header {
        padding: 4em 3em;
    }

    .header-content h1 {
        font-size: 4.5em;
    }

    .header-content p {
        font-size: 1.6em;
    }

    .album-grid-container {
        /* 3 columns for desktops */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        padding: 4em 2em;
        gap: 2.5em;
    }

    .album-card {
        flex-direction: column; /* Ensure vertical layout on larger screens too */
    }
}

/* Even larger screens (e.g., large monitors) */
@media (min-width: 1440px) {
    .album-grid-container {
        /* 4 columns for very large screens */
        grid-template-columns: repeat(4, 1fr);
        max-width: 1400px; /* Increase max-width for even more content */
    }
}