/* Navigation CSS Stilleri
 * Münhasır Döner & Kebap web sitesi için navigasyon stilleri
 * @author: Claude AI
 * @date: 2023
 */

/* Üst Navigasyon Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 55px; /* Header yüksekliğini azalt */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.75rem;
    background-color: rgba(10, 15, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 30;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.top-nav .logo {
    display: flex;
    align-items: center;
}

.top-nav .logo img {
    height: 2.25rem;
    width: 2.25rem;
    border-radius: 9999px;
}

.top-nav .logo span {
    margin-left: 0.5rem;
    font-size: 1.25rem;
    font-family: 'Pacifico', cursive;
    color: #B80000;
    display: none; /* Mobilde metin logoyu gizle */
}

.desktop-menu .menu-item,
.menu-item,
.nav-button,
.nav-icon,
.language-option,
.menu-close {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.top-nav a, 
.top-nav button,
.side-menu a, 
.side-menu button,
.bottom-nav a {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Masaüstü Menu */
.desktop-menu {
    display: none; /* Varsayılan olarak gizli, sadece md breakpoint üzerinde göster */
    gap: 1.5rem;
}

/* Mobil cihazlarda desktop-menu kesinlikle gizli olsun */
@media (max-width: 767px) {
    .desktop-menu {
        display: none !important;
    }
}

/* Sadece masaüstünde göster */
@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }
}

.desktop-menu .menu-item {
    color: #e2e8f0;
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: color 0.2s;
}

.desktop-menu .menu-item:hover,
.desktop-menu .menu-item.active {
    color: #B80000;
}

.desktop-menu .menu-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #B80000;
    transition: width 0.3s ease;
}

.desktop-menu .menu-item:hover::after,
.desktop-menu .menu-item.active::after {
    width: 100%;
}

/* Navigasyon Butonları */
.nav-buttons {
    display: flex;
    gap: 0.25rem;
}

.nav-button {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* Arka plan eklemeyi kaldırdık */
    transition: background-color 0.2s;
    border: none; /* Border'ı kaldırdık */
}

/* Mobilde hamburger menü butonu daha belirgin olsun */
@media (max-width: 767px) {
    #menuBtn {
        width: 40px;
        height: 40px;
        background-color: rgba(200, 161, 101, 0.1);
        border: 1px solid rgba(200, 161, 101, 0.2);
    }
    
    #menuBtn:hover {
        background-color: rgba(200, 161, 101, 0.2);
    }
    
    #menuBtn .nav-icon {
        color: var(--color-primary, #c8a165);
    }
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Hover durumunda hafif arka plan */
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 1.25rem;
}

/* Dil Menüsü */
.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 150px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 999; /* Dil menüsünün üstte görünmesi için z-index ekledik */
}

.language-option {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: #e2e8f0;
    border-radius: 0.25rem;
    width: 100%;
    transition: background-color 0.2s;
    border: none; /* Border'ı kaldırdık */
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

/* Yan Menü */
.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%; /* Daha az genişlik */
    max-width: 280px;
    height: 100vh;
    background-color: rgba(31, 41, 55, 0.98);
    backdrop-filter: blur(10px);
    z-index: 60;
    padding: 1rem;
    transform: translateX(100%); /* Başlangıçta sağda gizli olacak */
    transition: transform 0.3s ease;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Uzun menüler için kaydırma ekledik */
    visibility: visible; /* Görünürlük ekledik */
    box-sizing: border-box;
}

.side-menu.open {
    transform: translateX(0); /* Açıldığında tam görünür olacak */
    visibility: visible;
}

/* Overlay arka plan için */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 59;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-header {
    display: flex;
    justify-content: space-between; /* Başlık ve kapatma butonu için */
    align-items: center;
    margin-bottom: 2rem;
}

.menu-title {
    font-family: 'Pacifico', cursive;
    color: #B80000;
    font-size: 1.5rem;
}

.menu-close {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* Arka planı kaldırdık */
    transition: background-color 0.2s;
    border: none; /* Border'ı kaldırdık */
}

.menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Menü öğeleri arasındaki boşluğu arttırdık */
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    color: #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: none; /* Border'ı kaldırdık */
}

.menu-item:hover,
.menu-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #B80000;
    transform: translateX(5px); /* Hover durumunda hafif sağa kaydırma animasyonu */
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

/* Alt Navigasyon */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 15, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0;
    z-index: 50;
    box-sizing: border-box;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
    padding: 0 0.5rem;
    width: 100%;
    max-width: 100%;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0;
    color: #a0aec0;
    transition: color 0.2s;
    position: relative;
    overflow: hidden;
    border: none; /* Border'ı kaldırdık */
}

.nav-item.active,
.nav-item:hover {
    color: #fff;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: #B80000;
    border-radius: 3px 3px 0 0;
}

.nav-icon {
    margin-bottom: 0.25rem;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 5rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 40;
}

.floating-button {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
}

/* Responsive Ayarlar */
@media (min-width: 768px) {
    .top-nav {
        height: 60px;
        padding: 0 1rem;
    }
    
    .top-nav .logo img {
        height: 2.5rem;
        width: 2.5rem;
    }
    
    .top-nav .logo span {
        display: block; /* Desktop'ta metin logoyu göster */
    }
    
    .nav-buttons {
        gap: 0.5rem;
    }
    
    .nav-button {
        width: 40px;
        height: 40px;
    }
    
    .floating-buttons {
        bottom: 2rem;
        right: 1rem;
        gap: 0.75rem;
    }
    
    .floating-button {
        width: 48px;
        height: 48px;
    }
    
    /* Desktop ekranlarda hamburger menu butonunu gizle */
    #menuBtn {
        display: none;
    }
}

/* Ekstra küçük ekranlar için özel ayarlar */
@media (max-width: 374px) {
    .top-nav {
        padding: 0 0.5rem;
        height: 50px;
    }
    
    .top-nav .logo img {
        height: 2rem;
        width: 2rem;
    }
    
    .nav-button {
        width: 32px;
        height: 32px;
    }
    
    .nav-grid {
        gap: 0.1rem;
    }
    
    .nav-label {
        font-size: 0.65rem;
    }
    
    .floating-button {
        width: 38px;
        height: 38px;
    }
} 