/**
 * Hero Section - XemPhim360 Streaming Site
 * Purpose: Immediate CTA for users to start watching
 */

.hero-streaming {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
    margin-bottom: 40px;
}

/* Background with movie poster blur */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.3);
    transform: scale(1.1);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.9) 100%);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.5);
    color: #e50914;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(229, 9, 20, 0);
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: #b0b0b0;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Trust Signals */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    font-size: 15px;
}

.hero-feature i {
    color: #00ff00;
    font-size: 18px;
}

/* CTA Buttons */
.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    color: white;
    font-size: 20px;
    font-weight: 700;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
    text-decoration: none;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(229, 9, 20, 0.6);
    background: linear-gradient(135deg, #ff0a16 0%, #c90813 100%);
}

.btn-hero-primary i {
    font-size: 24px;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 35px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Featured Movie Poster */
.hero-poster {
    position: relative;
    perspective: 1000px;
}

.hero-poster-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s;
    transform: rotateY(-5deg);
}

.hero-poster:hover .hero-poster-card {
    transform: rotateY(0deg) scale(1.05);
}

.hero-poster-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.hero-poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.hero-poster-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.hero-poster-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #b0b0b0;
}

.hero-poster-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffd700;
}

/* Play Button on Poster */
.hero-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(229, 9, 20, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
}

.hero-poster:hover .hero-play-btn {
    opacity: 1;
}

.hero-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(229, 9, 20, 1);
}

.hero-play-btn i {
    font-size: 32px;
    color: white;
    margin-left: 5px;
}

/* Stats Bar */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #e50914;
    display: block;
    margin-bottom: 5px;
}

.hero-stat-label {
    font-size: 14px;
    color: #808080;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-poster {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-streaming {
        min-height: auto;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn-hero-primary {
        font-size: 18px;
        padding: 16px 32px;
        width: 100%;
        justify-content: center;
    }

    .btn-hero-secondary {
        font-size: 16px;
        padding: 14px 28px;
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero-stat {
        flex: 1;
        min-width: 100px;
    }

    .hero-features {
        gap: 15px;
    }

    .hero-feature {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-stat-number {
        font-size: 24px;
    }
}

/* Animation on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text>* {
    animation: fadeInUp 0.6s ease-out backwards;
}

.hero-badge {
    animation-delay: 0.1s;
}

.hero-title {
    animation-delay: 0.2s;
}

.hero-subtitle {
    animation-delay: 0.3s;
}

.hero-features {
    animation-delay: 0.4s;
}

.hero-actions {
    animation-delay: 0.5s;
}

.hero-poster {
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}