/* ═══════════════════════════════════════════════════════════════
   ATRACAI Design System — Dark Ops Theme
   Source of truth for all pages
   ═══════════════════════════════════════════════════════════════ */

/* ═══ CSS VARIABLES ═══ */
:root {
  --bg-deep: #040810;
  --bg-surface: #0A1220;
  --bg-card: #0E1A2B;
  --bg-elevated: #132237;
  --border: #1B3050;
  --border-bright: #234068;
  --text-primary: #E8EEF4;
  --text-secondary: #8899AA;
  --text-dim: #556677;
  --accent-cyan: #00E5FF;
  --accent-teal: #00BFA5;
  --accent-amber: #FFB300;
  --accent-red: #FF3D00;
  --accent-blue: #448AFF;
  --accent-purple: #B388FF;
  --accent-green: #69F0AE;
  --accent-orange: #FF9100;

  /* Vessel type colors */
  --type-general: #448AFF;
  --type-bulk: #FF9100;
  --type-tanker: #B388FF;
  --type-vehicle: #69F0AE;
  --type-container: #00E5FF;
  --type-hazard: #FF3D00;
  --type-passenger: #FFD740;
}

/* ═══ RESET ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ═══ TYPOGRAPHY ═══ */
.font-heading { font-family: 'Chakra Petch', sans-serif; }
.font-body { font-family: 'Outfit', sans-serif; }
.font-mono { font-family: 'IBM Plex Mono', monospace; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-dim { color: var(--text-dim); }

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* ═══ KEYFRAME ANIMATIONS ═══ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--accent-green); }
  50% { opacity: 0.5; box-shadow: 0 0 14px var(--accent-green); }
}

@keyframes scanline {
  0% { top: -2px; }
  100% { top: 100vh; }
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes mount {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Animation utility classes */
.anim-in { animation: fade-up 0.4s ease forwards; }
.anim-d1 { animation-delay: 0.05s; opacity: 0; }
.anim-d2 { animation-delay: 0.1s; opacity: 0; }
.anim-d3 { animation-delay: 0.15s; opacity: 0; }
.anim-d4 { animation-delay: 0.2s; opacity: 0; }
.anim-d5 { animation-delay: 0.25s; opacity: 0; }
.anim-d6 { animation-delay: 0.3s; opacity: 0; }

/* ═══ GRID BACKGROUND (optional overlay) ═══ */
.bg-grid::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(27,48,80,0.15) 59px, rgba(27,48,80,0.15) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(27,48,80,0.15) 59px, rgba(27,48,80,0.15) 60px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* Scanline effect */
.bg-scanline::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.3;
  animation: scanline 4s linear infinite;
  z-index: 1;
  pointer-events: none;
}

/* ═══ SPINNER ═══ */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ═══ RESPONSIVE BREAKPOINTS ═══ */
@media (max-width: 1024px) {
  .hide-tablet { display: none !important; }
}

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

@media (max-width: 600px) {
  .hide-small { display: none !important; }
}
