/* Shared Navigation Styles */
/* Include this CSS in all pages for consistent header/nav appearance */

:root {
    --primary-gold: #B78F38;
    --secondary-gold: #9A7830;
    --light-gold: #f5edd8;
    --dark-gold: #8B6914;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-bg: #f9fafb;
}

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 100px;
    z-index: 1001;
    background: var(--white);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 5px;
}

.lang-toggle button {
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 500;
}

.lang-toggle button.active {
    background: var(--primary-gold);
    color: white;
}

[dir="rtl"] .lang-toggle {
    left: 100px;
    right: auto;
    flex-direction: row-reverse;
}

/* Navigation */
nav#navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav#navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-gold);
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 1002;
    padding: 10px;
}

/* Mobile Slide-out Menu */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 2000;
    padding: 6rem 1.5rem 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    align-items: flex-start;
}

.mobile-menu.active {
    right: 0;
}

[dir="rtl"] .mobile-menu {
    right: auto;
    left: -320px;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: flex-end;
}

[dir="rtl"] .mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    font-size: 1.15rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    padding: 1rem 0;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu a:hover {
    color: var(--primary-gold);
    padding-left: 10px;
}

[dir="rtl"] .mobile-menu a:hover {
    padding-left: 0;
    padding-right: 10px;
}

/* Auto-flip directional icons in RTL */
[dir="rtl"] .mobile-menu a i {
    transform: rotate(180deg);
}

/* Mobile Lang Toggle */
.mobile-lang-toggle {
    display: flex;
    background: var(--gray-bg);
    padding: 5px;
    border-radius: 12px;
    margin-top: auto;
    width: 100%;
    gap: 5px;
}

.mobile-lang-toggle button {
    flex: 1;
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    color: var(--text-light);
}

.mobile-lang-toggle button.active {
    background: white;
    color: var(--primary-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    color: var(--text-dark);
}

[dir="rtl"] .mobile-menu-close {
    right: auto;
    left: 25px;
}

.mobile-menu-close:hover {
    background: var(--gray-bg);
    color: var(--primary-gold);
}

/* Responsive - Hide desktop nav, show mobile toggle */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .lang-toggle {
        display: none !important;
    }
}
