/* ============================================================
   WithLink – Custom CSS (sits on top of Tailwind)
   ============================================================ */

/* ── Smooth scrolling ─────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Glassmorphism utility ──────────────────────────────────── */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Brand gradient text ─────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #5f6fff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Sidebar animation ───────────────────────────────────── */
#sidebar {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Fade-in animation ───────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.4s ease both; }

/* ── Card hover glow ─────────────────────────────────────── */
.card-hover {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-hover:hover {
  box-shadow: 0 0 0 1px rgba(95, 111, 255, 0.2),
              0 8px 32px rgba(95, 111, 255, 0.08);
}

/* ── Input focus glow ────────────────────────────────────── */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(95, 111, 255, 0.12);
}

/* ── Copy success flash ──────────────────────────────────── */
.copy-success {
  animation: copyFlash 0.6s ease;
}
@keyframes copyFlash {
  0%   { background-color: rgba(16, 185, 129, 0.15); }
  100% { background-color: transparent; }
}

/* ── Progress bar ────────────────────────────────────────── */
.progress-bar {
  transition: width 1s linear;
}

/* ── Bio Background Animations ────────────────────────────── */
@keyframes morph {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
.animate-morph { animation: morph 8s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

/* ── Bio Smart Link Entry Animations ──────────────────────── */
@keyframes slideInUp {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInSoft {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes bounceInPop {
  0%   { opacity: 0; transform: translateY(16px) scale(0.82); }
  50%  { opacity: 1; transform: translateY(-4px) scale(1.03); }
  75%  { opacity: 1; transform: translateY(2px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-slide-in {
  animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}
.animate-fade-in {
  animation: fadeInSoft 0.6s ease-out both !important;
}
.animate-bounce-in {
  animation: bounceInPop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

.bg-mesh {
  background-image: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
                    radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
                    radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
}

/* ── Tooltip ─────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 50;
}

/* ── Premium UI Utilities ────────────────────────────────── */
.glass-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.neon-border-blue {
  border: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.05), inset 0 0 10px rgba(96, 165, 250, 0.02);
}

.neon-border-purple {
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.05), inset 0 0 10px rgba(168, 85, 247, 0.02);
}

.neon-text-blue {
  color: #60a5fa;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

.neon-text-purple {
  color: #a855f7;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.glow-point {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 10px #60a5fa, 0 0 20px #60a5fa;
}

.glow-line {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0) 0%, rgba(96, 165, 250, 0.3) 50%, rgba(96, 165, 250, 0) 100%);
  height: 1px;
}

/* ── Refined Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.05); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ── Sidebar Mini Stats ───────────────────────────────────── */
.sidebar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
