/* =====================================================
   MapGap Pro — Core Styles
   Option 1: Patina & Linen (2026 Editorial)
   ===================================================== */

:root {
  /* Surface & Canvas Tokens (Washed Linen Foundation) */
  --mg-canvas: #F6F3EE;
  --mg-surface-card: #FFFFFF;
  --mg-surface-subtle: #EDE8DE;
  --mg-border-subtle: #E2DCD0;
  --mg-border-strong: #C9C1B2;

  /* Typography Tokens */
  --mg-text-primary: #1B2124;
  --mg-text-secondary: #5A656B;
  --mg-text-muted: #849199;

  /* Brand Palette (Patina Verdigris Series) */
  --mg-brand-primary: #1E5E63;
  --mg-brand-hover: #174A4E;
  --mg-brand-accent: #5B8A8C;
  --mg-brand-light: #E7EFF0;

  /* Functional Status Tokens */
  --mg-status-alert: #D33B27;      /* Tomato Red / Ranking Deficit */
  --mg-status-alert-bg: #FDF1EF;
  --mg-status-success: #3D7A5A;    /* Botanical Green / Top 3-Pack */
  --mg-status-success-bg: #EEF6F1;
  --mg-status-warning: #DCA134;    /* Warm Amber / Moderate Gap */
  --mg-status-warning-bg: #FDF8ED;

  /* Tactile Physics & Elevation */
  --mg-shadow-tactile: 0 2px 4px rgba(27, 33, 36, 0.04), 
                       0 8px 24px rgba(27, 33, 36, 0.06);
  --mg-radius-card: 14px;
  --mg-radius-input: 10px;
}

/* Base Card Style */
.mg-audit-card {
  background: var(--mg-surface-card);
  border: 1px solid var(--mg-border-subtle);
  border-radius: var(--mg-radius-card);
  box-shadow: var(--mg-shadow-tactile);
  padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mg-audit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(27, 33, 36, 0.06), 
              0 12px 30px rgba(27, 33, 36, 0.08);
}

/* Base */
html, body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--mg-canvas) !important;
  color: var(--mg-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

/* Hero radial glow (clean warm linen aesthetic) */
.hero-glow {
  background: radial-gradient(circle at 50% -10%, rgba(30, 94, 99, 0.07) 0%, var(--mg-canvas) 70%);
  background-color: var(--mg-canvas);
}

/* Score circle glow */
.score-glow {
  box-shadow: 0 0 35px -5px rgba(30, 94, 99, 0.2);
}

/* Prevent email scrapers */
.email-display {
  unicode-bidi: bidi-override;
  direction: ltr;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--mg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--mg-border-strong);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Skeleton loading animation */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-circle {
  border-radius: 50%;
}

/* Print styles for $19 Blueprint PDF export */
@media print {
  body {
    background-color: white !important;
    color: #111827 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Hide everything except the blueprint */
  header,
  #no-id-view,
  #status-pill-container,
  .pricing-section,
  #dfy-progress-card,
  #dfy-modal,
  #policy-modal,
  footer,
  button,
  .no-print {
    display: none !important;
  }

  /* Show and style the blueprint */
  #diy-checklist {
    display: block !important;
    border: 1px solid #d1d5db !important;
    background: white !important;
    color: #111827 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  #diy-checklist * {
    color: #111827 !important;
    border-color: #d1d5db !important;
    background: transparent !important;
  }

  #diy-checklist h3,
  #diy-checklist h4 {
    color: #059669 !important;
  }

  /* Show the audit card for context */
  #audit-view {
    display: block !important;
  }

  #audit-view > div:first-child {
    border: 1px solid #d1d5db !important;
    background: white !important;
    page-break-after: always;
  }

  #audit-view > div:first-child * {
    color: #111827 !important;
    border-color: #d1d5db !important;
  }
}
