/* ==========================================================================
   PT Athan Gemilang Perkasa - Floating Multilingual Switcher (ID / EN)
   ========================================================================== */

:root {
  --lang-bg: rgba(11, 25, 44, 0.90);
  --lang-border: rgba(255, 255, 255, 0.18);
  --lang-active-bg: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  --lang-active-color: #ffffff;
  --lang-inactive-color: rgba(255, 255, 255, 0.75);
  --lang-glow: 0 4px 20px rgba(39, 174, 96, 0.4);
  --lang-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Floating Switcher Pill Container */
.athan-lang-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--lang-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--lang-border);
  padding: 4px;
  border-radius: 30px;
  box-shadow: var(--lang-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.athan-lang-floating:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 174, 96, 0.6);
  box-shadow: var(--lang-shadow), var(--lang-glow);
}

/* Switcher Buttons */
.athan-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--lang-inactive-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
  outline: none;
}

.athan-lang-btn .flag-icon {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
}

.athan-lang-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.athan-lang-btn.active {
  background: var(--lang-active-bg);
  color: var(--lang-active-color);
  box-shadow: 0 2px 10px rgba(39, 174, 96, 0.5);
}

@media (max-width: 768px) {
  .athan-lang-floating {
    bottom: 18px;
    right: 18px;
    padding: 3px;
  }
  .athan-lang-btn {
    font-size: 12px;
    padding: 6px 11px;
    gap: 4px;
  }
  .athan-lang-btn .flag-icon {
    font-size: 14px;
  }
}
