﻿/* SMOPS-2026 Bilingual (English / Hindi) Styles */

/* Noto Sans Devanagari Font Definition */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

/* Apply Devanagari font when Hindi is active */
html[lang="hi"],
html[lang="hi"] body,
html[lang="hi"] .font-sans {
  font-family: 'Noto Sans Devanagari', 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* Devanagari line-height adjustments to prevent matra clipping */
html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4,
html[lang="hi"] h5,
html[lang="hi"] h6 {
  line-height: 1.35 !important;
}

html[lang="hi"] p,
html[lang="hi"] span,
html[lang="hi"] a,
html[lang="hi"] button,
html[lang="hi"] li {
  line-height: 1.5 !important;
}

/* Language Switcher Component */
.lang-switcher-wrapper {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 40;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-switcher:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.lang-btn {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.025em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: linear-gradient(135deg, #10b981, #0d9488) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  font-weight: 700;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  .lang-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }
}
