/* The StaffBook - Custom Styles */

:root {
  --brand-blue: #2563EB;
  --brand-indigo: #4F46E5;
  --brand-orange: #F97316;
  --brand-green: #10B981;
  --brand-purple: #8B5CF6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
.dark ::-webkit-scrollbar-track { background: #1e293b; }
.dark ::-webkit-scrollbar-thumb { background: #475569; }

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-orange {
  background: linear-gradient(135deg, #F97316 0%, #EF4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero gradient background */
.hero-gradient {
  background: linear-gradient(135deg, #EFF6FF 0%, #EEF2FF 30%, #FAF5FF 60%, #FFF7ED 100%);
}
.dark .hero-gradient {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 40%, #1E0A2E 70%, #0F172A 100%);
}

/* Hero glow effects */
.hero-glow-1 {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Gradient button */
.btn-gradient {
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-gradient:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #4338CA 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-orange {
  background: linear-gradient(135deg, #F97316 0%, #EF4444 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}
.btn-orange:hover {
  background: linear-gradient(135deg, #EA6C0A 0%, #DC2626 100%);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
  transform: translateY(-1px);
}

/* Feature card hover */
.feature-card {
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.dark .feature-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Stats counter */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Nav glassmorphism */
.nav-glass {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.dark .nav-glass {
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Review card */
.review-card {
  transition: all 0.3s ease;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}
.dark .review-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Logo pill */
.client-logo {
  transition: all 0.3s ease;
  filter: grayscale(30%);
}
.client-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Section fade-in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Pulse dot */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}
.pulse-dot {
  animation: pulse-dot 2s infinite;
}

/* Steps connector line */
.step-line {
  position: absolute;
  top: 24px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: linear-gradient(90deg, #2563EB, #7C3AED);
  opacity: 0.3;
}

/* Dashboard mockup */
.mockup-shadow {
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.15), 0 10px 25px rgba(0,0,0,0.1);
}

/* Ticker scroll for clients */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-inner {
  animation: ticker 30s linear infinite;
  display: flex;
  width: max-content;
}
.ticker-inner:hover {
  animation-play-state: paused;
}

/* Doc sidebar */
.doc-sidebar-link {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.doc-sidebar-link:hover {
  border-left-color: #2563EB;
  background: rgba(37, 99, 235, 0.05);
}
.doc-sidebar-link.active {
  border-left-color: #2563EB;
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
  font-weight: 600;
}
.dark .doc-sidebar-link.active {
  background: rgba(99, 102, 241, 0.15);
  color: #818CF8;
}

/* Admin sidebar */
.admin-nav-link {
  transition: all 0.2s ease;
  border-radius: 8px;
}
.admin-nav-link:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #4F46E5;
}
.admin-nav-link.active {
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  color: white;
}

/* Star rating */
.star-filled { color: #F59E0B; }
.star-empty { color: #D1D5DB; }

/* Badge */
.badge-green { background: #DCFCE7; color: #166534; }
.badge-yellow { background: #FEF9C3; color: #854D0E; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.badge-blue { background: #DBEAFE; color: #1E40AF; }
.dark .badge-green { background: rgba(16, 185, 129, 0.2); color: #6EE7B7; }
.dark .badge-yellow { background: rgba(245, 158, 11, 0.2); color: #FCD34D; }
.dark .badge-red { background: rgba(239, 68, 68, 0.2); color: #FCA5A5; }
.dark .badge-blue { background: rgba(37, 99, 235, 0.2); color: #93C5FD; }

/* Mobile menu */
#mobile-menu {
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
}
#mobile-menu.open {
  max-height: 500px;
}

/* Pricing card highlight */
.pricing-popular {
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.3);
}

/* Code block */
.code-block {
  background: #1e293b;
  color: #e2e8f0;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  border-radius: 10px;
  overflow-x: auto;
}

/* Table responsive */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

/* Focus styles */
*:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: rgba(37, 99, 235, 0.2);
  color: inherit;
}
