/* Enverson UGC Network — custom styles complementing Tailwind */

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif-italic {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  letter-spacing: -0.01em;
}

/* Dashed vertical grid lines like ogtool */
.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.grid-lines .container-lines {
  max-width: 80rem;
  margin: 0 auto;
  height: 100%;
  position: relative;
  padding: 0 1.5rem;
}
.grid-lines .lines-row {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
}
.grid-line {
  width: 1px;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 8px,
    rgb(203 213 225 / 0.55) 8px,
    rgb(203 213 225 / 0.55) 16px
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
}

/* Sidebar active state */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  transition: background-color 120ms ease, color 120ms ease;
}
.nav-link:hover {
  background-color: #f3f4f6;
  color: #111827;
}
.nav-link svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  color: #9ca3af;
}
.nav-link.is-active {
  background-color: #eff6ff;
  color: #1d4ed8;
}
.nav-link.is-active svg {
  color: #2563eb;
}

/* Status pill base */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border-width: 1px;
}
.status-pill .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
}

/* Card hover */
.metric-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -10px rgb(0 0 0 / 0.10), 0 4px 10px -4px rgb(0 0 0 / 0.06);
  border-color: #d1d5db;
}

/* Progress bar */
.progress-track {
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #f3f4f6;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background-image: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 9999px;
}

/* Subtle gradient hero backdrop */
.hero-bg {
  background:
    radial-gradient(1200px 400px at 100% -10%, rgb(219 234 254 / 0.55), transparent 60%),
    radial-gradient(900px 360px at -10% 0%, rgb(220 252 231 / 0.45), transparent 60%),
    #ffffff;
}

/* Hide scrollbar but keep scroll */
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* Animated ping dot wrapper */
.ping-wrap {
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
}
.ping-wrap .ping {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: rgb(16 185 129 / 0.75);
  animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.ping-wrap .core {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #10b981;
}
@keyframes ping {
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

/* Tab underline */
.tab-btn {
  position: relative;
  padding: 0.625rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}
.tab-btn:hover { color: #111827; }
.tab-btn.is-active { color: #111827; }
.tab-btn.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background-color: #111827;
  border-radius: 2px;
}
