/* FlyStar Theme & Typography: English (Montserrat, Inter, Roboto) & Bangla (UN Bangla, Hind Siliguri) */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --neon-cyan: #06b6d4;
  --neon-blue: #2563eb;
  --neon-purple: #8b5cf6;
  --neon-glow: rgba(6, 182, 212, 0.35);
  --neon-blue-glow: rgba(37, 99, 235, 0.25);
  --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
}

/* Default English Typography Stack: Montserrat, Inter, Roboto */
body {
  font-family: 'Montserrat', 'Inter', 'Roboto', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* English active typography (Inherited by text, NOT overriding icon fonts) */
html[lang="en"] body {
  font-family: 'Montserrat', 'Inter', 'Roboto', sans-serif;
}

/* Bengali active typography (Inherited by text, NOT overriding icon fonts) */
html[lang="bn"] body {
  font-family: 'UN Bangla', 'Hind Siliguri', sans-serif;
}

/* Form controls naturally inherit typography */
input, select, textarea, button {
  font-family: inherit;
}

/* Specific Font Utilities */
.font-english {
  font-family: 'Montserrat', 'Inter', 'Roboto', sans-serif;
}

.font-bangla {
  font-family: 'UN Bangla', 'Hind Siliguri', sans-serif;
}

/* ==========================================================================
   Font Awesome Protection Rules:
   Guarantees all Font Awesome icons ALWAYS render regardless of active language or font
   ========================================================================== */
.fa,
.fas,
.far,
.fal,
.fad,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
i[class*="fa-"],
span[class*="fa-"],
[class^="fa-"],
[class*=" fa-"] {
  font-family: "Font Awesome 6 Free" !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
}

.fa-brands,
.fab,
i.fa-brands,
[class*="fa-brands"] {
  font-family: "Font Awesome 6 Brands" !important;
}

.fa-regular,
.far,
i.fa-regular {
  font-weight: 400 !important;
}

.fa-solid,
.fas,
i.fa-solid {
  font-weight: 900 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}

/* Neon Glow Accents */
.neon-border {
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .neon-border {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.neon-border:hover {
  border-color: rgba(6, 182, 212, 0.8);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.45);
}

.neon-card {
  border-radius: 1.25rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.neon-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.neon-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 20px 30px -10px rgba(6, 182, 212, 0.22), 0 10px 15px -3px rgba(15, 23, 42, 0.08);
}

.dark .neon-card:hover {
  box-shadow: 0 20px 35px -10px rgba(6, 182, 212, 0.35), 0 10px 20px -3px rgba(0, 0, 0, 0.5);
}

.neon-card:hover::after {
  opacity: 1;
}

/* Neon Gradient Buttons */
.btn-neon {
  background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-neon:hover {
  background: linear-gradient(135deg, #0891b2 0%, #1d4ed8 100%);
  box-shadow: 0 6px 22px rgba(6, 182, 212, 0.6);
  transform: translateY(-2px);
}

.btn-neon-outline {
  border: 1.5px solid #06b6d4;
  color: #0891b2;
  transition: all 0.3s ease;
}
.dark .btn-neon-outline {
  color: #22d3ee;
  border-color: #06b6d4;
}

.btn-neon-outline:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: #22d3ee;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.35);
}

/* Neon Badges */
.neon-badge-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: #0891b2;
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}
.dark .neon-badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.neon-badge-purple {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}
.dark .neon-badge-purple {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.4);
}

/* Floating animated pulse */
@keyframes pulse-subtle {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(6, 182, 212, 0);
  }
}

.live-pulse {
  animation: pulse-subtle 2s infinite;
}

/* Glassmorphism Header */
.glass-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dark .glass-header {
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(30, 41, 59, 0.8);
}

/* Active Tab Indicator */
.tab-active {
  color: #0891b2 !important;
  border-bottom: 3px solid #06b6d4;
  background: rgba(6, 182, 212, 0.08);
}
.dark .tab-active {
  color: #22d3ee !important;
  background: rgba(6, 182, 212, 0.15);
}

/* Modal Animation */
.modal-enter {
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScale {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
