/* ═══════════════════════════════════════════════════════════════
   Collaborative Marketing — Shared Styles (common.css)
   Loaded on all pages to reduce duplication and enable caching.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-l: #EEF2FF;
  --purple: #7C3AED;
  --text: #0F1629;
  --text-2: #4A5578;
  --text-3: #8892AC;
  --border: #E4E7EF;
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --success: #059669;
  --success-l: #ECFDF5;
  --success-b: #A7F3D0;
  --danger: #DC2626;
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

/* ── Accessibility: Skip Link ──────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  font-size: 14px;
  transition: top 0.2s;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}

/* ── Accessibility: Focus Visible ──────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Remove outline for mouse clicks but keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── Accessibility: Reduced Motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Screen Reader Only ────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Cookie Consent Banner ─────────────────────────────────── */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  color: #fff;
  padding: 16px 24px;
  z-index: 10000;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  box-shadow: 0 -2px 10px rgba(0,0,0,.3);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-consent p {
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.cookie-consent a {
  color: #7c83ff;
  text-decoration: underline;
}
.cookie-consent__buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-consent__accept {
  background: #7c83ff;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.cookie-consent__accept:hover {
  background: #6b73ee;
}
.cookie-consent__decline {
  background: transparent;
  color: #ccc;
  border: 1px solid #555;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.cookie-consent__decline:hover {
  border-color: #888;
  color: #fff;
}

/* ── Shared Footer ─────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}
.footer a {
  color: var(--text-3);
  text-decoration: none;
  margin: 0 4px;
}
.footer a:hover {
  color: var(--primary);
}
.footer a.footer-cta {
  color: var(--primary);
}

/* ── Responsive table wrapper ──────────────────────────────── */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
