/* ═════════════════════════════════════════════════════════════
   Immigrant Shield Academy — i18n UI
   ═════════════════════════════════════════════════════════════ */

/* Botão da bandeirinha (no nav) */
.isa-lang-trigger {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.isa-lang-trigger:hover {
  background: rgba(29,185,106,.08);
  border-color: rgba(29,185,106,.3);
  color: #fff;
}
.isa-lang-trigger-flag { font-size: 16px; line-height: 1; }
.isa-lang-trigger-arrow { font-size: 9px; opacity: .55; }

/* Overlay (escurecimento de fundo) */
.isa-lang-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: isaFadeIn .18s ease;
}
@keyframes isaFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Modal de seleção de idioma */
.isa-lang-modal, .isa-waitlist-modal {
  position: relative;
  background: rgba(14,14,14,.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(29,185,106,.22);
  border-radius: 18px;
  padding: 32px 28px 28px;
  max-width: 480px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,.65);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  animation: isaSlide .22s cubic-bezier(.4,0,.2,1);
}
@keyframes isaSlide {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.isa-lang-close {
  position: absolute; top: 14px; right: 16px;
  background: transparent; border: none;
  color: rgba(255,255,255,.4); font-size: 26px;
  cursor: pointer; line-height: 1; padding: 4px 10px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.isa-lang-close:hover { color: #fff; background: rgba(255,255,255,.08); }

.isa-lang-title {
  font-size: 18px; font-weight: 700; color: #fff;
  margin-bottom: 18px;
}

/* Grid das bandeirinhas */
.isa-lang-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.isa-lang-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 18px 12px 14px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative;
  transition: all .18s;
  font-family: inherit;
  color: #fff;
}
.isa-lang-card:hover {
  border-color: rgba(29,185,106,.4);
  background: rgba(29,185,106,.06);
  transform: translateY(-2px);
}
.isa-lang-card.active {
  border-color: rgba(29,185,106,.6);
  background: rgba(29,185,106,.08);
  box-shadow: 0 0 0 2px rgba(29,185,106,.15);
}
.isa-lang-card.soon { opacity: .9; }
.isa-lang-card.soon:hover {
  border-color: rgba(245,158,11,.5);
  background: rgba(245,158,11,.06);
}
.isa-lang-flag { font-size: 36px; line-height: 1; }
.isa-lang-name {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.92);
  text-align: center;
}
.isa-lang-badge {
  font-size: 9.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  text-transform: uppercase; letter-spacing: .5px;
  margin-top: 2px;
}
.isa-lang-badge.active-badge {
  background: rgba(29,185,106,.18);
  color: #25D97A;
  border: 1px solid rgba(29,185,106,.3);
}
.isa-lang-badge.soon-badge {
  background: rgba(245,158,11,.15);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,.3);
}

/* Modal de Waitlist */
.isa-waitlist-modal {
  text-align: center;
  padding: 36px 28px 28px;
}
.isa-waitlist-flag {
  font-size: 56px; line-height: 1;
  margin-bottom: 14px;
}
.isa-waitlist-modal h3 {
  font-size: 22px; font-weight: 800; color: #fff;
  margin: 0 0 10px; letter-spacing: -.3px;
}
.isa-waitlist-modal p {
  font-size: 14px; color: rgba(255,255,255,.7);
  line-height: 1.55; margin: 0 0 22px;
}
.isa-waitlist-modal form {
  display: flex; flex-direction: column; gap: 10px;
}
.isa-waitlist-email {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: #fff; font-size: 14px;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.isa-waitlist-email:focus {
  outline: none;
  border-color: rgba(29,185,106,.5);
  background: rgba(29,185,106,.04);
}
.isa-waitlist-submit {
  background: linear-gradient(135deg, #25D97A, #1DB96A);
  color: #000; border: none;
  padding: 12px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  font-family: inherit;
}
.isa-waitlist-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(29,185,106,.3);
}
.isa-waitlist-thanks {
  background: rgba(29,185,106,.1);
  border: 1px solid rgba(29,185,106,.3);
  color: #25D97A;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
}

/* Mobile */
@media (max-width: 480px) {
  .isa-lang-grid { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .isa-lang-flag { font-size: 30px; }
  .isa-lang-name { font-size: 11.5px; }
  .isa-lang-card { padding: 14px 8px 12px; }
  .isa-waitlist-modal { padding: 28px 22px 22px; }
  .isa-waitlist-modal h3 { font-size: 19px; }
  .isa-waitlist-modal p { font-size: 13px; }
  .isa-lang-trigger { padding: 5px 10px; font-size: 12px; }
}
