/* Home Spotify Section Styles */

.home-spotify {
    background-color: #ffffff;
    padding-bottom: 3rem;
}

.home-spotify__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    gap: 2rem;
}

.home-spotify__header-content {
    flex: 1;
}

.home-spotify__title {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-h1);
    color: #5C4033;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-spotify__subtitle {
    font-family: 'Inter', sans-serif;
    color: #6B5744;
    font-size: var(--font-size-lg);
    opacity: 0.8;
}

/* View All Button */
.home-spotify__view-all {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #8B4513;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1.5px solid #8B4513;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
}

.home-spotify__view-all:hover {
    background-color: #8B4513;
    color: #ffffff;
}

.home-spotify__view-all svg {
    transition: transform 0.3s ease;
}

.home-spotify__view-all:hover svg {
    transform: translateX(5px);
}

.home-spotify__slider-wrapper {
    /* Pull left to align first card's visual edge with title (counteracting wrapper padding) */
    margin-left: -1rem;
    width: calc(100% + 2rem);
    overflow: hidden;
}

#spotify-slider {
    display: flex;
    transition: transform 0.5s ease-out;
    width: 100%;
}

.spotify-card-wrapper {
    flex: 0 0 25%;
    padding: 1rem;
    box-sizing: border-box;
}

.spotify-card {
    background-color: transparent;
    /* Remove bg from card container if we want clean look, or keep */
    /* Let's keep transparent as requested "like Spotify styling" usually implies focus on image */
    background-color: #F8F4F0;
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.05);
}

.spotify-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.1);
}

.spotify-card__image {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Default aspect ratio */
.spotify-card__image {
    aspect-ratio: 1;
}

/* Alternating Sizes */
.spotify-card--large .spotify-card__image {
    aspect-ratio: 3/4;
    /* Taller image */
}

.spotify-card--small .spotify-card__image {
    aspect-ratio: 1/1;
    /* Square image */
}

.spotify-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotify-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.spotify-card__title {
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-h5);
    font-weight: 700;
    color: #2D1A12;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.spotify-card__meta {
    font-size: var(--font-size-sm);
    color: #8C7E74;
    margin-bottom: 2rem;
}

.spotify-card__button {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #D4844D;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
    gap: 0.5rem;
}

.spotify-card__button:hover {
    background-color: #C17844;
}

/* Bottom Left Navigation */
.home-spotify__nav {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-left: 1rem;
}

.spotify-nav-button {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #E6D5C5;
    color: #5C4033;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spotify-nav-button:hover {
    background-color: #D4844D;
    color: #ffffff;
}

/* Media Queries consolidated at the end */
@media (max-width: 1019px) {
    .spotify-card-wrapper {
        flex: 0 0 50%;
    }
}

@media (max-width: 767px) {
    .home-spotify__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .home-spotify__view-all {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }

    .home-spotify__title {
        font-size: var(--font-size-h2);
    }

    .spotify-card-wrapper {
        width: 85%;
        flex: 0 0 85%;
    }

    .home-spotify__slider-wrapper {
        overflow: hidden;
        /* Changed to hidden to let JS control sliding with arrows */
    }

    .spotify-card-wrapper {
        scroll-snap-align: center;
    }

    .home-spotify__nav {
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
        padding-left: 0;
    }
}