/* ============================================
   CATEGORY ACCORDION - Mobil Alt Kategori Navigasyonu
   ============================================ */

.category-accordion {
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Ana Dropdown Butonu */
.accordion-main-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: #f8f8f8;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    transition: background 0.2s;
}

.accordion-main-trigger:hover {
    background: #f0f0f0;
}

.accordion-main-trigger i {
    font-size: 14px;
    color: #666;
    transition: transform 0.3s ease;
}

.accordion-main-trigger.active i {
    transform: rotate(180deg);
}

/* Accordion İçerik Container */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 2000px;
    /* Yeterince büyük */
}

/* Üst Başlık (Parent) */
.accordion-parent {
    border-top: 1px solid #eee;
}

.accordion-parent-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.accordion-parent-trigger:hover {
    background: #f9f9f9;
    color: #8b7bd8;
}

.accordion-parent-trigger i {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-parent-trigger.active {
    background: #f5f3ff;
    color: #8b7bd8;
}

.accordion-parent-trigger.active i {
    transform: rotate(180deg);
    color: #8b7bd8;
}

/* Alt Başlıklar (Children) */
.accordion-children {
    max-height: 0;
    overflow: hidden;
    background: #fafafa;
    transition: max-height 0.25s ease;
}

.accordion-children.open {
    max-height: 500px;
}

.accordion-child-item {
    display: block;
    padding: 10px 16px 10px 32px;
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    border-top: 1px solid #f0f0f0;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.accordion-child-item:first-child {
    border-top: none;
}

.accordion-child-item:hover {
    background: #f0edff;
    color: #8b7bd8;
    padding-left: 38px;
}

.accordion-child-item::before {
    content: "•";
    margin-right: 8px;
    color: #bbb;
}

.accordion-child-item:hover::before {
    color: #8b7bd8;
}

/* Desktop'ta gizle, mobilde göster */
@media (min-width: 769px) {
    .category-accordion {
        display: none;
    }

    .subcategory-chips-section {
        display: block;
    }
}

@media (max-width: 768px) {
    .category-accordion {
        display: block;
    }

    .subcategory-chips-section {
        display: none !important;
    }
}