/**
 * Modern UI Enhancements for AlkebulanTV
 * Author: Enhanced Landing Page
 * Version: 1.0
 */

/* ====================================
   HERO SLIDER ENHANCEMENTS
   ==================================== */

.slider-area {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.splide__slide {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.splide__slide img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.splide__slide:hover img {
    transform: scale(1.05);
}

/* Gradient Overlay for Better Text Readability */
.splide__slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.85) 40%,
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.splide-slider-details-area {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 600px;
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translate(-50px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

.splide-slider-details-area h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 3px 6px 12px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.slider-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 2px 3px 8px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

.slider-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Modern Button Styles */
.btn-watch, .btn-buy-plan {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-watch {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    color: #000;
}

.btn-watch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD54F 0%, #FFB74D 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-watch:hover::before {
    left: 0;
}

.btn-watch:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    color: #000;
}

.btn-buy-plan {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #fff;
}

.btn-buy-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-buy-plan:hover::before {
    left: 0;
}

.btn-buy-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
    color: #fff;
}

.btn-watch img, .btn-buy-plan img {
    width: 20px;
    height: 20px;
    filter: brightness(1.2);
}

/* ====================================
   SECTION HEADERS
   ==================================== */

.vfx-item-section {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.vfx-item-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.vfx-item-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    border-radius: 2px;
}

.view-more a {
    color: #FFC107;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 8px 20px;
    border-radius: 25px;
    border: 2px solid transparent;
}

.view-more a:hover {
    color: #fff;
    background: #FFC107;
    border-color: #FFC107;
    transform: translateX(5px);
}

/* ====================================
   VIDEO CARDS ENHANCEMENTS
   ==================================== */

.single-video {
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.single-video:hover {
    transform: translateY(-10px);
}

.video-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.single-video:hover .video-img {
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.3);
}

.video-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.single-video:hover .video-img img {
    transform: scale(1.1);
}

/* Gradient Overlay on Cards */
.video-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.single-video:hover .video-img::after {
    opacity: 1;
}

.video-item-content {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 10;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Premium Badge */
.vid-lab-premium {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.vid-lab-premium img {
    width: 20px;
    height: 20px;
}

/* ====================================
   SECTION SPACING
   ==================================== */

.vfx-item-ptb {
    padding: 50px 0;
}

.video-carousel-area,
.video-shows-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 40px 20px;
    margin-bottom: 20px;
}

/* ====================================
   RESPONSIVE IMPROVEMENTS
   ==================================== */

@media (max-width: 991px) {
    .splide-slider-details-area {
        left: 30px;
        max-width: 500px;
    }
    
    .splide-slider-details-area h1 {
        font-size: 2.5rem;
    }
    
    .slider-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .btn-watch, .btn-buy-plan {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .splide-slider-details-area {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
    
    .splide-slider-details-area h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .slider-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
        display: none; /* Hide description on mobile for cleaner look */
    }
    
    .btn-watch, .btn-buy-plan {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .slider-buttons {
        gap: 10px;
    }
    
    .vfx-item-section h3 {
        font-size: 1.5rem;
    }
    
    .vfx-item-ptb {
        padding: 30px 0;
    }
}

@media (max-width: 575px) {
    .splide-slider-details-area h1 {
        font-size: 1.5rem;
    }
    
    .slider-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-watch, .btn-buy-plan {
        width: 100%;
        justify-content: center;
    }
}

/* ====================================
   SMOOTH SCROLLING & ANIMATIONS
   ==================================== */

html {
    scroll-behavior: smooth;
}

/* Optimize performance */
.single-video,
.splide__slide img {
    will-change: auto; /* Only animate when needed */
}

/* Use GPU acceleration for transforms */
.single-video:hover,
.splide__slide img,
.slider-area {
    transform: translate3d(0, 0, 0); /* Force GPU acceleration */
}

.video-carousel, .video-shows-carousel, .recently-watched-video-carousel {
    padding: 20px 0;
}

/* Loading Animation for Images */
.video-img img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ====================================
   CUSTOM SCROLLBAR
   ==================================== */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FFD54F 0%, #FFB74D 100%);
}

/* ====================================
   NAVIGATION ARROW IMPROVEMENTS
   ==================================== */

.splide__arrow {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.splide__arrow:hover {
    background: #FFC107;
    transform: scale(1.1);
}

.splide__arrow svg {
    fill: #ffffff;
}

/* ====================================
   RECENTLY WATCHED SECTION
   ==================================== */

.recently-watched-video-carousel .single-video {
    position: relative;
}

.recently-watched-video-carousel .video-img::before {
    content: 'Continue Watching';
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====================================
   UPCOMING MOVIES/SHOWS TAG
   ==================================== */

.video-carousel-area .single-video .video-img::before,
.video-shows-section .single-video .video-img::before {
    content: attr(data-badge);
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #e91e63 0%, #f44336 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
}

/* ====================================
   HOVER PLAY BUTTON
   ==================================== */

.video-img::before {
    content: '\f04b';
    font-family: 'FontAwesome';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #FFC107;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.single-video:hover .video-img::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

