/* Mobile Menu Styles - unit-mobile-menu.css */

/* Mobil Menü Dropdown */
.mobile-menu-dropdown {
    margin-bottom: 1rem;
    display: none;
}

.mobile-dropdown-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--selcuk-blue);
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .mobile-dropdown-toggle:hover {
        background: var(--selcuk-blue-hover);
    }

    .mobile-dropdown-toggle i {
        transition: transform 0.3s ease;
    }

    .mobile-dropdown-toggle.active i {
        transform: rotate(-180deg);
    }

/* Menü Container */
.unit-menu-component {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

@media (max-width: 992px) {
    .mobile-menu-dropdown {
        display: block;
    }

    .unit-menu {
        display: none;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        background: white;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

        .unit-menu.show-mobile {
            display: block;
        }

        /* Scroll bar stilleri */
        .unit-menu::-webkit-scrollbar {
            width: 6px;
        }

        .unit-menu::-webkit-scrollbar-track {
            background: #f0f0f0;
        }

        .unit-menu::-webkit-scrollbar-thumb {
            background-color: var(--selcuk-blue);
            border-radius: 3px;
        }

    /* Menu item stilleri */
    .menu-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .menu-header {
        padding: 0;
    }

    .menu-link {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #2c3e50;
        text-decoration: none;
    }

        .menu-link:hover {
            background: rgba(28, 69, 139, 0.05);
        }

    .menu-title {
        font-weight: 500;
    }

    /* Submenu stilleri */
    .submenu {
        background: #f8f9fa;
    }

    .submenu-link {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
        color: #2c3e50;
        text-decoration: none;
        display: block;
        transition: background-color 0.3s ease;
    }

        .submenu-link:hover {
            background: rgba(28, 69, 139, 0.05);
        }

        .submenu-link.active {
            background: rgba(28, 69, 139, 0.1);
            color: var(--selcuk-blue);
        }

    /* Animasyonlar */
    .menu-collapse {
        transition: all 0.3s ease-in-out;
    }

    .menu-icon {
        transition: transform 0.3s ease;
    }

    .menu-collapse.show .menu-icon {
        transform: rotate(-180deg);
    }
}

/* Küçük mobil cihazlar için ek optimizasyonlar */
@media (max-width: 576px) {
    .mobile-dropdown-toggle {
        padding: 0.875rem 1.25rem;
    }

    .menu-link {
        padding: 0.875rem 1.25rem;
    }

    .submenu-link {
        padding: 0.75rem 1.5rem;
    }
}
