/* ====================================
   ULTRA MODERN CATEGORY SIDEBAR CSS
   ==================================== */

/* Global Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #5e70bf 0%, #000000 100%);
    --secondary-gradient: linear-gradient(135deg, #3f475f 0%, #2d3446 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --danger-gradient: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.2);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ultra Modern Category Panel */
.ultra-modern-category-panel {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: sticky;
    top: 20px;
    z-index: 100;
}

.category-panel-header {
    background: var(--secondary-gradient);
    padding: 16px; /* 24px'den 16px'e */
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.category-panel-header h2 {
    font-size: 16px; /* 22px'den 16px'e */
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* 12px'den 8px'e */
    position: relative;
    z-index: 1;
    margin: 0;


.category-panel-header i {
    font-size: 18px; /* 26px'den 18px'e */
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Special Categories Grid */
.special-categories-grid {
    padding: 12px; /* 16px'den 12px'e */
    display: grid;
    gap: 8px; /* 10px'den 8px'e */
}

.special-category-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px; /* 16px'den 12px'e */
    padding: 10px 12px; /* 14px 16px'den 10px 12px'e */
    display: flex;
    align-items: center;
    gap: 10px; /* 14px'den 10px'a */
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.special-category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.08), transparent);
    transition: left 0.6s;
}

.special-category-item:hover::before {
    left: 100%;
}

.special-category-item:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.special-category-icon {
    width: 38px; /* 48px'den 38px'e */
    height: 38px; /* 48px'den 38px'e */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px; /* 12px'den 10px'a */
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    flex-shrink: 0;
    transition: var(--transition);
}

.special-category-item:hover .special-category-icon {
    transform: rotate(10deg) scale(1.1);
    background: var(--primary-gradient);
}

.special-category-icon i {
    font-size: 16px; /* 22px'den 16px'e */
    color: #667eea;
    transition: var(--transition);
}

.special-category-item:hover .special-category-icon i {
    color: white;
}

.special-category-content {
    flex: 1;
    color: #2d3446;
}

.special-category-title {
    font-size: 13px; /* 15px'den 13px'e */
    font-weight: 600;
    margin-bottom: 2px;
    color: #2d3446;
    transition: var(--transition);
}

.special-category-item:hover .special-category-title {
    color: #667eea;
}

.special-category-arrow {
    width: 26px; /* 32px'den 26px'e */
    height: 26px; /* 32px'den 26px'e */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px; /* 8px'den 6px'e */
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
    font-size: 12px; /* 14px'den 12px'e */
    transition: var(--transition);
}

.special-category-item:hover .special-category-arrow {
    background: var(--primary-gradient);
    color: white;
    transform: translateX(4px);
}

/* Main Categories Section */
.main-categories-section {
    margin-top: 20px; /* 24px'den 20px'e */
    padding: 16px; /* 20px'den 16px'e */
    background: white;
    border-radius: 16px; /* 20px'den 16px'e */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.main-categories-header {
    font-size: 15px; /* 18px'den 15px'e */
    font-weight: 700;
    color: #2d3446;
    margin-bottom: 12px; /* 16px'den 12px'e */
    padding-bottom: 10px; /* 12px'den 10px'a */
    border-bottom: 2px solid #667eea; /* 3px'den 2px'e */
    display: flex;
    align-items: center;
    gap: 8px; /* 10px'dan 8px'e */
}

.main-categories-header i {
    color: #667eea;
    font-size: 16px; /* 20px'den 16px'e */
}

/* Main Category Card */
.main-category-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px; /* 16px'den 12px'e */
    padding: 14px; /* 20px'den 14px'e */
    margin-bottom: 12px; /* 16px'den 12px'e */
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.main-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: var(--transition);
}

.main-category-card:hover::before {
    transform: scaleY(1);
}

.main-category-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

.main-category-header {
    display: flex;
    align-items: center;
    gap: 10px; /* 12px'den 10px'a */
    margin-bottom: 10px; /* 14px'den 10px'a */
    padding-bottom: 10px; /* 12px'den 10px'a */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-category-icon {
    width: 34px; /* 40px'den 34px'e */
    height: 34px; /* 40px'den 34px'e */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* 10px'dan 8px'e */
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.main-category-icon img {
    width: 26px; /* 32px'den 26px'e */
    height: 26px; /* 32px'den 26px'e */
    object-fit: contain;
    transition: all 0.4s ease;
}

.main-category-card:hover .main-category-icon img {
    transform: scale(1.15) rotate(-5deg);
}

.main-category-name {
    font-size: 14px; /* 16px'den 14px'e */
    font-weight: 700;
    color: #2d3446;
    flex: 1;
}

/* Subcategories Grid */
.subcategories-grid {
    display: grid;
    gap: 6px; /* 8px'den 6px'e */
}

.subcategory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px; /* 10px 14px'den 8px 12px'e */
    background: rgba(102, 126, 234, 0.03);
    border-radius: 8px; /* 10px'dan 8px'e */
    text-decoration: none;
    color: #555;
    font-size: 13px; /* 14px'den 13px'e */
    transition: var(--transition);
    border: 1px solid transparent;
}

.subcategory-item:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateX(6px);
    border-color: rgba(102, 126, 234, 0.2);
    text-decoration: none;
}

.subcategory-count {
    font-size: 11px; /* 12px'den 11px'e */
    font-weight: 600;
    padding: 3px 8px; /* 4px 10px'dan 3px 8px'e */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px; /* 12px'den 10px'a */
    color: #667eea;
    transition: var(--transition);
}

.subcategory-item:hover .subcategory-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Alt kategorileri gizleme - AJAX'sız çözüm */
.subcategory-item.hidden-item {
    display: none;
    opacity: 0;
    transform: translateX(-10px);
}

.subcategory-item.visible-item {
    display: flex;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

/* Animasyonlu gösterim */
.subcategory-item.show-animated {
    animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animasyonlu gizleme */
.subcategory-item.hide-animated {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-10px);
    }
}

/* Show More Button */
.show-more-btn {
    margin-top: 10px; /* 12px'den 10px'a */
    padding: 8px; /* 10px'dan 8px'e */
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: none;
    border-radius: 8px; /* 10px'dan 8px'e */
    color: #667eea;
    font-weight: 600;
    font-size: 12px; /* Yeni eklendi */
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* 8px'den 6px'e */
}

.show-more-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.02);
}

.show-more-btn i {
    font-size: 12px;
    transition: var(--transition);
}

.show-more-btn:hover i {
    transform: translateY(3px);
}

/* Buton durumları */
.show-more-btn.expanded {
    background: linear-gradient(135deg, rgba(235, 51, 73, 0.08) 0%, rgba(244, 92, 67, 0.08) 100%);
    color: #eb3349;
}

.show-more-btn.expanded:hover {
    background: var(--danger-gradient);
    color: white;
}

.show-more-btn.expanded i {
    transform: rotate(180deg);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .ultra-modern-category-panel {
        position: static;
        margin-bottom: 20px;
    }

    .category-panel-header h2 {
        font-size: 14px;
    }

    .special-category-item {
        padding: 8px 10px;
    }

    .special-category-icon {
        width: 32px;
        height: 32px;
    }

    .special-category-icon i {
        font-size: 14px;
    }

    .special-category-title {
        font-size: 12px;
    }

    .main-category-card {
        padding: 12px;
    }

    .main-category-name {
        font-size: 13px;
    }

    .subcategory-item {
        font-size: 12px;
        padding: 6px 10px;
    }

    .show-more-btn {
        font-size: 11px;
        padding: 6px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 992px) {
    .special-category-title {
        font-size: 12px;
    }

    .main-category-name {
        font-size: 13px;
    }
}

/* Hide on print */
@media print {
    .ultra-modern-category-panel {
        display: none;
    }
}