/* ═══════════════════════════════════════════════════════════════
   VividHome Multilang — geo-IP language suggestion popup
   Split card: left = stay on current version, right = suggested.
   ═══════════════════════════════════════════════════════════════ */

.vh-langpop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(72px, 14vh, 140px) 16px 24px;
  pointer-events: none;
}

.vh-langpop__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 30, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: auto;
}

.vh-langpop.is-open .vh-langpop__overlay {
  opacity: 1;
}

.vh-langpop__card {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 700px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(26, 26, 30, 0.28), 0 4px 18px rgba(26, 26, 30, 0.12);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-14px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.vh-langpop.is-open .vh-langpop__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.vh-langpop__side {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 36px 32px;
}

.vh-langpop__side--go {
  background: #f6f3fa;
}

.vh-langpop__tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--neutral-slate, #6b6860);
}

.vh-langpop__side--go .vh-langpop__tag {
  color: var(--vivid-purple, #7b2d8e);
  opacity: 0.75;
}

.vh-langpop__title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--neutral-ink, #1a1a1e);
}

.vh-langpop__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-height: 46px;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.vh-langpop__btn--stay {
  background: var(--vivid-purple, #7b2d8e);
  color: #fff;
  letter-spacing: 0.08em;
}

.vh-langpop__btn--stay:hover {
  background: #692578;
  transform: translateY(-1px);
}

.vh-langpop__btn--go {
  background: #4a7c59;
  color: #fff;
  box-shadow: 0 6px 18px rgba(74, 124, 89, 0.35);
}

.vh-langpop__btn--go:hover {
  background: #3e6a4b;
  color: #fff;
  transform: translateY(-1px);
}

.vh-langpop__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(26, 26, 30, 0.08);
  color: var(--neutral-slate, #6b6860);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.vh-langpop__close:hover {
  background: rgba(26, 26, 30, 0.16);
  color: var(--neutral-ink, #1a1a1e);
}

/* Mobile: stack the two sides */
@media (max-width: 560px) {
  .vh-langpop {
    padding-top: 96px;
  }

  .vh-langpop__card {
    flex-direction: column;
  }

  .vh-langpop__side {
    padding: 26px 24px;
    gap: 10px;
  }

  .vh-langpop__title {
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vh-langpop__overlay,
  .vh-langpop__card,
  .vh-langpop__btn {
    transition: none;
  }
}
