/* ── Ibizia Puzzle CAPTCHA ─────────────────────────────────────
   Slider widget: drag the knob to the right to verify.
   Designed for dark backgrounds (login card, contact modal).
──────────────────────────────────────────────────────────────── */

.ibz-captcha {
  margin: 0.5rem 0 1.1rem;
  user-select: none;
  -webkit-user-select: none;
}

.ibz-cap-label {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #6b7280);
  margin-bottom: 0.55rem;
  display: block;
}

/* ── Track ──────────────────────────────────────────────────── */
.ibz-cap-track {
  position: relative;
  height: 52px;
  border-radius: 100px;
  /* Clearly visible against the dark login card */
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.20);
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.3);
}

/* Instruction text inside the track (sits behind the knob) */
.ibz-cap-track::after {
  content: 'Desliza →';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted, #6b7280);
  pointer-events: none;
  padding-left: 52px; /* offset for knob */
  font-family: 'Inter', Arial, sans-serif;
}

/* Fill bar that follows the knob */
.ibz-cap-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: linear-gradient(90deg,
    rgba(196,105,124,0.25) 0%,
    rgba(196,105,124,0.45) 100%);
  pointer-events: none;
  transition: background 0.3s;
}

/* ── Knob ───────────────────────────────────────────────────── */
.ibz-cap-knob {
  position: absolute;
  left: 4px;
  top: 4px;                   /* (52 - 44) / 2 = 4px — no transform needed */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(232,232,238,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 2px 14px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.15);
  touch-action: none;
  transition: box-shadow 0.18s, background 0.18s;
  /* JS controls horizontal position via translateX */
  transform: translateX(0);
  will-change: transform;
}

.ibz-cap-knob.is-dragging {
  cursor: grabbing;
  background: #fff;
  box-shadow: 0 4px 22px rgba(0,0,0,0.6), 0 0 0 2px rgba(255,255,255,0.25);
}

.ibz-cap-knob svg {
  color: #0c0c11;
  pointer-events: none;
  flex-shrink: 0;
}

/* ── Status line ────────────────────────────────────────────── */
.ibz-cap-status {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted, #6b7280);
  margin-top: 0.4rem;
  min-height: 1.2em;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

/* ── Solved state ───────────────────────────────────────────── */
.ibz-captcha.is-solved .ibz-cap-track {
  border-color: rgba(72,199,116,0.4);
}

.ibz-captcha.is-solved .ibz-cap-fill {
  background: linear-gradient(90deg,
    rgba(72,199,116,0.22) 0%,
    rgba(72,199,116,0.42) 100%);
}

.ibz-captcha.is-solved .ibz-cap-track::after {
  display: none; /* hide instruction text once solved */
}

.ibz-captcha.is-solved .ibz-cap-knob {
  background: rgba(72,199,116,0.95);
  cursor: default;
  box-shadow: 0 2px 14px rgba(72,199,116,0.35);
}

.ibz-captcha.is-solved .ibz-cap-knob svg {
  color: #fff;
}

.ibz-captcha.is-solved .ibz-cap-status {
  color: rgba(100,220,140,0.9);
}

/* ── Disabled submit button (until CAPTCHA solved) ──────────── */
.ibz-cap-guarded:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* ── Directory type tabs ─────────────────────────────────────── */
.ibizia-dir-type-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ibizia-dir-type-tabs::-webkit-scrollbar { display: none; }

.ibizia-dir-tab {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.7rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(154,154,163,0.45);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.18s, border-color 0.18s;
}
.ibizia-dir-tab:hover { color: #9a9aa3; }
.ibizia-dir-tab.is-active {
  color: #9a9aa3;
  border-bottom-color: #c4697c;
  font-weight: 600;
}

@media (max-width: 480px) {
  .ibizia-dir-tab { font-size: 0.8rem; padding: 0.6rem 0.9rem; }
}
