/* Shared navbar + language switcher styles */

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border, #e2e8f0);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text-primary, #0f172a); font-weight: 700; font-size: 1.5rem; }
.logo img { width: 40px; height: 40px; border-radius: 8px; }

.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-secondary, #475569); font-weight: 500; position: relative; transition: color .3s ease; }
.nav-links a:hover { color: var(--primary, #2563eb); }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary, #2563eb); transition: width .3s ease; }
.nav-links a:hover::after { width: 100%; }

.language-switcher { position: relative; display: inline-block; }
.language-btn { background: var(--bg-primary, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 8px; padding: .5rem 1rem; cursor: pointer; display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; color: var(--text-secondary, #475569); transition: all .3s ease; }
.language-btn:hover { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); }
.language-dropdown { position: absolute; top: 100%; right: 0; background: var(--bg-primary, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 8px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04); min-width: 120px; z-index: 1000; display: none; margin-top: .5rem; }
.language-dropdown.show { display: block; }
.language-option { padding: .75rem 1rem; cursor: pointer; transition: background .3s ease; display: flex; align-items: center; gap: .5rem; }
.language-option:hover { background: var(--bg-secondary, #f8fafc); }
.language-option.active { background: var(--primary, #2563eb); color: #fff; }

/* LTR support */
[dir="ltr"] .nav-links { flex-direction: row-reverse; }
[dir="ltr"] .nav-links a::after { left: auto; right: 0; }
[dir="ltr"] .language-dropdown { right: auto; left: 0; }

@media (max-width: 768px) {
  .nav-links { display: none; }
}


