/**
 * Almira Menu CSS - Premium Dark Theme
 */

:root {
    --am-bg-dark: #0d0d0d;
    --am-bg-alt: #1a1a1a;
    --am-accent: #a02a75;
    --am-text: #ffffff;
    --am-text-muted: #999999;
    --am-border: rgba(255, 255, 255, 0.08);
}

/* Tam Ekran Overlay */
.am-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.am-overlay.am-acik {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.am-wrapper {
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--am-bg-dark);
    color: var(--am-text);
    position: relative;
    z-index: 9999;
}

/* Tam Ekran Menü Stil (Mobil) */
.am-wrapper.am-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    will-change: transform;
    box-shadow: none;
}

.am-wrapper.am-fullscreen.am-acik {
    transform: translateX(0);
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Menü Başlık (Üst Kapatma ve Arama Alanı) */
.am-header {
    background-color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #0d0d0d;
    position: sticky !important;
    top: 0 !important;
    z-index: 10001;
    width: 100%;
    box-shadow: none;
    border-bottom: 1px solid #eee;
}

.am-toggle {
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 12px 0;
    background-color: #f8b10b;
    color: #ffffff;
    transition: opacity 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.am-toggle:hover {
    opacity: 0.9;
}

.am-toggle svg {
    display: none;
}

/* Arama Kutusu - Gizli */
.am-search {
    display: none !important;
}

/* Menü Ana Kapsayıcısı */
.am-container {
    padding: 0;
}

/* Menü Listesi */
.am-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.am-menu li {
    padding: 0;
    margin: 0;
    position: relative;
    border-bottom: 1px solid var(--am-border);
}

/* Zebra Deseni Uygulaması */
.am-menu > li:nth-child(odd) {
    background-color: var(--am-bg-dark);
}
.am-menu > li:nth-child(even) {
    background-color: var(--am-bg-alt);
}

.am-menu li a {
    display: block;
    padding: 18px 20px;
    color: var(--am-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
    /* Ok ikonuna yer bırakmak için sağdan boşluk */
    padding-right: 50px; 
}

.am-menu > li > a {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Açılır Menü Ok Butonu (YENİ) */
.am-dropdown-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 55px;
    height: 55px; /* a etiketinin yüksekliğiyle yaklaşık aynı */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--am-text);
    border-left: 1px solid var(--am-border);
    transition: background-color 0.3s, transform 0.3s;
}

.am-dropdown-toggle svg {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Alt menü açıkken ok aşağı döner ve arkaplanı mor olur */
.am-menu li.am-acik > .am-dropdown-toggle {
    background-color: var(--am-accent);
}

.am-menu li.am-acik > .am-dropdown-toggle svg {
    transform: rotate(180deg);
}

/* Alt Menüler */
.am-menu .am-submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(0,0,0,0.2); /* Üst öğeden biraz daha koyu gösterir */
}

.am-menu li.am-acik > .am-submenu {
    display: block;
    animation: am-slide-down 0.3s ease forwards;
}

@keyframes am-slide-down {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.am-menu .am-submenu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.am-menu .am-submenu li a {
    padding-left: 30px;
    color: #e0e0e0;
    font-size: 15px;
    font-weight: 400;
    text-transform: none;
}

/* Alt menülerin zebra deseni */
.am-menu .am-submenu li:nth-child(odd) {
    background-color: rgba(255,255,255,0.02);
}
.am-menu .am-submenu li:nth-child(even) {
    background-color: transparent;
}

.am-menu .am-submenu .am-submenu li a {
    padding-left: 45px;
}

/* Menü Açma Düğmesi (Sayfa İçi Düğme) */
.am-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--am-accent);
    color: #fff;
    padding: 14px 25px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.am-button:hover {
    opacity: 0.85;
}

.am-hidden {
    display: none;
}

/* Masaüstü için özel menü tasarımı */
@media (min-width: 769px) {
    .am-header {
        flex-direction: row;
        padding: 20px;
    }
    
    .am-search {
        max-width: 300px;
    }

    .am-wrapper.am-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 350px;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        box-shadow: 5px 0 25px rgba(0,0,0,0.5);
    }
    
    .am-wrapper.am-sidebar.am-acik {
        transform: translateX(0);
        position: fixed;
    }
    
    .am-body-open {
        margin-left: 350px;
        transition: margin-left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
}