﻿
.menu {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-left: auto;
}

    .menu a {
        position: relative;
        margin-right: 28px;
        color: var(--green-dark);
        text-decoration: none;
        font-weight: 500;
        white-space: nowrap;
        transition: color 0.3s ease;
    }

        .menu a::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -6px;
            width: 0;
            height: 2px;
            background: var(--green-soft);
            transform: translateX(-50%);
            transition: width .3s ease;
        }

        .menu a:hover::after,
        .menu a.active::after {
            width: 100%;
        }

        .menu a.active {
            color: var(--green-dark) !important;
            background: transparent !important;
            font-weight: 700;
        }

.dropdown {
    position: relative;
}

    .dropdown > a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    z-index: 9999;
    padding: 10px 0;
}

    .dropdown-content a {
        display: block;
        padding: 12px 20px;
        margin: 0;
        color: #4a5568 !important;
        border-bottom: 1px solid #f7fafc;
    }

        .dropdown-content a:hover {
            background: #f8fafc;
            color: var(--green-soft) !important;
        }

@media (min-width: 992px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }

    .menu-toggle-custom {
        display: none; /* Masaüstünde butonu gizle */
    }
}


@media (max-width: 991px) {
    .menu {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding-top: 100px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 99999;
    }

        .menu.open {
            transform: translateX(0);
        }

        .menu > a,
        .menu .dropdown > a {
            margin: 0;
            padding: 18px 30px;
            font-size: 18px;
            color: #1e293b !important;
            text-align: left;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #f1f5f9;
            -webkit-tap-highlight-color: transparent;
        }

        .menu a.active {
            color: #fb923c !important;
            background: #fffaf5 !important;
            border-left: 4px solid #fb923c;
        }

    .dropdown-content {
        display: none;
        position: static;
        width: 100%;
        background: #f8fafc !important;
        box-shadow: none;
    }

        .dropdown-content.show {
            display: block;
        }

        .dropdown-content a {
            padding: 14px 45px !important;
            font-size: 15px;
            color: #475569 !important;
        }

    .menu-toggle-custom {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 35px;
        right: 10px;
        width: 45px;
        height: 45px;
        background: white; /* Arka planı belirginleştirir */
        border: none;
        z-index: 100000;
        cursor: pointer;
    }

        /* Varsayılan Hamburger İkonu */
        .menu-toggle-custom::before {
            content: "☰";
            font-size: 22px;
            color: orange;
        }

    /* Menü Açıkken Görünüm Değişimi */
    .menu.open ~ .menu-toggle-custom::before {
        content: "✕";
        color: #fb923c;
        font-weight: bold;
    }

    /* Mobilde alt çizgileri tamamen temizle */
    .menu a::after {
        display: none !important;
    }
}
