/**
 * Hello Plataforma · Geo Blocking Styles
 *
 * UI de configuración de zonas bloqueadas dentro de /mi-panel/configuracion/
 */


/* ============================================================
   CARD PRINCIPAL
   ============================================================ */

.hp-geo-card {
  background: var(--hp-bg-primary);
  border: 0.5px solid var(--hp-border-purple);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 4px 12px -2px rgba(105, 73, 158, 0.04);
  margin-top: 12px;
}

.hp-geo-intro {
  font-family: var(--hp-font-base);
  font-size: 13px;
  color: var(--hp-text-secondary);
  margin: 0;
  line-height: 1.55;
}


/* ============================================================
   AUTODETECT (sugerencia bloquear zona actual)
   ============================================================ */

.hp-geo-autodetect {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(168, 135, 208, 0.10) 0%, rgba(149, 117, 205, 0.04) 100%);
  border: 0.5px dashed rgba(149, 117, 205, 0.35);
  border-radius: 12px;
}

.hp-geo-autodetect-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #9575CD 0%, #69499E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.hp-geo-autodetect-icon i {
  font-size: 18px;
  color: #FFFFFF;
}

.hp-geo-autodetect-content {
  flex: 1;
  min-width: 0;
}

.hp-geo-autodetect-title {
  font-family: var(--hp-font-base);
  font-size: 12px;
  font-weight: 700;
  color: var(--hp-text-primary);
  margin: 0;
  letter-spacing: -0.2px;
}

.hp-geo-autodetect-sub {
  font-family: var(--hp-font-base);
  font-size: 11px;
  color: var(--hp-text-secondary);
  margin: 2px 0 0;
  line-height: 1.3;
}

.hp-geo-autodetect-sub strong {
  color: var(--hp-purple-deep);
  font-weight: 700;
}


/* ============================================================
   ZONAS BLOQUEADAS (lista de chips)
   ============================================================ */

.hp-geo-zones-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-geo-zones-title {
  font-family: var(--hp-font-base);
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.2px;
}

.hp-geo-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--hp-gradient-purple-button);
  color: #FFFFFF;
  font-family: var(--hp-font-base);
  font-size: 10px;
  font-weight: 800;
  border-radius: 99px;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.hp-geo-zones-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 60px;
}

.hp-geo-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  margin: 0;
  background: var(--hp-bg-card);
  border-radius: 10px;
  font-family: var(--hp-font-base);
  font-size: 12px;
  color: var(--hp-text-tertiary);
  text-align: center;
  justify-content: center;
}

.hp-geo-empty i {
  font-size: 16px;
  color: var(--hp-text-tertiary);
}


/* ============================================================
   ZONE CHIP
   ============================================================ */

.hp-geo-zone-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--hp-bg-primary);
  border: 0.5px solid var(--hp-border-subtle);
  border-radius: 10px;
  transition: border-color var(--hp-duration-normal) var(--hp-ease);
  animation: hpChipFadeIn 250ms ease-out;
}

.hp-geo-zone-chip:hover {
  border-color: var(--hp-purple);
}

.hp-geo-zone-chip.is-removing {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}

@keyframes hpChipFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hp-geo-zone-chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(212, 191, 232, 0.40) 0%, rgba(168, 135, 208, 0.20) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-geo-zone-chip-icon i {
  font-size: 15px;
  color: var(--hp-purple-deep);
}

.hp-geo-zone-chip-content {
  flex: 1;
  min-width: 0;
}

.hp-geo-zone-chip-label {
  font-family: var(--hp-font-base);
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-text-primary);
  margin: 0;
  line-height: 1.3;
}

.hp-geo-zone-chip-type {
  font-family: var(--hp-font-base);
  font-size: 10px;
  color: var(--hp-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin: 1px 0 0;
}

.hp-geo-zone-remove {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hp-text-tertiary);
  flex-shrink: 0;
  transition: background-color var(--hp-duration-normal) var(--hp-ease),
              color var(--hp-duration-normal) var(--hp-ease);
}

.hp-geo-zone-remove:hover {
  background: rgba(192, 69, 69, 0.10);
  color: #C04545;
}

.hp-geo-zone-remove i {
  font-size: 14px;
}


/* ============================================================
   AGREGAR ZONA (form)
   ============================================================ */

.hp-geo-add-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
  border-top: 0.5px dashed var(--hp-border-subtle);
}

.hp-geo-add-title {
  font-family: var(--hp-font-base);
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-text-primary);
  margin: 0 0 4px;
  letter-spacing: -0.2px;
}

.hp-label-hint {
  font-size: 10px;
  font-weight: 500;
  color: var(--hp-text-tertiary);
  text-transform: none;
  letter-spacing: 0.2px;
  margin-left: 6px;
}


/* ============================================================
   VPN TOGGLE SECTION
   ============================================================ */

.hp-geo-vpn-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: var(--hp-bg-card);
  border-radius: 12px;
  margin-top: 4px;
}

.hp-geo-vpn-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.hp-geo-vpn-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #D97757 0%, #B85B40 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.hp-geo-vpn-icon i {
  font-size: 18px;
  color: #FFFFFF;
}

.hp-geo-vpn-text {
  flex: 1;
  min-width: 0;
}

.hp-geo-vpn-title {
  font-family: var(--hp-font-base);
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-text-primary);
  margin: 0;
  letter-spacing: -0.2px;
}

.hp-geo-vpn-sub {
  font-family: var(--hp-font-base);
  font-size: 11px;
  color: var(--hp-text-secondary);
  margin: 3px 0 0;
  line-height: 1.4;
}


/* ============================================================
   TOGGLE SWITCH (reusable)
   ============================================================ */

.hp-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.hp-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.hp-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--hp-border-subtle);
  border-radius: 24px;
  transition: background-color var(--hp-duration-normal) var(--hp-ease);
}

.hp-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform var(--hp-duration-normal) var(--hp-ease);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hp-toggle input:checked + .hp-toggle-slider {
  background: var(--hp-gradient-purple-button);
}

.hp-toggle input:checked + .hp-toggle-slider::before {
  transform: translateX(18px);
}

.hp-toggle input:disabled + .hp-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ============================================================
   NOTA HONESTA
   ============================================================ */

.hp-geo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(149, 117, 205, 0.06);
  border-left: 3px solid var(--hp-purple-deep);
  border-radius: 0 10px 10px 0;
}

.hp-geo-note i {
  font-size: 16px;
  color: var(--hp-purple-deep);
  flex-shrink: 0;
  margin-top: 1px;
}

.hp-geo-note p {
  font-family: var(--hp-font-base);
  font-size: 12px;
  color: var(--hp-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.hp-geo-note p strong {
  color: var(--hp-text-primary);
  font-weight: 700;
}


/* ============================================================
   BUTTON SIZE SMALL
   ============================================================ */

.hp-btn-sm {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 8px;
}

.hp-btn-sm i {
  font-size: 14px;
}


/* ============================================================
   TIP BOX (relación con bloqueo por móvil)
   ============================================================ */

.hp-geo-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(212, 191, 232, 0.18) 0%, rgba(168, 135, 208, 0.04) 100%);
  border-left: 3px solid var(--hp-purple-deep, #69499E);
  border-radius: 0 12px 12px 0;
  margin: 0 0 16px;
}

.hp-geo-tip > i {
  font-size: 18px;
  color: var(--hp-purple-deep, #69499E);
  flex-shrink: 0;
  margin-top: 1px;
}

.hp-geo-tip p {
  font-family: var(--hp-font-base, 'Inter', sans-serif);
  font-size: 12px;
  color: var(--hp-text-secondary, #5B5566);
  margin: 0;
  line-height: 1.5;
}

.hp-geo-tip strong {
  color: var(--hp-text-primary, #1A1726);
  font-weight: 700;
}