/**
 * Categories Slider CSS
 * Gradient renkli kategori kartları slider
 */

.categories-slider-section {
    padding: 0;
    background: #fff;
    margin: 0;
    margin-top: 20px !important;
    width: 100%;
    margin-bottom: 20px !important;
}

.categories-slider-section .categories-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.categories-slider-wrapper {
    position: relative;
    padding: 0;
    margin: 0 3px;
}

.categories-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
}

.categories-slider::-webkit-scrollbar {
    display: none;
}

/* Category Card */
.category-card {
    flex: 0 0 150px;
    min-width: 150px;
    height: 120px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #2c3e50;
    background: #fff;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.category-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    text-align: center;
    padding: 16px;
}

.category-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.category-icon {
    color: #7f8c8d;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-count {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #e74c3c;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Slider Navigation */
.categories-slider-prev,
.categories-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.categories-slider-prev {
    left: 10px;
}

.categories-slider-next {
    right: 10px;
}

.categories-slider-prev:hover,
.categories-slider-next:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.categories-slider-prev svg,
.categories-slider-next svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .categories-slider-section {
        padding: 0;
    }
    
    .categories-slider-wrapper {
        padding: 0;
        margin: 0 2px;
    }
    
    .category-card {
        flex: 0 0 130px;
        min-width: 130px;
        height: 100px;
    }
    
    .category-card-content {
        padding: 12px;
        gap: 6px;
    }
    
    .category-icon {
        width: 28px;
        height: 28px;
    }
    
    .category-name {
        font-size: 13px;
    }
    
    .category-count {
        font-size: 10px;
    }
    
    .categories-slider-prev {
        left: 5px;
    }
    
    .categories-slider-next {
        right: 5px;
    }
    
    .categories-slider-prev,
    .categories-slider-next {
        width: 36px;
        height: 36px;
    }
}

/* ========================================
   DARK MODE
   ======================================== */

body.dark-mode .categories-slider-section {
    background: var(--dark-bg-primary);
}

body.dark-mode .category-card {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

body.dark-mode .category-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .category-name {
    color: #e0e0e0;
}

body.dark-mode .category-count {
    color: #fff;
    background: #e74c3c;
}

body.dark-mode .category-icon {
    color: #95a5a6;
}

body.dark-mode .categories-slider-prev,
body.dark-mode .categories-slider-next {
    background: rgba(42, 42, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.dark-mode .categories-slider-prev:hover,
body.dark-mode .categories-slider-next:hover {
    background: rgba(42, 42, 42, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}