/* ==========================================================================
   mCoding.dev — Bespoke Editorial Studio Design System
   Pure, human-crafted aesthetic: No repeating grids, no blueprint crosshairs
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Accent Color Tokens */
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --status-emerald: #10b981;
}

/* Base resets & typography */
html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
}

/* Custom Minimalist Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #090a0f;
}

.light ::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #1e2432;
  border-radius: 9999px;
}

.light ::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Diffuse Ambient Hero Glow (Soft, organic, zero grid) */
.hero-ambient-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.09) 0%, rgba(16, 185, 129, 0.04) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.light .hero-ambient-glow {
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.06) 0%, rgba(16, 185, 129, 0.03) 40%, transparent 70%);
  filter: blur(80px);
}

/* Editorial Panels — Velvety Dark | Pure Crisp White */
.editorial-panel {
  background: #0e1119;
  border: 1px solid #1c2230;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
              0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.light .editorial-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02),
              0 10px 25px -5px rgba(0, 0, 0, 0.04);
}

/* Editorial Cards */
.editorial-card {
  background: #11141e;
  border: 1px solid #1a2130;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
              0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.light .editorial-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03),
              0 4px 12px rgba(0, 0, 0, 0.03);
}

.editorial-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
              0 12px 28px -6px rgba(0, 0, 0, 0.5);
}

.light .editorial-card:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08);
}

/* Refined Minimalist Tags */
.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.375rem;
  background: #090b10;
  color: #94a3b8;
  border: 1px solid #1c2230;
  transition: all 0.15s ease;
}

.light .tag-pill {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.tag-pill:hover {
  color: #38bdf8;
  border-color: #3b82f6;
  background: rgba(37, 99, 235, 0.08);
}

.light .tag-pill:hover {
  color: #2563eb;
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.05);
}

/* Subtle Pulse Indicator */
.status-dot {
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  animation: pulse-ring 2.4s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  60% {
    transform: scale(2.3);
    opacity: 0;
  }
  100% {
    transform: scale(2.3);
    opacity: 0;
  }
}
