/* assets/css/kategori.css */
/* Kategori Menü Stilleri */

.kategori-menu-item {
    position: relative;
}

.kategori-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 800px;
    max-width: 1000px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 20px;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    z-index: 1000;
    border-top: 3px solid #ff6b6b;
}

.menu-item-has-children:hover .kategori-mega-menu {
    display: grid;
}

.kategori-menu-col {
    list-style: none;
    padding: 0;
    border-right: 1px solid #f0f0f0;
    padding-right: 15px;
}

.kategori-menu-col:last-child {
    border-right: none;
}

.kategori-baslik {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.kategori-baslik:hover {
    color: #ff6b6b;
    border-bottom-color: #ff6b6b;
}

.kategori-baslik i, 
.kategori-baslik img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.kategori-count {
    margin-left: auto;
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.alt-kategori-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alt-kategori-list li {
    margin-bottom: 8px;
}

.alt-kategori-list li a {
    display: block;
    padding: 5px 0;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.alt-kategori-list li a:before {
    content: "›";
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-size: 16px;
    line-height: 1;
    opacity: 0;
    transition: all 0.3s ease;
}

.alt-kategori-list li a:hover {
    color: #ff6b6b;
    padding-left: 20px;
}

.alt-kategori-list li a:hover:before {
    opacity: 1;
    left: 5px;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .kategori-mega-menu {
        min-width: 600px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .kategori-mega-menu {
        min-width: 100%;
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        position: static;
        box-shadow: none;
        display: none;
    }
    
    .menu-item-has-children.active .kategori-mega-menu {
        display: grid;
    }
    
    .kategori-menu-col {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .kategori-mega-menu {
        grid-template-columns: 1fr;
    }
}


/* assets/css/kategori.css - MARKA MENÜSÜ EKLENTİLERİ */

.marka-menu-item {
    position: relative;
}

.marka-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 900px;
    max-width: 1100px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 20px 20px 10px 20px;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    z-index: 1000;
    border-top: 3px solid #ff6b6b;
}

.menu-item-has-children:hover .marka-mega-menu {
    display: grid;
}

.marka-menu-col {
    list-style: none;
    padding: 0;
    border-right: 1px solid #f0f0f0;
    padding-right: 15px;
}

.marka-menu-col:last-child {
    border-right: none;
}

.marka-menu-col .marka-menu-item {
    margin-bottom: 15px;
}

.marka-baslik {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.marka-baslik:hover {
    color: #ff6b6b;
    border-bottom-color: #ff6b6b;
}

.marka-baslik i,
.marka-baslik img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.marka-count {
    margin-left: auto;
    font-size: 11px;
    color: #999;
    font-weight: normal;
}

.model-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.model-list li {
    margin-bottom: 6px;
}

.model-list li a {
    display: block;
    padding: 3px 0;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-list li a:before {
    content: "›";
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    transition: all 0.3s ease;
}

.model-list li a:hover {
    color: #ff6b6b;
    padding-left: 17px;
}

.model-list li a:hover:before {
    opacity: 1;
    left: 2px;
}

.model-yil {
    color: #999;
    font-size: 10px;
    margin-left: 4px;
}

.model-toggle-container {
    margin-top: 8px;
}

.model-toggle-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.model-toggle-btn:hover {
    color: #ff5252;
}

.model-toggle-btn i {
    font-size: 10px;
}

.marka-menu-footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: 15px 0 5px 0;
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.btn-marka-tumu {
    display: inline-block;
    padding: 8px 25px;
    background: #f8f8f8;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-marka-tumu:hover {
    background: #ff6b6b;
    color: #fff;
}

.btn-marka-tumu i {
    margin-left: 5px;
    font-size: 11px;
}

.no-data {
    color: #999;
    font-size: 12px;
    font-style: italic;
    padding: 5px 0;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .marka-mega-menu {
        min-width: 700px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .marka-mega-menu {
        min-width: 100%;
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        position: static;
        box-shadow: none;
        display: none;
    }
    
    .menu-item-has-children.active .marka-mega-menu {
        display: grid;
    }
    
    .marka-menu-col {
        border-right: none;
        padding-right: 0;
    }
    
    .model-list li a {
        white-space: normal;
    }
}

@media (max-width: 576px) {
    .marka-mega-menu {
        grid-template-columns: 1fr;
    }
}

/* ========== MODERN ALT KATEGORİ DROPDOWN ========== */
.alt-kategori-wrapper {
    position: relative;
}

/* BUTON - TEK SATIR GARANTİLİ, SAYISIZ */
.more-dropdown-trigger {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    color: white !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 12px;
    margin-top: 8px;
    border-radius: 30px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.2);
    /* TEK SATIR GARANTİSİ */
    white-space: nowrap;
    min-width: auto;
    width: auto;
}

.more-dropdown-trigger .more-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    /* TEK SATIR */
    white-space: nowrap;
    display: inline-block;
}

.more-dropdown-trigger i:first-child {
    font-size: 10px;
}

.more-dropdown-trigger i:last-child {
    font-size: 9px;
    transition: transform 0.25s ease;
}

.more-dropdown-trigger:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.more-dropdown-trigger.active i:last-child {
    transform: rotate(180deg);
}

/* Responsive font küçültme */
@media (max-width: 1400px) {
    .more-dropdown-trigger {
        padding: 4px 10px;
    }
    .more-dropdown-trigger .more-text {
        font-size: 10px;
    }
}

@media (max-width: 1200px) {
    .more-dropdown-trigger {
        padding: 4px 8px;
    }
    .more-dropdown-trigger .more-text {
        font-size: 9px;
    }
}

@media (max-width: 992px) {
    .more-dropdown-trigger .more-text {
        font-size: 8.5px;
    }
}

/* DROPDOWN MENÜ */
.more-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 240px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.02);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow: hidden;
}

.more-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.more-dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.more-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.more-dropdown-menu li a:hover {
    background: #fff7ed;
    color: #f97316;
    border-left-color: #f97316;
    padding-left: 24px;
}

.more-dropdown-menu li a i {
    width: 20px;
    color: #9ca3af;
    font-size: 12px;
    transition: all 0.2s;
}

.more-dropdown-menu li a:hover i {
    color: #f97316;
}

/* Dropdown ok işareti */
.more-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Daha az göster butonu için stil */
.show-less-btn {
    border-top: 1px solid #f3f4f6;
    margin-top: 6px;
    padding-top: 8px;
}

/* Responsive düzenleme */
@media (max-width: 1200px) {
    .more-dropdown-menu {
        min-width: 220px;
    }
}

@media (max-width: 992px) {
    .more-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: 90%;
        max-width: 320px;
    }
    
    .more-dropdown-menu.active {
        transform: translateX(-50%) translateY(0);
    }
    
    .more-dropdown-menu::before {
        left: 50%;
        margin-left: -6px;
    }
}