/* ============================================================
   TESTCAMPS — Interactive Tour CSS v2
   ============================================================ */

/* ── Overlay ── */
.tcm-overlay {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none; transition: opacity 0.3s ease;
  -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0);
}
.tcm-overlay.active { pointer-events: auto; }

/* ── Spotlight ── */
.tcm-spotlight {
  position: fixed; z-index: 9999; border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(6, 14, 26, 0.82);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0);
}
.tcm-spotlight::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: inherit; pointer-events: none;
  border: 2px solid rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  animation: tcm-glow 2s ease-in-out infinite;
}
@keyframes tcm-glow {
  0%, 100% { border-color: rgba(0, 212, 255, 0.5); box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); }
  50% { border-color: rgba(37, 99, 235, 0.7); box-shadow: 0 0 30px rgba(37, 99, 235, 0.3); }
}

/* Click mode — yaşıl yanıb-sönən çərçivə */
.tcm-spotlight.tcm-spotlight-click::after {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
  animation: tcm-glow-click 1.2s ease-in-out infinite;
}
@keyframes tcm-glow-click {
  0%, 100% { border-color: rgba(16, 185, 129, 0.7); box-shadow: 0 0 25px rgba(16, 185, 129, 0.3); }
  50% { border-color: rgba(16, 185, 129, 1); box-shadow: 0 0 40px rgba(16, 185, 129, 0.5); }
}

/* Clickable element */
.tcm-clickable {
  cursor: pointer !important;
  transition: transform 0.2s ease !important;
}
.tcm-clickable:hover {
  transform: scale(1.02) !important;
}

/* ── Tooltip ── */
.tcm-tooltip {
  position: fixed; z-index: 10000;
  width: 370px; max-width: calc(100vw - 24px);
  background: linear-gradient(145deg, #0f1d32 0%, #0b1628 50%, #091320 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  opacity: 0; transform: translateY(10px) scale(0.96) translate3d(0,0,0);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}
.tcm-tooltip.visible { opacity: 1; transform: translateY(0) scale(1) translate3d(0,0,0); }

/* Arrow */
.tcm-arrow {
  position: absolute; width: 14px; height: 14px;
  background: #0f1d32; border: 1px solid rgba(0, 212, 255, 0.2);
  transform: rotate(45deg); z-index: -1;
}
.tcm-tooltip[data-pos="bottom"] .tcm-arrow { top: -8px; left: 50%; margin-left: -7px; border-right: none; border-bottom: none; }
.tcm-tooltip[data-pos="top"] .tcm-arrow    { bottom: -8px; left: 50%; margin-left: -7px; border-left: none; border-top: none; }
.tcm-tooltip[data-pos="left"] .tcm-arrow   { right: -8px; top: 50%; margin-top: -7px; border-left: none; border-top: none; }
.tcm-tooltip[data-pos="right"] .tcm-arrow  { left: -8px; top: 50%; margin-top: -7px; border-right: none; border-bottom: none; }

/* Header */
.tcm-header { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }
.tcm-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 8px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.tcm-title { font-size: 16px; font-weight: 700; color: #fff; flex: 1; line-height: 1.3; }
.tcm-close {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; color: #94a3b8; font-size: 16px; cursor: pointer;
  transition: all 0.2s; flex-shrink: 0; line-height: 1;
}
.tcm-close:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.3); color: #fca5a5; }

/* Body */
.tcm-body { padding: 12px 20px 14px; font-size: 14px; line-height: 1.65; color: #94a3b8; }
.tcm-body strong { color: #00d4ff; font-weight: 600; }

/* Hint */
.tcm-hint {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 10px;
  padding: 10px 12px; background: rgba(234,179,8,0.06);
  border: 1px solid rgba(234,179,8,0.12); border-radius: 10px;
  font-size: 12.5px; line-height: 1.5; color: rgba(234,179,8,0.85);
}
.tcm-hint::before { content: '💡'; flex-shrink: 0; }

/* Action prompt — "elementə basın" */
.tcm-action-prompt {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  font-size: 13px; font-weight: 600; color: #34d399;
}
.tcm-pulse-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #10b981; flex-shrink: 0;
  animation: tcm-dot-pulse 1.5s ease-in-out infinite;
}
@keyframes tcm-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { transform: scale(1.3); opacity: 0.8; box-shadow: 0 0 12px 4px rgba(16,185,129,0.3); }
}

/* Footer */
.tcm-footer { padding: 0 20px 16px; }

/* Progress bar */
.tcm-progress {
  width: 100%; height: 4px; background: rgba(255,255,255,0.08);
  border-radius: 2px; margin-bottom: 12px; overflow: hidden;
}
.tcm-progress-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #2563eb, #00d4ff);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tcm-buttons { display: flex; gap: 8px; justify-content: flex-end; }

/* Buttons */
.tcm-btn-back, .tcm-btn-next, .tcm-btn-finish, .tcm-btn-skip-step, .tcm-btn-understood {
  padding: 8px 18px; border-radius: 10px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.25s ease; border: none; line-height: 1;
}
.tcm-btn-back {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #94a3b8;
}
.tcm-btn-back:hover { background: rgba(255,255,255,0.1); color: #e2e8f0; }
.tcm-btn-next {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.tcm-btn-next:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.4); }
.tcm-btn-finish {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff; box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}
.tcm-btn-finish:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(5,150,105,0.4); }
.tcm-btn-skip-step {
  background: rgba(255,255,255,0.04); color: #64748b; font-size: 12px; font-weight: 500;
}
.tcm-btn-skip-step:hover { color: #94a3b8; background: rgba(255,255,255,0.08); }
.tcm-btn-understood {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13,148,136,0.3);
  padding: 10px 20px;
  font-size: 14px;
  min-height: 42px;
}
.tcm-btn-understood:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,148,136,0.4); }

/* ── Welcome Modal ── */
.tcm-welcome {
  position: fixed; inset: 0; z-index: 10001;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6,14,26,0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 24px; opacity: 0; transition: opacity 0.4s ease;
}
.tcm-welcome.visible { opacity: 1; }
.tcm-welcome-card {
  width: 100%; max-width: 440px;
  background: linear-gradient(145deg, #0f1d32 0%, #0b1628 50%, #091320 100%);
  border: 1px solid rgba(0,212,255,0.15); border-radius: 24px;
  padding: 44px 36px 36px; text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 80px rgba(37,99,235,0.08);
  transform: translateY(20px) scale(0.96);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.tcm-welcome.visible .tcm-welcome-card { transform: translateY(0) scale(1); }
.tcm-welcome-icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(0,212,255,0.15));
  border: 1px solid rgba(0,212,255,0.2); border-radius: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 36px;
  animation: tcm-float 3s ease-in-out infinite;
}
@keyframes tcm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.tcm-welcome-title { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.tcm-welcome-desc { font-size: 14px; color: #94a3b8; line-height: 1.7; margin-bottom: 8px; }
.tcm-welcome-desc strong { color: #00d4ff; }
.tcm-welcome-meta { font-size: 12px; color: #64748b; margin-bottom: 28px; }
.tcm-welcome-actions { display: flex; flex-direction: column; gap: 10px; }
.tcm-btn-primary {
  width: 100%; padding: 14px 24px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff; border: none; border-radius: 12px;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3); transition: all 0.3s ease;
}
.tcm-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(37,99,235,0.4); }
.tcm-btn-ghost {
  width: 100%; padding: 12px 24px;
  background: rgba(255,255,255,0.04); color: #64748b;
  border: 1px solid rgba(255,255,255,0.06); border-radius: 12px;
  font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.2s ease;
}
.tcm-btn-ghost:hover { background: rgba(255,255,255,0.08); color: #94a3b8; }

/* ── Responsive ── */

/* TABLET ≤1024px */
@media (max-width: 1024px) {
  .tcm-tooltip { width: 340px; }
  .tcm-welcome-card { padding: 36px 28px 30px; }
}

/* MOBILE ≤768px */
@media (max-width: 768px) {
  .tcm-tooltip {
    width: calc(100vw - 20px);
    max-width: 360px;
    border-radius: 14px;
  }
  .tcm-header { padding: 12px 14px 0; gap: 8px; }
  .tcm-badge { min-width: 26px; height: 26px; font-size: 11px; }
  .tcm-title { font-size: 15px; }
  .tcm-body { padding: 10px 14px 12px; font-size: 13px; line-height: 1.6; }
  .tcm-hint { font-size: 12px; padding: 8px 10px; }
  .tcm-action-prompt { font-size: 12px; padding: 8px 12px; }
  .tcm-footer { padding: 0 14px 12px; }
  /* Düymələr — daha böyük tap target */
  .tcm-btn-back, .tcm-btn-next, .tcm-btn-finish, .tcm-btn-skip-step, .tcm-btn-understood {
    padding: 10px 18px;
    font-size: 14px;
    min-height: 42px;
  }
  .tcm-btn-understood {
    padding: 12px 22px;
    font-size: 15px;
    min-height: 46px;
  }
  .tcm-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .tcm-close {
    width: 32px; height: 32px;
    font-size: 18px;
  }
  .tcm-welcome-card {
    padding: 28px 20px 24px;
    border-radius: 18px;
    max-width: 95vw;
  }
  .tcm-welcome-icon { width: 60px; height: 60px; font-size: 30px; border-radius: 16px; }
  .tcm-welcome-title { font-size: 19px; }
  .tcm-welcome-desc { font-size: 13px; }
  .tcm-btn-primary { padding: 13px 20px; font-size: 14px; min-height: 46px; }
  .tcm-btn-ghost { padding: 11px 20px; font-size: 13px; min-height: 42px; }
  /* Bələdçi düyməsi */
  .tcm-guide-float {
    bottom: 16px; right: 12px;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 12px;
  }
}

/* SMALL PHONE ≤480px */
@media (max-width: 480px) {
  .tcm-tooltip {
    width: calc(100vw - 16px);
    border-radius: 12px;
  }
  .tcm-header { padding: 10px 12px 0; }
  .tcm-body { padding: 8px 12px 10px; font-size: 12.5px; }
  .tcm-footer { padding: 0 12px 10px; }
  .tcm-welcome { padding: 16px; }
  .tcm-welcome-card { padding: 24px 16px 20px; border-radius: 16px; }
  .tcm-welcome-icon { width: 52px; height: 52px; font-size: 26px; }
  .tcm-welcome-title { font-size: 17px; margin-bottom: 8px; }
  .tcm-welcome-desc { font-size: 12.5px; line-height: 1.6; }
  .tcm-welcome-meta { font-size: 11px; margin-bottom: 20px; }
  .tcm-guide-float {
    bottom: 12px; right: 8px;
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ── Mini Badge (Anladım sonrası kiçik düymə) ── */
.tcm-mini-badge {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #0f1d32, #0b1628);
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  border-radius: 20px;
  color: #00d4ff;
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 212, 255, 0.12);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.tcm-mini-badge.visible {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.tcm-mini-badge:active {
  transform: translateX(-50%) scale(0.95);
}
.tcm-mini-num {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  padding: 2px 8px;
  border-radius: 10px;
  color: #fff;
  font-size: 11px;
}
.tcm-mini-icon {
  font-size: 14px;
}

/* ── Floating Bələdçi Button ── */
/* Tur aktiv — Bələdçi gizlə (scroll bloklama JS overlay touchmove ilə) */
body.tcm-tour-active .tcm-guide-float { display: none !important; }
body.tcm-tour-active { touch-action: none; -ms-touch-action: none; }
body.tcm-tour-active .tcm-tooltip,
body.tcm-tour-active #tc-modal { touch-action: auto; -ms-touch-action: auto; }
.tcm-guide-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 89;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #0f1d32, #0b1628);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 14px;
  color: #00d4ff;
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 212, 255, 0.08);
  transition: all 0.3s ease;
  -webkit-user-select: none;
  user-select: none;
}
.tcm-guide-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.45);
}
.tcm-guide-float:active {
  transform: translateY(0);
}
/* (Responsive rules above) */

/* ── Modal Protection (freeInteract) ── */
#tc-modal.tcm-protected {
  pointer-events: none !important;
}
#tc-modal.tcm-protected > * {
  pointer-events: auto !important;
}
