/* Navbar Component Styles */

:root {
    --brand-yellow: #F4BC00;
    --brand-yellow-dark: #F4BC00;
    --brand-black: #111827;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --bg-main: #FFF9EC;
    --bg-soft: #F7F1E4;
    --bg-card: #FFFFFF;
    --border-soft: #E8DCC2;
}

/* --- Custom Brand Styles --- */
.bee-yellow {
    color: var(--brand-yellow-dark);
}
.bg-bee-yellow {
    background-color: var(--brand-yellow);
}
.border-bee-yellow {
    border-color: var(--brand-yellow);
}
.glow-yellow {
    box-shadow: 0 10px 24px rgba(244, 188, 0, 0.18);
}

/* --- Glass Effect & Layout (Matching User's Computed Styles) --- */
.nav-glass {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    
    /* Flexbox Layout explicitly defined */
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    /* Font settings */
    font-family: 'Cairo', 'Inter', sans-serif;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}

/* --- Logo --- */
.logo-img {
    width: 200px;
    height: auto;
    object-fit: contain;
    display: block; /* Ensure it behaves correctly */
}

.nav-logo-group {
    flex-shrink: 0;
}

/* --- Navigation Links --- */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    padding-bottom: 8px;
    text-decoration: none;
    display: inline-block;
    color: #111827; /* text-gray-900 */
    font-weight: 700; /* font-bold */
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-yellow), var(--brand-yellow-dark));
    transition: all 0.4s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}
.nav-link:hover {
    color: var(--brand-yellow-dark);
    transform: translateY(-2px);
}
.nav-link:hover::after {
    width: 100%;
}

.nav-beeorder-btn {
    background: #FFF3BF;
    color: var(--brand-black);
    border: 1px solid #F4BC00;
    box-shadow: 0 6px 16px rgba(244, 188, 0, 0.1);
}

.nav-beeorder-btn:hover {
    background: #FFE082;
    border-color: var(--brand-yellow-dark);
    box-shadow: 0 10px 20px rgba(244, 188, 0, 0.16);
    transform: translateY(-1px);
}

.nav-mobile-links {
    text-align: start;
}

html[dir="ltr"] .nav-home-link {
    margin-left: 0 !important;
    margin-right: 1.5rem !important;
}

html[dir="ltr"] .logo-img {
    margin-left: 20px;
    margin-right: 0;
}

/* --- Tailwind Utilities Replacements --- */

/* Layout & Positioning */
.fixed { position: fixed; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.w-full { width: 100%; }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.relative { position: relative; }

/* Spacing */
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.p-2 { padding: 0.5rem; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-4 { padding-top: 1rem; }
.ml-6 { margin-left: 1.5rem; }

/* Flexbox */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.flex-col { flex-direction: column; }

/* Visibility */
.hidden { display: none; }

/* Colors */
.text-black { color: black; }
.text-gray-900 { color: #111827; }
.bg-white\/15 { background-color: rgba(255, 255, 255, 0.15); }

/* Borders */
.rounded-lg { border-radius: 0.5rem; }
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-bee-yellow\/20 { border-color: rgba(244, 188, 0, 0.2); }

/* Sizing */
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }

/* Typography */
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1.25rem; }

/* Effects & Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.cursor-pointer { cursor: pointer; }

/* Hover States */
.hover\:text-yellow-500:hover { color: var(--brand-yellow-dark); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:bg-yellow-50:hover { background-color: #FFF3BF; }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }
.hover\:border-bee-yellow\/40:hover { border-color: rgba(244, 188, 0, 0.4); }
.hover\:scale-105:hover { transform: scale(1.05); }

/* Space Utilities (RTL support assumed for margin-right) */
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-right: 0.5rem; margin-left: 0; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-right: 0.75rem; margin-left: 0; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-right: 1rem; margin-left: 0; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }

/* Media Queries */
@media (min-width: 640px) { /* sm */
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
    .sm\:px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
    .sm\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
    .sm\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .sm\:space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-right: 0.75rem; margin-left: 0; }
    .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 768px) { /* md */
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
}

@media (min-width: 1024px) { /* lg */
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .lg\:px-4 { padding-left: 1rem; padding-right: 1rem; }
    .lg\:space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-right: 1.5rem; margin-left: 0; }
    .lg\:ml-8 { margin-left: 2rem; }
    .lg\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .lg\:mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
    .lg\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .lg\:px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
}

/* Specific Fixes for Language Selector */
#language-selector {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: left 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-left: 2.5rem;
    margin-inline: 0.75rem;
    max-width: calc(100% - 1.5rem);
}

#mobile-language-selector {
    margin-inline: 0.75rem;
    max-width: calc(100% - 1.5rem);
}

html[dir="ltr"] #language-selector {
    background-position: right 0.5rem center;
    padding-left: 0.75rem;
    padding-right: 2.5rem;
}
