/* CSS dành riêng cho trang chủ (Home Page) */

/* Mood Section */
.mood-hero-container {
    background: linear-gradient(135deg, #24304D 0%, #1A2338 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 50px;
    margin-bottom: 30px;
}

.mood-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.mood-card {
    width: 100%;
    height: 120px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    font-weight: 600;
    color: #121929;
    /* Chữ đậm trên nền sáng */
}

.mood-card:hover {
    transform: translateY(-5px);
}

.mood-card i {
    font-size: 1.5rem;
}

.mood-vui-ve {
    background: linear-gradient(180deg, #F9D4A1, #F0B389);
}

.mood-buon {
    background: linear-gradient(180deg, #A8C8E6, #8CA4D6);
}

.mood-chill {
    background: linear-gradient(180deg, #A2E2C7, #84C5C0);
}

.mood-chua-lanh {
    background: linear-gradient(180deg, #E6EAD7, #D9B3D0);
}

.mood-tap-trung {
    background: linear-gradient(180deg, #4A568A, #343E69);
    color: white;
}

.mood-lang-man {
    background: linear-gradient(180deg, #F8B4B4, #E99CBB);
}

/* Home Sections */
.home-section {
    margin-bottom: 40px;
}

.section-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.section-more-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.2s;
}

.section-more-btn:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Horizontal Scroll Container */
.horizontal-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px; /* for scrollbar spacing */
    scrollbar-width: none; /* Firefox */
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Playlist Card */
.playlist-card {
    min-width: 180px;
    max-width: 180px;
    cursor: pointer;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    display: block;
}

.playlist-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
}

.card-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    aspect-ratio: 1 / 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-play-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    background-color: var(--accent-color);
    color: #121929;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.playlist-card:hover .card-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
