/* Rehberli tur motoru (guided-tour): karartma, spot ışığı ve açıklama kartı. */

.zgt-spot {
  position: fixed;
  z-index: 2147483000;
  pointer-events: none;
  border-radius: 8px;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.9),
    0 0 0 200vmax rgba(15, 23, 42, 0.55);
  transition:
    top 0.25s ease,
    left 0.25s ease,
    width 0.25s ease,
    height 0.25s ease;
}

.zgt-spot.zgt-center {
  box-shadow: 0 0 0 200vmax rgba(15, 23, 42, 0.55);
}

.zgt-tip {
  position: fixed;
  z-index: 2147483001;
  width: min(360px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 16px 16px 12px;
  border-radius: 10px;
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition:
    top 0.25s ease,
    left 0.25s ease;
}

/* Axelor penceresi açıkken: köşede küçük, yalnızca ipucu gösteren kart */
.zgt-tip.zgt-mini {
  width: min(280px, calc(100vw - 32px));
  padding: 10px 12px;
  bottom: 16px;
  transition: none;
}

.zgt-tip.zgt-mini .zgt-actions,
.zgt-tip.zgt-mini .zgt-text:empty {
  display: none;
}

.zgt-tip.zgt-mini .zgt-hint {
  margin-top: 0;
}

.zgt-toast {
  right: 16px;
}

.zgt-tip-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.zgt-count {
  flex: none;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 600;
}

.zgt-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.zgt-close {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.zgt-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.zgt-text p {
  margin: 0 0 6px;
}

.zgt-hint {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 13px;
}

.zgt-hint.zgt-ok {
  background: #dcfce7;
  color: #166534;
}

.zgt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.zgt-actions .zgt-spacer {
  flex: 1;
}

.zgt-btn {
  padding: 6px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #1e293b;
  font: inherit;
  cursor: pointer;
}

.zgt-btn:hover:not(:disabled) {
  background: #f8fafc;
}

.zgt-btn.zgt-primary {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
}

.zgt-btn.zgt-primary:hover:not(:disabled) {
  background: #1e40af;
}

.zgt-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.zgt-link {
  border: 0;
  background: none;
  color: #64748b;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .zgt-tip {
    background: #1e293b;
    color: #e2e8f0;
  }
  .zgt-btn {
    border-color: #475569;
    background: #1e293b;
    color: #e2e8f0;
  }
  .zgt-btn:hover:not(:disabled) {
    background: #334155;
  }
  .zgt-close:hover {
    background: #334155;
    color: #f8fafc;
  }
}

/* Alt tur (başka sayfada tanım) */
.zgt-trail {
  margin: -4px 0 6px;
  color: #64748b;
  font-size: 12px;
}

.zgt-detours {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
  font-size: 13px;
}

.zgt-detours .zgt-detour-label {
  color: #64748b;
}

.zgt-btn.zgt-detour {
  padding: 4px 10px;
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
}

.zgt-btn.zgt-detour:hover:not(:disabled) {
  background: #dbeafe;
}

@media (prefers-color-scheme: dark) {
  .zgt-detours {
    border-top-color: #475569;
  }
  .zgt-btn.zgt-detour {
    border-color: #1e40af;
    background: #172554;
    color: #bfdbfe;
  }
}

/* Axelor penceresi açıkken başka sayfaya geçilmez */
.zgt-tip.zgt-mini .zgt-detours {
  display: none;
}

/* Öneri kartı: rehberli sayfaya girilince köşede, ekranı karartmadan turu önerir */
.zgt-offer {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147482000;
  width: min(300px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 10px 12px;
  border-left: 3px solid #3b82f6;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  font: 13px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  animation: zgt-offer-in 0.25s ease-out;
}

.zgt-offer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.zgt-offer .zgt-btn {
  padding: 3px 10px;
  font-size: 12px;
}

@keyframes zgt-offer-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-color-scheme: dark) {
  .zgt-offer {
    background: #1e293b;
    color: #e2e8f0;
  }
}
