/* ========================================
   Showcase Carousel Styles
   Dynamic carousel for promotional and catalog content
   ======================================== */

.showcase-carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    overflow: hidden;
    /* Arrows/dots outside scroll area */
    border-radius: var(--radius-lg);
}

.showcase-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 20px;
    /* Space for scrollbar if needed, though we hide it */
    scrollbar-width: none;
    /* Firefox */
}

.showcase-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-slide {
    flex: 0 0 100%;
    /* Desktop default */
    scroll-snap-align: center;
    padding: 0 10px;
    display: flex;
    justify-content: center;
}

/* Promo Slide Cards */
.promo-slide-card {
    background: rgba(15, 16, 38, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 9 / 16;
    /* Reels-style vertical format */
    max-width: 380px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.promo-slide-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Yazıları kesmez */
    display: block;
}

.promo-slide-card.special-promo {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(15, 16, 38, 0.8);
}

/* Catalog Grid Slide */
.catalog-slide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.mini-catalog-card {
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mini-catalog-card:hover {
    border-color: var(--primary-neon);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
}

.mini-card-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.mini-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mini-catalog-card:hover .mini-card-image img {
    transform: scale(1.1);
}

.mini-card-content {
    padding: 15px;
    text-align: center;
}

.mini-card-content h4 {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.mini-card-content span {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.mini-catalog-card:hover .mini-card-content h4 {
    color: var(--primary-neon);
}

/* View All Mini Card */
.view-all-mini {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.05) 0%, rgba(0, 243, 255, 0.1) 100%);
    border: 1px dashed var(--primary-neon);
    align-items: center;
    justify-content: center;
}

.mini-view-all {
    text-align: center;
    padding: 20px;
}

.mini-view-all i {
    font-size: 2rem;
    color: var(--primary-neon);
    margin-bottom: 10px;
    display: block;
}

.mini-view-all h4 {
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 5px;
}

.mini-view-all p {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--primary-neon);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-neon);
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    width: 30px;
    border-radius: 5px;
}

.carousel-dot:hover {
    background: rgba(0, 243, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .showcase-carousel-wrapper {
        margin: 10px 0 20px;
        /* Reduced top margin */
        /* Full width on mobile */
        padding: 0;
    }

    .showcase-carousel {
        padding: 0 20px;
        /* Side padding so first/last items aren't flush */
        gap: 15px;
    }

    .carousel-slide {
        flex: 0 0 85%;
        /* Shows 85% of current, leaving space for others */
        padding: 0;
    }

    .promo-slide-card {
        max-width: 100%;
        /* Fill the slide container */
        aspect-ratio: 9 / 16;
        border-radius: 12px;
    }

    .promo-slide-card img {
        object-fit: cover;
        /* Fill the card completely, eliminating gaps */
    }

    .catalog-slide-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .carousel-btn {
        display: none;
        /* Hide buttons on mobile, rely on swipe */
    }

    .carousel-prev {
        left: -10px;
    }

    .carousel-next {
        right: -10px;
    }

    /* Tighter spacing for showcase section */
    .section.showcase {
        padding-top: 10px;
        padding-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }
}