/**
 * Safir Gift - Categories Carousel Styles
 * Stiluri pentru shortcode-ul [safir_categories_carousel]
 */

/* =====================================================
   CAROUSEL SECTION
   ===================================================== */
.categories-carousel-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    position: relative;
}

.categories-carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.categories-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* =====================================================
   SECTION HEADER
   ===================================================== */
.categories-carousel-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.categories-carousel-section .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.categories-carousel-section .section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   CAROUSEL WRAPPER & CARDS
   ===================================================== */
.categories-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.categories-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.category-carousel-card {
    flex: 0 0 calc((100% - 120px) / 7);
    max-width: calc((100% - 120px) / 7);
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.category-carousel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
}

.category-carousel-card .category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-carousel-card .category-image {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
}

.category-carousel-card .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-carousel-card:hover .category-image img {
    transform: scale(1.05);
}

.category-carousel-card .category-info {
    padding: 20px;
    text-align: center;
}

.category-carousel-card .category-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.category-carousel-card .category-count {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* =====================================================
   NAVIGATION BUTTONS
   ===================================================== */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: #fbbf24;
    border-color: #fbbf24;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-nav.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =====================================================
   DOTS INDICATOR - HIDDEN
   ===================================================== */
.carousel-dots {
    display: none !important;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(30, 58, 138, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: #1e3a8a;
}

.carousel-dot:hover {
    background: #3b82f6;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .category-carousel-card {
        flex: 0 0 calc((100% - 80px) / 4);
        max-width: calc((100% - 80px) / 4);
    }

    .categories-carousel-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .categories-carousel-section {
        padding: 60px 0;
    }

    .categories-carousel-section .section-title {
        font-size: 2.5rem;
    }

    .category-carousel-card {
        flex: 0 0 calc((100% - 40px) / 2);
        max-width: calc((100% - 40px) / 2);
    }

    .categories-carousel-wrapper {
        padding: 0 30px;
    }

    .category-carousel-card .category-image {
        height: 120px;
    }

    .category-carousel-card .category-info {
        padding: 15px;
    }

    .category-carousel-card .category-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .category-carousel-card {
        flex: 0 0 calc(100% - 20px);
        max-width: calc(100% - 20px);
    }

    .categories-carousel-wrapper {
        padding: 0 20px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .categories-carousel-section .section-title {
        font-size: 2rem;
    }
    
    .categories-carousel-section .section-subtitle {
        font-size: 1rem;
    }
}
