/* ===========================
   CORE VARIABLES
   =========================== */

:root {
  /* Colors */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --success: #10b981;
  --error: #ef4444;
  
  /* Surface */
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-hover: #f1f5f9;
  --border: #e2e8f0;
  
  /* Text */
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* System */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 8px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --transition: all 0.2s ease;
  
  /* Layout - Düzeltildi */
  --header-height: 70px;
  --container-max: 1200px;
  --container-padding: 1rem;
}

/* ===========================
   RESET
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* Düzeltme: Yatay scroll'u engelle */
  overflow-x: hidden;
}

/* ===========================
   LAYOUT - Düzeltildi
   =========================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  /* Düzeltme: Container'ın taşmasını engelle */
  box-sizing: border-box;
}

/* ===========================
   HEADER - Tamamen Yeniden Yazıldı
   =========================== */

.header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  z-index: 50;
  height: var(--header-height);
  /* Düzeltme: Header'ın genişliğini sınırla */
  width: 100%;
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  /* Düzeltme: Container padding'i direkt uygula */
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  transition: var(--transition);
  /* Düzeltme: Logo'nun flex-shrink'ini kontrol et */
  flex-shrink: 0;
}

.logo:hover {
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.logo-text {
  /* Düzeltme: Mobilde gizlenecek */
  white-space: nowrap;
}

/* Desktop Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  padding: 0 1rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--surface-hover);
}

.nav-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  margin-left: 0.25rem;
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown System */
.dropdown-menu {
  position: absolute;
  top: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 1000;
  min-width: 200px;
  max-height: 70vh;
  overflow-y: auto;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown Positioning */
.dropdown-menu.align-left { 
  left: 0; 
  right: auto;
}

.dropdown-menu.align-right { 
  right: 0; 
  left: auto;
}

.dropdown-menu.align-center {
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
}

.nav-item:hover .dropdown-menu.align-center {
  transform: translateX(-50%) translateY(0);
}

/* Categories Dropdown */
.categories-dropdown {
  min-width: 380px;
  max-width: 450px;
  padding: 0;
}

.categories-header {
  padding: 1rem 1.25rem 0.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.categories-grid {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  border: 1px solid transparent;
}

.category-item:hover {
  background: var(--surface-hover);
  color: var(--primary);
  border-color: var(--border);
}

.category-icon {
  width: 128px;
  height: 128px;
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 3.5rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.category-icon-menu {
  width: 32px;
  height: 32px;
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: var(--transition);
}


.category-item:hover .category-icon {
  background: var(--primary);
  color: white;
}

.category-content {
  flex: 1;
  min-width: 0;
}

.category-title {
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.category-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Language Dropdown */
.language-dropdown {
  min-width: 220px;
  padding: 0;
}

.language-header {
  padding: 1rem 1.25rem 0.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-list {
  padding: 0.5rem 0;
}

.language-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}

.language-item:hover {
  background: var(--surface-hover);
}

.language-item.active {
  background: var(--surface);
  color: var(--primary);
}

.language-item.active::after {
  content: '✓';
  position: absolute;
  right: 1rem;
  color: var(--success);
  font-weight: 600;
}

.language-flag {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.language-name {
  font-weight: 500;
  flex: 1;
}

.language-code {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
}

/* ===========================
   MOBILE NAVIGATION - Tamamen Yeniden Yazıldı
   =========================== */

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 51;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  transform-origin: center;
}

/* Hamburger Animation */
.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  /* Düzeltme: Mobile nav'ın genişliğini kontrol et */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-content {
  padding: 1rem;
  /* Düzeltme: İçerik için max-width */
  max-width: var(--container-max);
  margin: 0 auto;
}

.mobile-nav-section {
  margin-bottom: 2rem;
}

.mobile-nav-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  font-size: 0.875rem;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: var(--surface-hover);
  color: var(--primary);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
  /* Düzeltme: Hero section genişlik */
  width: 100%;
  overflow: hidden;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  line-height: 1.5;
}

/* Quick Converter */
.quick-converter {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.converter-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.result-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(5px);
}

.result-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.result-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--success);
}

.result-unit {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Form Elements */
.form-select,
.form-input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg);
  color: var(--text);
  width: 100%;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.hero-section .form-select,
.hero-section .form-input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 2rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.swap-btn,
.convert-btn,
.copy-btn {
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.swap-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  width: 48px;
  height: 48px;
}

.convert-btn {
  background: var(--success);
  color: white;
  padding: 0.75rem 2rem;
}

.copy-btn {
  background: var(--secondary);
  color: white;
  width: 40px;
  height: 40px;
}

/* ===========================
   SECTIONS
   =========================== */

.categories-section {
  background: var(--surface);
  padding: 4rem 0;
}

.popular-conversions {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-card,
.popular-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.category-card:hover,
.popular-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* ===========================
   PAGE LAYOUTS
   =========================== */

.page-content {
  padding: 2rem 0;
  min-height: 60vh;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.separator {
  color: var(--text-muted);
}

.current {
  color: var(--text);
  font-weight: 500;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
}

.page-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.5;
}

/* Converter Widget */
.converter-widget {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.converter-form {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-weight: 500;
  color: var(--text);
  font-size: 0.875rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.5rem;
}

.swap-section {
  display: flex;
  justify-content: center;
  align-items: end;
  padding-bottom: 0.75rem;
}

.converter-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Conversion Result */
.conversion-result {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.result-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.result-symbols {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: var(--text);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

/* Error Page */
.error-page {
  padding: 4rem 0;
  text-align: center;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-icon {
  font-size: 6rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.error-message {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Random conversions styles */
.random-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.random-card:hover .random-icon {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .random-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Stats styles */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-item {
    font-size: 0.875rem;
}

/* ===========================
   RESPONSIVE DESIGN - Düzeltildi
   =========================== */

@media (max-width: 968px) {
  .nav {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 0.75rem;
  }
  
  
  .hero-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .converter-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .converter-form {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .page-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .input-row {
    grid-template-columns: 1fr;
  }
  
  .categories-section {
    position: relative;
    z-index: 10;
    overflow: hidden;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: static;
    z-index: auto;
    max-height: 70vh;
    overflow-y: auto;
    margin-bottom: 0;
    padding-bottom: 1rem;
  }

  .popular-conversions {
    position: relative;
    z-index: 15;
    clear: both;
    overflow: visible;
    margin-top: 2rem;
    background: var(--bg);
  }

  .popular-grid {
    grid-template-columns: 1fr;
    position: static;
    z-index: auto;
    max-height: none;
    overflow: visible;
  }
  
  .result-title {
    font-size: 1.25rem;
  }
  
  .categories-dropdown {
    min-width: 90vw;
    max-width: 95vw;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(-8px);
  }
  
  .nav-item:hover .categories-dropdown {
    transform: translateX(-50%) translateY(0);
  }
  
  .language-dropdown {
    min-width: 280px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 0.5rem;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .quick-converter {
    padding: 1rem;
  }
  
  .converter-widget {
    padding: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .category-card,
  .popular-card {
    padding: 1rem;
  }

  .popular-card {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .popular-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
  }

  .popular-card .popular-content h4 {
    font-size: 0.875rem;
    margin: 0;
  }

  .popular-card .popular-icon {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }
  
  .categories-dropdown {
    min-width: 95vw;
  }

  .converter-controls {
    flex-direction: column;
    gap: 0.75rem;
  }

  .converter-controls .btn {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
    flex: 1;
  }

  .result-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .result-actions .btn,
  .btn[onclick*="reload"] {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    width: 100%;
    justify-content: center;
  }
}

/* ===========================
   UTILITIES
   =========================== */

.hidden { display: none !important; }
.text-center { text-align: center !important; }

/* Loading Animation */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] .header-container {
  flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-menu.align-right {
  left: 0;
  right: auto;
}

[dir="rtl"] .dropdown-menu.align-left {
  right: 0;
  left: auto;
}