/* ===== EzAI Shared Styles ===== */

/* --- Reset & Base --- */
html { scroll-behavior: smooth; }
[x-cloak] { display: none !important; }

/* --- Animated Gradient Mesh Background --- */
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -30px) scale(1.1); }
}
.mesh-grad {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.mesh-grad div {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: .12;
  animation: drift 20s ease-in-out infinite alternate;
}

/* --- Grid Overlay --- */
.landing-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* --- Card Styles --- */
.card-v3 {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.3s;
}
.card-v3:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(139,92,246,0.15);
  transform: translateY(-2px);
}

/* --- Tags & Badges --- */
.tag {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.provider-badge {
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
}

/* --- Glow Line Divider --- */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
}

/* --- Sidebar Navigation (Dashboard) --- */
.sidebar-link {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.8125rem; color: rgba(255,255,255,0.45);
  transition: all 0.15s; cursor: pointer;
  border-left: 3px solid transparent;
}
.sidebar-link:hover {
  background: rgba(139,92,246,0.06);
  color: rgba(255,255,255,0.7);
}
.sidebar-link.active {
  background: rgba(139,92,246,0.08);
  color: #a78bfa; font-weight: 600;
  border-left-color: #8b5cf6;
}
.sidebar-link svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* --- Code Block --- */
.code-block {
  position: relative;
  background: #0c0c14;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.code-block pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; line-height: 1.6;
  white-space: pre; word-break: normal;
}

/* --- Copy Button (for code blocks) --- */
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  padding: 4px 10px; font-size: 11px; border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer; transition: all 0.2s;
  z-index: 2; font-family: 'Inter', sans-serif;
}
.copy-btn:hover {
  background: rgba(139,92,246,0.15);
  color: #a78bfa;
  border-color: rgba(139,92,246,0.3);
}

/* --- Card Hover (stat cards, dashboard cards) --- */
.card-hover { transition: all 0.3s; }
.card-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(139,92,246,0.15);
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* --- Docs sidebar link --- */
.docs-sidebar-link {
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.docs-sidebar-link:hover {
  background: rgba(139,92,246,0.06);
}
.docs-sidebar-link.active {
  background: rgba(139,92,246,0.08);
  color: #a78bfa; font-weight: 600;
  border-left-color: #8b5cf6;
}
