/**
 * Hero Section Styles
 * Dynamic hero banner for homepage
 */

.hero-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Background with gradient overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay, linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%));
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    transform: scale(1.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    color: #fff;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Hero Search */
.hero-search {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    max-width: 500px;
    display: flex;
    gap: 5px;
}

.hero-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #fff;
    font-size: 16px;
}

.hero-search input::placeholder {
    color: rgba(255,255,255,0.7);
}

.hero-search input:focus {
    outline: none;
}

.hero-search button {
    background: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    color: var(--primary-color, #667eea);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search button:hover {
    transform: scale(1.05);
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Featured Songs in Hero */
.hero-featured {
    margin-top: 20px;
}

.hero-featured h4 {
    font-size: 1rem;
    color: #ffffff;
    opacity: 0.95;
    margin-bottom: 15px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-weight: 600;
}

.featured-songs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.featured-song {
    flex: 0 0 auto;
    width: 140px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #fff;
}

.featured-song:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.featured-song img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
}

.featured-song-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin-bottom: 4px;
}

.featured-song-artist {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        min-height: 350px;
    }
    
    .hero-content {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-search {
        margin: 0 auto;
        flex-direction: column;
        border-radius: 20px;
    }
    
    .hero-search button {
        width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .featured-songs {
        justify-content: flex-start;
    }
}
