﻿/* Top Navigation */
.top-navigation {
    width: 100%;
    height: 60px;
    background: #F4793D;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 16px;
    padding-left: 16px;
    padding-top: 20px;
    padding-bottom: 16px;
    box-sizing: border-box;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-logo {
    height: 24px;
}

.logo-text {
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

/* User Section */
.user-section {
    position: relative;
}

.user-profile-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 4px 8px 4px 4px;
    gap: 6px;
    cursor: pointer;
    width: max-content;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: #ffffff;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #577fb8;
}

.avatar-text {
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.username-text {
    color: #0e121b;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.006em;
}

.dropdown-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: invert(36%) sepia(8%) saturate(749%) hue-rotate(182deg) brightness(91%) contrast(89%); /* This filter will create #525866 color */
}

/* Main Menu */
.main-menu {
    min-height: 36px;
    height: auto;
    background: #F4793D;
    display: flex;
    align-items: flex-start;
    padding: 0px;
    padding-right: 16px;
    padding-left: 16px;
    padding-bottom: 20px;
    overflow: hidden;
    padding-top: 16px;
}

.menu-categories {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    width: calc(100%); /* Ekstra boşluk bırakmak için */
    overflow: hidden;
}

.hidden-menu-items {
    display: none;
}

/* All Categories Button */
.all-categories-btn {
    display: flex;
    align-items: center;
    background: inherit;
    color: white;
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
    flex-shrink: 0;
}

    .all-categories-btn .menu-icon {
        filter: brightness(0) invert(1);
    }

    .all-categories-btn span {
        font-family: "Inter", sans-serif;
        font-size: 14px;
        font-weight: 500;
    }

    .all-categories-btn .arrow-icon {
        transform: rotate(180deg);
        transition: transform 0.2s ease;
        margin-left: 4px;
    }

    .all-categories-btn.active {
        background: #ffffff;
        color: black;
    }

        .all-categories-btn.active .menu-icon {
            filter: none;
        }

        .all-categories-btn.active .arrow-icon {
            transform: rotate(0deg);
        }

/* Arrow Icon Styles */
.arrow-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.arrow-icon-circled {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 2px;
    background-color: white;
    border-radius: 50%;
}

    .arrow-icon-circled img {
        width: 18px;
        height: 18px;
        filter: invert(36%) sepia(8%) saturate(749%) hue-rotate(182deg) brightness(91%) contrast(89%);
    }

/* Menu Item */
.menu-item {
    position: relative;
    flex-shrink: 0;
    min-width: fit-content;
    width: auto;
}

    .menu-item.active .menu-link {
        background: #ffffff;
        color: #0e121b;
        border-radius: 8px 8px 0 0;
        box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
    }

    .menu-item.active .menu-text {
        color: #0e121b;
    }

    .menu-item.active .arrow-icon {
        filter: brightness(0) !important;
        transform: rotate(180deg);
    }

.menu-link {
    display: flex;
    align-items: center;
    margin-right: 8px;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    width: auto;
}


    .menu-link .arrow-icon {
        margin-left: 4px;
        filter: brightness(0) invert(1);
        transition: transform 0.2s ease, filter 0.2s ease;
    }

        .menu-link .arrow-icon.expanded {
            transform: rotate(180deg);
        }

.menu-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.menu-text {
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 142.857% */
    letter-spacing: -0.084px;
    color: #ffffff;
}

/* All Categories Menu */
.all-categories-menu,
.specific-category-menu {
    position: absolute;
    top: 111px;
    background: #ffffff;
    border-radius: 0 16px 16px 16px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
    max-width: 90%;
    overflow: visible; /* Ensure dividers can extend outside the container */
    margin: 0;
    padding: 0;
    min-width: 200px; /* Ensure menu has a minimum width */
}

.specific-menu-content .menu-category {
    display: none !important;
}

    .specific-menu-content .menu-category.active {
        display: block !important;
    }

/* When menu is opened from a menu item, adjust the top position to connect with the menu item */
.menu-item.active + #allCategoriesMenu,
.menu-item.active ~ #allCategoriesMenu,
.menu-item.active + #specificCategoryMenu,
.menu-item.active ~ #specificCategoryMenu {
    top: 111px; /* Slightly adjust to create a seamless connection */
    border-top: none;
}

/* 1440px'den küçük ekranlar için padding ayarlaması */
@media (max-width: 1440px) {
    .all-categories-menu,
    .specific-category-menu {
        left: 24px;
        right: 24px;
        width: calc(100% - 48px); /* 24px sol + 24px sağ padding */
    }
}

/* Show/Hide All Categories Menu */
.menu-item:hover .all-categories-menu,
.all-categories-menu:hover {
    display: block;
}

.menu-container {
    padding: 0;
}

.menu-header {
    padding: 0 0 16px 0;
    border-bottom: 1px solid #e1e4ea;
    margin-bottom: 16px;
}

.menu-title {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    color: #0e121b;
    margin: 0;
}

/* Menu Category Styles */
.menu-category,
.menu-category-original,
.menu-category-specific {
    min-height: 36px;
    display: block;
    padding: 0 16px;
    box-sizing: border-box;
}

    .menu-category.active .category-header {
        background: #f6f8fa !important;
        border-radius: 8px 8px 0 0 !important;
    }

.category-header {
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 8px;
    border-radius: 8px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 36px;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
}

    .category-header:hover {
        background: #f6f8fa !important;
    }

.category-title {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #525866;
    flex-grow: 1;
}

/* Hover ve active durumunda category-title rengi değişimi */
.category-header:hover .category-title,
.menu-category.active > .category-header .category-title {
    color: #0e121b;
}

/* Submenu Styles */
.submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    margin-top: 0;
    display: flex;
    flex-direction: column;
}

.menu-category.active > .submenu,
.submenu-item.active > .submenu {
    max-height: 1500px;
    opacity: 1;
}

.submenu-item {
    position: relative;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

    .menu-category.active .submenu-item,
    .submenu-item.active > .submenu .submenu-item {
        transform: translateY(0);
        opacity: 1;
    }

        /* Add transition delays for each submenu item */
        .menu-category.active .submenu-item:nth-child(1),
        .submenu-item.active > .submenu .submenu-item:nth-child(1) {
            transition-delay: 0.1s;
        }

        .menu-category.active .submenu-item:nth-child(2),
        .submenu-item.active > .submenu .submenu-item:nth-child(2) {
            transition-delay: 0.15s;
        }

        .menu-category.active .submenu-item:nth-child(3),
        .submenu-item.active > .submenu .submenu-item:nth-child(3) {
            transition-delay: 0.2s;
        }

        .menu-category.active .submenu-item:nth-child(4),
        .submenu-item.active > .submenu .submenu-item:nth-child(4) {
            transition-delay: 0.25s;
        }

        .menu-category.active .submenu-item:nth-child(5),
        .submenu-item.active > .submenu .submenu-item:nth-child(5) {
            transition-delay: 0.3s;
        }

.category-header .arrow-icon,
.submenu-link .arrow-icon {
    transition: transform 0.3s ease;
}

.menu-category.active > .category-header .arrow-icon,
.submenu-item.active > .submenu-link .arrow-icon {
    transform: rotate(180deg);
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 8px;
    color: #525866;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .submenu-link > div {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .submenu-link:hover {
        color: #0e121b;
    }

.submenu-item.active > .submenu-link {
    color: #0e121b;
}

/* Submenu depth styles */
.sub-menu-depth-0 {
    background: #ffffff;
}

    .sub-menu-depth-0.active {
        background: #f6f8fa;
    }

.sub-menu-depth-1 {
    background: #f6f8fa;
}

    .sub-menu-depth-1.active {
        background: #e1e4ea;
    }

.sub-menu-depth-2 {
    text-indent: 8px;
    background: #e1e4ea;
}

    .sub-menu-depth-2.active {
        background: #d1d2d8;
    }

.sub-menu-depth-3 {
    text-indent: 16px;
    background: #d1d2d8;
}

.submenu-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e1e4ea;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
}

    .user-profile-dropdown.show {
        display: block;
        padding: 10px;
        box-sizing: border-box;
    }

    .user-profile-dropdown > div {
        border-radius: 8px;
        padding: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .user-profile-dropdown > div:hover {
            background: #f5f7fa;
        }

    .user-profile-dropdown span {
        color: #525866;
        font-family: "Inter", sans-serif;
        font-size: 14px;
        font-weight: 500;
    }

        .user-profile-dropdown span:hover {
            color: black;
        }

    .user-profile-dropdown .menu-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .user-profile-dropdown a {
        color: #525866;
        text-decoration: none;
        font-family: "Inter", sans-serif;
        font-size: 14px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

        .user-profile-dropdown a:hover {
            color: #0e121b;
            text-decoration: none;
        }

    .user-profile-dropdown hr {
        margin: 8px 0;
        border: none;
        border-top: 1px solid #e1e4ea;
    }

/* Column-based Layout for Menu */
.column-container {
    display: flex;
    width: 100%;
    position: relative;
    overflow: visible; /* Ensure dividers can extend outside the container */
}

.menu-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    position: relative;
    padding: 16px 0;
    min-width: 200px; /* Minimum genişlik değeri */
}

    /* Son çocuk olmayan sütunlara sağ kenara border ekle */
    .menu-column:not(:last-child) {
        border-right: 1px solid #e1e4ea;
    }

/* Hide original menu items container */
.original-menu-items,
.specific-menu-items {
    display: none !important;
}

/* Ensure menu content has proper spacing */
.menu-content,
.specific-menu-content {
    padding: 0;
    margin: 0;
    overflow: visible; /* Ensure dividers can extend outside the container */
}

/* Hide the default column dividers */
.menu-column::after {
    display: none;
}

/* Material Icons */
.material-icons {
    display: none;
}

/* Menu Item Link Styles */
.menu-item-link,
.category-link,
.submenu-item-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 38px;
    z-index: 1;
    cursor: pointer;
}

.menu-category-original,
.menu-category {
    position: relative;
}

    /* Hover styles for submenu items */
    .menu-category .category-header:hover {
        background-color: #f5f7fa;
    }

.submenu-item:hover > .submenu-link {
    background-color: #f5f7fa;
}

/* Ensure smooth transitions for hover effects */
.menu-category .category-header,
.submenu-item .submenu-link {
    transition: background-color 0.2s ease;
}

/* Make sure submenu is visible on hover */
.menu-category:hover > .submenu,
.submenu-item:hover > .submenu {
    display: block;
}

/* Ensure submenu is visible when parent is active */
.menu-category.active > .submenu,
.submenu-item.active > .submenu {
    display: block;
}

.right-to-left-menu {
    transform: translateX(-100%) !important;
    border-radius: 16px 0px 16px 16px !important;
}