/**
 * Language Switcher Styles
 * Small, neutral, non-promotional EN | SR toggle
 */

/* Unified language switcher - always visible in header */
.lang-switcher-header {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.lang-switcher-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 6px 10px;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: "Mukta Mahee", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.lang-switcher-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

.lang-switcher-btn.active {
  color: rgba(255, 255, 255, 1);
  font-weight: 700;
}

/* Apply active state based on html lang class - prevents flash */
.lang-en .lang-switcher-btn[data-lang="en"],
.lang-sr .lang-switcher-btn[data-lang="sr"] {
  color: rgba(255, 255, 255, 1);
  font-weight: 700;
}

.lang-switcher-separator {
  color: rgba(255, 255, 255, 0.5);
  user-select: none;
  font-weight: 300;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Mobile adjustments - keep it small and neutral */
@media (max-width: 767px) {
  .lang-switcher-header {
    top: 20px;
    right: 70px; /* Position to left of hamburger menu */
  }
  
  .lang-switcher-btn {
    font-size: 12px;
    padding: 5px 8px;
  }
  
  .lang-switcher-separator {
    font-size: 12px;
  }
}

/* Ensure language switcher stays above mobile menu */
@media (max-width: 767px) {
  .site-menu-toggle {
    z-index: 10000;
  }
  
  .lang-switcher-header {
    z-index: 10001;
  }
}

/* Ensure header doesn't create unwanted backgrounds */
.site-header {
  background: transparent;
}

/* Form validation error styles */
.validation-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.form-control.is-invalid,
input.is-invalid,
textarea.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus,
input.is-invalid:focus,
textarea.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
