
/* ==========================================================================
   STICKY HIGH-CONTRAST MOBILE LANGUAGE BAR
   ========================================================================== */

.sticky-language-panel {
  background: #0b1d3a;
  border-bottom: 2px solid #e63946;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.sticky-language-panel.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lang-scroll-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

.lang-scroll-track::-webkit-scrollbar {
  display: none;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.lang-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-1px);
}

.lang-pill.selected {
  background: #e63946;
  color: white;
  border-color: #e63946;
  font-weight: 600;
}

.lang-pill.selected:hover {
  background: #dc2626;
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
  .sticky-language-panel {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1100;
    background-color: #1e293b;
    border-bottom: 2px solid #0d9488;
    padding: 8px 10px;
    width: 100%;
  }

  .lang-scroll-track {
    display: block;
    white-space: nowrap;
    overflow-x: auto;
    text-align: center;
    padding: 0;
    gap: 0;
  }

  .lang-pill {
    display: inline-block;
    padding: 6px 14px;
    margin: 2px 4px;
    background-color: #334155;
    color: #ffffff;
    border-radius: 20px;
    font-weight: bold;
    font-size: 11px;
    white-space: nowrap;
  }

  .lang-pill.selected {
    background-color: #0d9488;
    box-shadow: 0 0 4px rgba(56, 189, 248, 0.5);
  }

  .lang-pill:hover {
    background: #475569;
    color: white;
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .lang-pill {
    border: 2px solid currentColor;
  }

  .lang-pill.selected {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .lang-pill {
    transition: none;
  }

  .sticky-language-panel {
    transition: none;
  }
}
