/* InkLink — SpaceX Modern Monochrome Design System */

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

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --bg-primary: #000000;
  --bg-surface: #0a0a0c;
  --bg-surface-elevated: #111114;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body, button, input, select, textarea, optgroup {
  font-family: var(--font-sans);
}

body {
  background-color: #000000;
  color: #f4f4f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html:not(.dark) body {
  background-color: #ffffff;
  color: #09090b;
}

code, .font-mono, #slug-domain-prefix, #input-slug {
  font-family: var(--font-mono);
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}

html:not(.dark) ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Glass & Surface Cards (SpaceX Precision Aerospace Aesthetic) */
.card-surface {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html:not(.dark) .card-surface {
  background: rgba(250, 250, 250, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.card-elevated {
  background: rgba(12, 12, 15, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

html:not(.dark) .card-elevated {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}

/* Modal Backdrop */
.modal-overlay {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Subtle Monochrome Glows */
.glow-primary {
  box-shadow: 0 0 25px -4px rgba(255, 255, 255, 0.2);
}

.glow-emerald {
  box-shadow: 0 0 15px -3px rgba(16, 185, 129, 0.3);
}

/* Input Fields */
input, select, textarea {
  transition: all 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15) !important;
}

html:not(.dark) input:focus, html:not(.dark) select:focus, html:not(.dark) textarea:focus {
  border-color: rgba(0, 0, 0, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1) !important;
}

/* High-Contrast SpaceX Primary Button */
.btn-primary {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 700;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.12);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover:not(:disabled) {
  background: #e4e4e7 !important;
  color: #000000 !important;
  border-color: #e4e4e7;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

html:not(.dark) .btn-primary {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

html:not(.dark) .btn-primary:hover:not(:disabled) {
  background: #27272a !important;
  color: #ffffff !important;
  border-color: #27272a;
}

/* Secondary Button (SpaceX Ghost Outline) */
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Segmented Control Pills */
.nav-pill-active {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}

html:not(.dark) .nav-pill-active {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
