/* ============================================================
   Hawk Eye AI Dashboard - Design System
   Ported from existing hawkeyeai.io sites
   ============================================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --bg-primary: #0A0A0F;
  --bg-secondary: #111118;
  --bg-card: #14141F;
  --bg-card-hover: #1A1A2A;
  --bg-nav: rgba(10, 10, 15, 0.85);
  --bg-input: #1A1A28;

  --border-subtle: #1E1E30;
  --border-active: #2A2A45;

  --neon-cyan: #00FFFF;
  --neon-magenta: #FF00FF;
  --neon-blue: #2E8BFF;
  --neon-cyan-dim: #00CCCC;
  --neon-magenta-dim: #CC00CC;

  --text-primary: #F0F0F5;
  --text-secondary: #A0A0B5;
  --text-tertiary: #606075;

  --glow-cyan: 0 0 10px rgba(0, 255, 255, 0.3), 0 0 40px rgba(0, 255, 255, 0.1);
  --glow-magenta: 0 0 10px rgba(255, 0, 255, 0.3), 0 0 40px rgba(255, 0, 255, 0.1);
  --glow-cyan-strong: 0 0 15px rgba(0, 255, 255, 0.5), 0 0 60px rgba(0, 255, 255, 0.2);

  --gradient-primary: linear-gradient(135deg, #00FFFF, #FF00FF);
  --gradient-cta: linear-gradient(135deg, #00FFFF 0%, #2E8BFF 50%, #FF00FF 100%);

  --section-padding: clamp(3rem, 6vw, 6rem);
  --container-max: 1200px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--neon-cyan-dim);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  height: 300px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-user {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #0A0A0F;
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan-strong);
  color: #0A0A0F;
}

.btn-outline {
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
}

.btn-outline:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-danger {
  background: transparent;
  color: var(--neon-magenta);
  border: 1px solid var(--neon-magenta);
}

.btn-danger:hover {
  background: rgba(255, 0, 255, 0.1);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.03);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
}

/* --- Labels & Badges --- */
.label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-cyan {
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 255, 255, 0.3);
  background: rgba(0, 255, 255, 0.08);
}

.badge-magenta {
  color: var(--neon-magenta);
  border: 1px solid rgba(255, 0, 255, 0.3);
  background: rgba(255, 0, 255, 0.08);
}

.badge-dim {
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
}

.badge-yellow {
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.08);
}

.badge-green {
  color: #00FF88;
  border: 1px solid rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.08);
}

.badge-blue {
  color: var(--neon-blue);
  border: 1px solid rgba(46, 139, 255, 0.3);
  background: rgba(46, 139, 255, 0.08);
}

/* --- Forms / Inputs --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-error {
  color: var(--neon-magenta);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* --- Section --- */
.section {
  padding: var(--section-padding) 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-brand span {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-cyan { color: var(--neon-cyan); }
.text-magenta { color: var(--neon-magenta); }
.text-muted { color: var(--text-tertiary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

/* --- Loading Spinner --- */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

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

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-tertiary);
}

.loading-state p {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-tertiary);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  stroke: var(--text-tertiary);
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    height: 60px;
  }

  .nav-logo img {
    height: 50px;
  }
}
