/* Hero Carousel Styles */
.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 8px;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Backdrop Image */
.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    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.7) 40%,
        rgba(0, 0, 0, 0.4) 70%,
        transparent 100%
    ),
    linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        transparent 60%
    );
}

/* Content */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-description {
    color: #e5e5e5;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hero-actions .btn-netflix {
    background: #e50914;
    border: none;
    color: white;
}

.hero-actions .btn-netflix:hover {
    background: #f40612;
    transform: scale(1.05);
}

.hero-actions .btn-outline-light {
    background: rgba(109, 109, 110, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.hero-actions .btn-outline-light:hover {
    background: rgba(109, 109, 110, 0.9);
    border-color: white;
    transform: scale(1.05);
}

/* Navigation Indicators (Dots) */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    right: 50px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    /* Increase touch target to 48x48px for accessibility */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Visual indicator inside touch target */
.hero-dot::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.hero-dot:hover::before {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero-dot.active::before {
    background: #e50914;
    width: 30px;
    border-radius: 6px;
}

/* Navigation Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.hero-carousel-wrapper:hover .hero-arrow {
    opacity: 1;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-left {
    left: 20px;
}

.hero-arrow-right {
    right: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel-wrapper {
        height: 500px;
    }

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

    .hero-description {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-actions .btn {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }

    .hero-indicators {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }

    .hero-overlay {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(0, 0, 0, 0.4) 100%
        );
    }

    .hero-content {
        padding-top: 4rem;
    }
}

@media (max-width: 576px) {
    .hero-carousel-wrapper {
        height: 450px;
        margin-bottom: 1rem;
    }

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

    .hero-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .hero-actions {
        gap: 0.5rem;
    }

    .hero-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .hero-arrow-left {
        left: 10px;
    }

    .hero-arrow-right {
        right: 10px;
    }

    .hero-dot {
        width: 44px;
        height: 44px;
    }

    .hero-dot::before {
        width: 8px;
        height: 8px;
    }

    .hero-dot.active::before {
        width: 20px;
    }
}

/* Animation for slide transitions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-slide.active .hero-content > * {
    animation: slideIn 0.8s ease-out;
}
