/* --- ORTAK MENÜ STİLLERİ --- */
/* Bu dosya tüm sayfalarda kullanılır. Sayfa bazlı menü kodu yazma. */

/* Hamburger butonu rengi CSS değişkeni ile belirlenir.
   Koyu arka plan (index, nukte): varsayılan #fff
   Açık arka plan (temas, izler): :root { --hamburger-color: #000; } */

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 1.5px;
    background: var(--hamburger-color, #fff);
    position: relative;
    transition: 0.3s;
}

.hamburger-line::before,
.hamburger-line::after {
    content: '';
    position: absolute;
    height: 1.5px;
    width: 25px;
    background: var(--hamburger-color, #fff);
}

.hamburger-line::before { top: -8px; }
.hamburger-line::after { top: 8px; }

/* --- YAN PANEL --- */

.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    max-width: 85%;
    height: 100vh;
    background: #000;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.side-drawer.is-open {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 40px;
    right: 5%;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
}

.close-btn:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.drawer-nav ul {
    list-style: none;
    text-align: center;
}

.drawer-nav ul li {
    margin: 25px 0;
}

.drawer-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
    display: block;
    transition: opacity 0.3s;
}

.drawer-nav ul li a:hover,
.drawer-nav ul li a.active {
    opacity: 0.5;
}

/* --- BACKDROP --- */

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width);
}

/* --- MOBİL --- */

@media (max-width: 768px) {
    .close-btn {
        top: 20px;
        font-size: 2.5rem;
    }

    .drawer-nav ul li a {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
}