/* ArchiveHub Production SaaS CSS - Vercel / Linear Design System */

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

:root {
  --bg-pitch: #000000;
  --bg-surface: #0a0a0a;
  --bg-elevation: #141414;
  --bg-hover: #1f1f1f;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-muted: rgba(255, 255, 255, 0.14);
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
}

html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-pitch);
  color: var(--text-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 40%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Vercel Glass Panel */
.glass-panel {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  max-width: 100%;
}

.glass-card {
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 100%;
}

.glass-card:hover {
  background: rgba(25, 25, 25, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.9);
}

/* Touch Friendly Glass Inputs */
.glass-input {
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  min-height: 44px; /* Accessible Touch Target */
  max-width: 100%;
  transition: all 0.15s ease;
}

.glass-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Navigation active tab highlight */
.nav-item.active {
  background: rgba(59, 130, 246, 0.12);
  border-left: 3px solid var(--accent-blue);
  color: #60a5fa;
  font-weight: 600;
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 37%, rgba(255, 255, 255, 0.03) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* Modal Animations & Mobile Fitting */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-content {
  animation: modal-slide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100vw - 2rem) !important;
}

@keyframes modal-slide {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
