/* ===================
   MODULAR CINEMA CAROUSEL STYLES
   Dosya: /frontend/css/modular-cinema-carousel.css
   =================== */

/* Modüler Carousel Base */
.modular-carousel {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    margin-bottom: 60px;
}

.carousel-header {
    text-align: center;
    margin-bottom: 40px;
}

.carousel-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    overflow: hidden;
}

/* Slide Background */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    transition: all 0.8s ease;
}

.carousel-slide.active .slide-background {
    filter: brightness(0.6);
    transform: scale(1.05);
}

.slide-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 60px;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.movie-poster {
    width: 280px;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    margin-right: 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.6s ease;
    transform: translateX(-50px);
    opacity: 0;
    flex-shrink: 0;
}

.carousel-slide.active .movie-poster {
    transform: translateX(0);
    opacity: 1;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-poster:hover .poster-img {
    transform: scale(1.05);
}

.movie-details {
    flex: 1;
    max-width: 600px;
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

.carousel-slide.active .movie-details {
    transform: translateX(0);
    opacity: 1;
}

.movie-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    font-size: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.rating {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.genre-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.genre-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.genre-tag:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.movie-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

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

/* Navigation */
.carousel-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.carousel-navigation:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
}

.nav-prev {
    left: 30px;
}

.nav-next {
    right: 30px;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-red);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: 21;
    border-radius: 0 2px 0 0;
}

/* Loading States */
.carousel-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    flex-direction: column;
    color: white;
}

.carousel-loading .loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--primary-red);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .modular-carousel {
        padding: 0 30px;
    }
    
    .movie-poster {
        width: 220px;
        height: 300px;
    }
    
    .movie-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .modular-carousel {
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    .carousel-container {
        height: 350px;
    }
    
    .carousel-header {
        margin-bottom: 20px;
    }
    
    /* ✅ BAŞLIKLAR %50 KÜÇÜLTÜLDÜ */
    .carousel-title {
        font-size: 1.1rem; /* 2.2rem -> 1.1rem (%50) */
        margin-bottom: 8px;
    }
    
    .carousel-subtitle {
        font-size: 0.6rem; /* 1.2rem -> 0.6rem (%50) */
    }
    
    .movie-poster {
        width: 160px; /* 200px -> 160px (%20 küçültme) */
        height: 220px; /* 280px -> 220px (%20 küçültme) */
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    /* ✅ FİLM BAŞLIĞI %50 KÜÇÜLTÜLDÜ */
    .movie-title {
        font-size: 1.1rem; /* 2.2rem -> 1.1rem (%50) */
        margin-bottom: 10px;
    }
    
    /* ✅ META BİLGİLER %50 KÜÇÜLTÜLDÜ */
    .movie-meta {
        justify-content: center;
        gap: 12px; /* 25px -> 12px (%50) */
        margin-bottom: 12px; /* 25px -> 12px (%50) */
        font-size: 0.5rem; /* 1rem -> 0.5rem (%50) */
    }
    
    .meta-item {
        gap: 4px; /* 8px -> 4px (%50) */
    }
    
    /* ✅ GENRE TAGS %50 KÜÇÜLTÜLDÜ */
    .genre-tags {
        gap: 5px; /* 10px -> 5px (%50) */
        margin-bottom: 15px; /* 30px -> 15px (%50) */
    }
    
    .genre-tag {
        padding: 4px 8px; /* 8px 16px -> 4px 8px (%50) */
        font-size: 0.42rem; /* 0.85rem -> 0.42rem (%50) */
        border-radius: 10px; /* 20px -> 10px (%50) */
    }
    
    /* ✅ AÇIKLAMA METNİ %50 KÜÇÜLTÜLDÜ */
    .movie-description {
        font-size: 0.55rem; /* 1.1rem -> 0.55rem (%50) */
        line-height: 1.4; /* 1.7 -> 1.4 (daha kompakt) */
        margin-bottom: 20px; /* 40px -> 20px (%50) */
    }
    
    /* ✅ BUTONLAR %50 KÜÇÜLTÜLDÜ */
    .action-buttons {
        justify-content: center;
        gap: 10px; /* 20px -> 10px (%50) */
    }
    
    .btn {
        padding: 8px 16px; /* 16px 32px -> 8px 16px (%50) */
        font-size: 0.5rem; /* 1rem -> 0.5rem (%50) */
        gap: 5px; /* 10px -> 5px (%50) */
        border-radius: 25px; /* 50px -> 25px (%50) */
    }
    
    .slide-content {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px; /* 30px 20px -> 20px 15px (%33 küçültme) */
    }
    
    /* ✅ NAVİGASYON BUTONLARI %50 KÜÇÜLTÜLDÜ */
    .carousel-navigation {
        width: 35px; /* 50px -> 35px (%30 küçültme) */
        height: 35px; /* 50px -> 35px (%30 küçültme) */
        font-size: 0.8rem; /* 1.2rem -> 0.8rem (%33 küçültme) */
    }
    
    .nav-prev {
        left: 10px; /* 15px -> 10px */
    }
    
    .nav-next {
        right: 10px; /* 15px -> 10px */
    }
    
    /* ✅ INDICATORS %50 KÜÇÜLTÜLDÜ */
    .carousel-indicators {
        bottom: 15px; /* 30px -> 15px (%50) */
        gap: 6px; /* 12px -> 6px (%50) */
    }
    
    .indicator {
        width: 6px; /* 12px -> 6px (%50) */
        height: 6px; /* 12px -> 6px (%50) */
    }
    
    .indicator.active {
        transform: scale(1.2); /* 1.3 -> 1.2 (daha az büyütme) */
    }
    
    /* ✅ PROGRESS BAR %50 KÜÇÜLTÜLDÜ */
    .progress-bar {
        height: 2px; /* 4px -> 2px (%50) */
        border-radius: 0 1px 0 0; /* 2px -> 1px (%50) */
    }
    
    /* ✅ LOADING STATE %50 KÜÇÜLTÜLDÜ */
    .carousel-loading {
        min-height: 350px; /* carousel container ile aynı */
    }
    
    .carousel-loading .loading-spinner {
        width: 20px; /* 30px -> 20px (%33 küçültme) */
        height: 20px; /* 30px -> 20px (%33 küçültme) */
        border-width: 2px; /* 3px -> 2px */
        margin-bottom: 10px; /* 15px -> 10px */
    }
    
    .carousel-loading span {
        font-size: 0.6rem; /* Yaklaşık %50 küçültme */
    }
}

/* ✅ ÇOK KÜÇÜK EKRANLAR İÇİN EK OPTİMİZASYON */
@media (max-width: 480px) {
    .modular-carousel {
        padding: 0 10px;
    }
    
    .carousel-container {
        height: 300px;
        border-radius: 15px;
    }
    
    .carousel-title {
        font-size: 1rem;
    }
    
    .carousel-subtitle {
        font-size: 0.55rem;
    }
    
    .movie-poster {
        width: 140px;
        height: 190px;
    }
    
    .movie-title {
        font-size: 1rem;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 0.45rem;
    }
    
    .slide-content {
        padding: 15px 10px;
    }
}
