/* OpsPulse Shared Styles - Consistent design tokens */

:root {
  /* Brand colors */
  --accent: #6366f1;
  --accent-dark: #4f46e5;
  --accent-light: #818cf8;

  /* Background colors */
  --bg: #0f172a;
  --bg-gradient: linear-gradient(180deg, #0b0814 0%, #120d22 48%, #0a0917 100%);
  --bg-glow: radial-gradient(1200px 700px at 8% -12%, rgba(139, 92, 246, 0.20), transparent 55%),
              radial-gradient(900px 560px at 92% -18%, rgba(99, 102, 241, 0.14), transparent 52%);

  /* Surface colors */
  --surface: #1e293b;
  --surface-light: #334155;
  --surface-hover: #475569;

  /* Text colors */
  --text: #f1f5f9;
  --text-muted: #94a3b8;

  /* Status colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
}

/* Base reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-glow), var(--bg-gradient);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-attachment: scroll;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo sizing - consistent across all pages */
.site-logo {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.28));
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .site-logo { height: 36px; }
}

/* Header - consistent nav */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--surface);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 60px;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.top-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.top-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition-normal);
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface-light);
}

.btn-secondary:hover {
  background: var(--surface-light);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}

.card:hover {
  border-color: rgba(148, 163, 184, 0.2);
}

/* Footer */
footer {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--surface);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer a {
  color: var(--accent-light);
  text-decoration: none;
}

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

/* Utility classes */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-light); }
.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
