/**
 * Hero Section Component
 * Used by: trackA1.php, mixtapeA1.php, videoA1.php
 *
 * Provides hero section styling for all player pages
 * Includes blurred background effect and responsive layouts
 */

/* ====================================
   Hero Section Base Styles
   ==================================== */
.track-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(12, 12, 12, 0.98) 100%);
    padding: 40px 0;
    margin-bottom: 30px;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.track-hero.transitioning {
    opacity: 0.7;
}

/* Blurred background effect */
.track-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: var(--hero-bg) center/cover;
    filter: blur(50px);
    opacity: 0.3;
    z-index: 0;
}

/* ====================================
   Hero Content Layout
   ==================================== */
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   Hero Artwork
   ==================================== */
.hero-artwork {
    width: 250px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 16:9 aspect ratio for artist tracks */
.hero-artwork.artist-track {
    aspect-ratio: 16/9;
    width: 400px;
}

.hero-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====================================
   Hero Information
   ==================================== */
.hero-info {
    flex: 1;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ====================================
   Hero Controls
   ==================================== */
.hero-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.control-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.control-btn i {
    font-size: 1rem;
}

/* Icon-only share button styling */
.share-icon-btn {
    padding: 12px;
    width: 44px;
    height: 44px;
    justify-content: center;
    border-radius: 50%;
}

.share-icon-btn i {
    font-size: 1.1rem;
    margin: 0;
}

/* ====================================
   Desktop Responsive (1024px+)
   ==================================== */
@media (min-width: 1024px) {
    .track-hero {
        height: 400px;
        margin-bottom: 40px;
        background: none;
        padding: 0;
        text-align: left;
    }

    .track-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: var(--hero-bg);
        background-size: cover;
        background-position: center;
        filter: blur(10px);
        transform: scale(1.1);
        z-index: 1;
    }

    .track-hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.4) 100%);
        z-index: 2;
    }

    .hero-content {
        height: 100%;
        display: flex;
        align-items: center;
        gap: 40px;
        padding: 0 50px;
        z-index: 3;
    }

    .hero-artwork {
        width: 280px;
        flex-shrink: 0;
        margin: 0;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    }

    .hero-artwork.artist-track {
        width: 400px;
    }

    .hero-info {
        flex: 1;
        text-align: left;
    }

    .hero-title {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 15px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    .hero-meta {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 20px;
    }

    .hero-controls {
        display: flex;
        gap: 15px;
    }
}

/* ====================================
   Tablet Responsive (576px - 1023px)
   ==================================== */
@media (max-width: 1023px) and (min-width: 576px) {
    .hero-content {
        gap: 30px;
    }

    .hero-artwork {
        width: 200px;
    }

    .hero-artwork.artist-track {
        width: 320px;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* ====================================
   Mobile Responsive (<576px)
   ==================================== */
@media (max-width: 575px) {
    .track-hero {
        padding: 20px 0;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .hero-artwork {
        width: 200px;
    }

    .hero-artwork.artist-track {
        width: 100%;
        max-width: 320px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-meta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ====================================
   View All Button - Consistent Styling
   ==================================== */
/* Used in section headers across player pages for navigation to full content pages */
.btn-view-all {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e74c3c 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-view-all:hover {
    text-decoration: none;
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}