/* editorial.css - GelliedLiberta Creative Developer Design System */

:root {
  --bg-dark: #09090b;
  --bg-card: rgba(18, 19, 24, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.15);
  --accent-emerald: #10b981;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: #f4f4f5;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: #3b82f6;
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Ambient Radial Background & Mesh Grid */
.bg-ambient-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 100%);
}

.radial-glow-hero {
  background: radial-gradient(600px circle at 50% 20%, rgba(59, 130, 246, 0.08), transparent 70%);
}

.radial-glow-spot {
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.04), transparent 80%);
}

/* Editorial Typography */
.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.font-editorial {
  font-family: 'Syne', sans-serif;
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

/* Hairline Glass Cards */
.editorial-card {
  background: rgba(18, 19, 24, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.editorial-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

/* Interactive Magnetic Button */
.btn-primary-editorial {
  background-color: #f4f4f5;
  color: #09090b;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 20px -6px rgba(255, 255, 255, 0.15);
}

.btn-primary-editorial:hover {
  background-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 12px 24px -6px rgba(255, 255, 255, 0.25);
}

.btn-secondary-editorial {
  background-color: rgba(255, 255, 255, 0.04);
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary-editorial:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Badges & Telemetry Chips */
.tag-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tag-chip-active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

/* Pulse indicator animation */
@keyframes status-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.status-dot-active {
  animation: status-pulse 2.5s infinite;
}

/* Modal and Drawer transitions */
.modal-backdrop {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  transform: translateY(20px) scale(0.98);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-panel {
  transform: translateY(0) scale(1);
}

/* Filter Tab Transitions */
.filter-tab {
  transition: all 0.2s ease-in-out;
}
.filter-tab.active {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
}

/* Toast Notifications */
.toast-notice {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Social Icon & Share Button Micro-interactions */
.social-icon-btn {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.social-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.5);
}

.share-btn {
  transition: all 0.18s ease-in-out;
}
.share-btn:hover {
  transform: scale(1.08);
}
.share-btn:active {
  transform: scale(0.95);
}

.copy-link-btn:active {
  transform: scale(0.96);
}
