﻿
.menu {
    display: flex;
    align-items: center;
    font-size:13px;
}

.menu a {
    position: relative;
    margin-left: 28px;
    color: #3d4721;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #fb923c;
    transform: translateX(-50%);
    transition: width .3s ease;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.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: #0f172a;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    z-index: 9999;
}

.dropdown-content a {
    display: block;
    padding: 14px 18px;
    margin: 0;
    color: #cbd5e1;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: left;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content .item-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #f7941d;
}

.dropdown-content .item-desc {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #cbd5e1;
}

.dropdown-content a:hover {
    background: rgba(255,255,255,.05);
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #0f172a;
    z-index: 10001;
}

@media (max-width: 991px) {

    .menu.open ~ .menu-toggle {
        position: fixed;
        top: 60px;
        right: 16px;
        color:#fff;
    }

    .menu-toggle {
        display: block;
        position: relative;
        font-size: 26px;
        background: none;
        border: none;
        cursor: pointer;
        color: #0f172a;
    }

    /* Menü açıkken ☰ gizle */
    .menu.open ~ .menu-toggle {
        color: transparent;
    }

        /* ✕ ekle */
        .menu.open ~ .menu-toggle::after {
            content: "✕";
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            color: #fb923c;
        }

    .menu {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        background: #0b1d33;
        display: flex;
        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: 9999;
    }

        .menu.open {
            transform: translateX(0);
        }

        .menu > a,
        .menu .dropdown > a {
            margin: 0;
            padding: 15px 30px;
            font-size: 18px;
            color: #fff;
            text-align: left;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        display: none;
        position: static;
        width: 100%;
        background: #08162a;
        box-shadow: none;
    }

        .dropdown-content.show {
            display: block;
        }

        .dropdown-content a {
            padding: 12px 45px;
            font-size: 15px;
            color: #cbd5e1;
            border-bottom: 1px solid rgba(255,255,255,0.03);
        }
}

.menu a.active {
    color: #fb923c;
}

.menu a.active::after {
    width: 100%;
}

@media (max-width: 991px) {
    .menu a::after {
        display: none;
    }

    .menu a.active {
        color: #fb923c;
        background: rgba(251,146,60,0.08);
    }
}

