/* ============================================
   CAROUSEL.CSS - קרוסלת תוכן וכרטיסים
   ============================================ */

/* Content Carousel Section */
.content-section {
    background: #141414;
    padding: 4rem 0;
    position: relative;
}

.content-carousel {
    position: relative;
    margin-top: 2rem;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 80px; /* Space for arrows */
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1rem 0;
}

/* Content Cards */
.content-card {
    min-width: 320px;
    max-width: 320px;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(145deg, #1f1f1f 0%, #2a2a2a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.content-card:hover,
.content-card:focus {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 4px;
}

.content-card:hover .card-overlay,
.content-card:focus .card-overlay {
    opacity: 1;
}

.content-card:hover .card-cta,
.content-card:focus .card-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Card Preview Area */
.card-preview {
    width: 100%;
    height: 65%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
}

.card-preview-inner {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(10px);
}

/* Card Info Section */
.card-info {
    padding: 1.5rem;
    background: linear-gradient(145deg, #1a1a1a 0%, #252525 100%);
    height: 35%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-description {
    color: #b8b8b8;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.card-cta {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.card-cta:hover {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
    transform: translateY(-2px);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 20;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.carousel-nav:hover,
.carousel-nav:focus {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Section Headers - Netflix Style */
.netflix-section-header {
    color: white;
    margin-bottom: 1rem;
}

.netflix-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

/* Special Animations */
.events-animation {
    animation: slideInEvents 2s ease-in-out infinite alternate;
}

@keyframes slideInEvents {
    0% { transform: translateY(0px); opacity: 1; }
    100% { transform: translateY(-5px); opacity: 0.9; }
}

/* Touch Indicators for Mobile */
.touch-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .carousel-container {
        padding: 0 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .carousel-container::-webkit-scrollbar {
        display: none;
    }

    .carousel-track {
        transform: none !important;
    }

    .carousel-nav {
        display: none;
    }

    .content-card {
        min-width: 280px;
        max-width: 280px;
        height: 400px;
        scroll-snap-align: start;
    }

    .content-card:hover,
    .content-card:focus {
        transform: scale(1.02) translateY(-5px);
    }
    
    .touch-indicator {
        display: block;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 10px;
    }

    .content-card {
        min-width: 260px;
        max-width: 260px;
        height: 380px;
    }

    .carousel-track {
        gap: 1rem;
    }
}

@media (min-width: 769px) {
    .touch-indicator {
        display: none;
    }
}