/* MarketForge Website — Design System
   Targeting: Apple + Intercom + Linear aesthetic
   Mobile-first, responsive at 375px / 768px / 1024px */

/* =========================================
   CSS Custom Properties
   ========================================= */
:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --dark: #0a0e17;
  --accent: #6c8cff;
  --accent-hover: #5a7ae6;
  --green: #4ecf73;
  --text: #1a1f2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}

/* =========================================
   Reset & Base
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }

/* =========================================
   Typography Scale
   ========================================= */
h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
p { line-height: 1.7; }
small { font-size: 0.875rem; }

/* =========================================
   Layout
   ========================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}
.section--alt {
  background: var(--surface);
}
.section--dark {
  background: var(--dark);
  color: #fff;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-top: 12px;
}

/* =========================================
   Grid
   ========================================= */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.0625rem; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108,140,255,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(0,0,0,0.04);
}

.btn-white {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--bg);
  color: var(--dark);
  transform: translateY(-1px);
}

/* =========================================
   Navigation
   ========================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img { height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:not(.btn):hover {
  color: var(--text);
  background: rgba(0,0,0,0.04);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* =========================================
   Hero
   ========================================= */
.hero {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 120px 0 96px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-ctas .btn-secondary {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}
.hero-ctas .btn-secondary:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* =========================================
   Cards
   ========================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.9375rem; }

/* =========================================
   Badge
   ========================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge--accent { background: rgba(108,140,255,0.12); color: var(--accent); }
.badge--green  { background: rgba(78,207,115,0.12);  color: #2db058; }
.badge--muted  { background: var(--border); color: var(--text-muted); }

/* =========================================
   Pricing Cards
   ========================================= */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg);
}
.pricing-card .popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}
.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
}
.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-card .feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-card .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--text);
}
.pricing-card .feature-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* =========================================
   Forms
   ========================================= */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--text); }

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,140,255,0.15);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* =========================================
   Stat Strip / Social Proof
   ========================================= */
.stat-strip {
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.stat-strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-strip .stat {
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
}
.stat-strip .stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

/* =========================================
   Step Flow (How it Works)
   ========================================= */
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 auto 16px;
}

/* =========================================
   CTA Banner
   ========================================= */
.cta-banner {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 1.125rem; margin-bottom: 36px; }

/* =========================================
   Footer
   ========================================= */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-logo { height: 28px; margin-bottom: 14px; filter: brightness(10); }
.footer-tagline { font-size: 0.9375rem; color: rgba(255,255,255,0.5); max-width: 240px; }
.footer-links h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.9375rem;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 28px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.3);
}

/* =========================================
   Animations
   ========================================= */
@media (prefers-reduced-motion: no-preference) {
  .card, .pricing-card {
    animation: fadeInUp 0.5s ease both;
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .grid-3 .card:nth-child(2) { animation-delay: 0.1s; }
  .grid-3 .card:nth-child(3) { animation-delay: 0.2s; }
  .grid-4 .card:nth-child(2) { animation-delay: 0.07s; }
  .grid-4 .card:nth-child(3) { animation-delay: 0.14s; }
  .grid-4 .card:nth-child(4) { animation-delay: 0.21s; }
}

/* =========================================
   Responsive — 1024px
   ========================================= */
@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* =========================================
   Responsive — 768px
   ========================================= */
@media (max-width: 768px) {
  h1 { font-size: 2.125rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.25rem; }

  .section { padding: 64px 0; }
  .hero { padding: 80px 0 64px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a:not(.btn) { width: 100%; border-radius: 6px; }
  .nav-links .btn { width: 100%; margin-top: 8px; text-align: center; }

  .hero-ctas { flex-direction: column; align-items: center; }

  .stat-strip-inner { gap: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: span 1; }

  .pricing-card.popular { margin-top: 0; }
}

/* =========================================
   Auth Forms — Phase 11
   ========================================= */
.form-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #dc2626;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-input.error {
  border-color: #dc2626;
}

.form-input.success {
  border-color: var(--green);
}

.form-success {
  background: rgba(78, 207, 115, 0.08);
  border: 1px solid rgba(78, 207, 115, 0.3);
  border-radius: 8px;
  color: var(--green);
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Wizard step indicator */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}
.wizard-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}
.wizard-step-dot.active {
  background: var(--accent);
  color: #fff;
}
.wizard-step-dot.complete {
  background: var(--green);
  color: #fff;
}
.wizard-step-line {
  flex: 1;
  max-width: 48px;
  height: 2px;
  background: var(--border);
}
.wizard-step-line.complete {
  background: var(--green);
}

/* Wizard step content */
.wizard-step { display: none; }
.wizard-step.active { display: block; }

/* Auth page helpers */
.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* CRM selector cards for onboarding */
.crm-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.crm-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.crm-option:hover {
  border-color: var(--accent);
}
.crm-option.selected {
  border-color: var(--accent);
  background: rgba(108, 140, 255, 0.05);
}
.crm-option-name {
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Dashboard shell */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Phase 12 — Dashboard Layout */
.dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 64px);
}
.dash-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
}
.dash-nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 24px;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
}
.dash-nav-item:hover {
  background: var(--bg);
  color: var(--text);
}
.dash-nav-item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(var(--accent-rgb, 99, 102, 241), 0.08);
}
.dash-main {
  padding: 32px;
  overflow-y: auto;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.kpi-card .kpi-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}
.kpi-card .kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 4px 0;
}
.kpi-card .kpi-delta {
  font-size: 0.8125rem;
}
.kpi-card .kpi-delta.positive {
  color: var(--green);
}
.kpi-card .kpi-delta.negative {
  color: #ef4444;
}
.chart-container {
  position: relative;
  height: 240px;
}
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.activity-item {
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}
.activity-agent {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.approval-item {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
}
.approval-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Content review cards — Phase 13 */
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.content-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.content-type-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.content-type-badge.blog { background: rgba(108,140,255,0.12); color: var(--accent); }
.content-type-badge.social { background: rgba(78,207,115,0.12); color: var(--green); }
.content-type-badge.email { background: rgba(245,158,11,0.12); color: #f59e0b; }
.content-preview {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.3s;
}
.content-preview.expanded { max-height: 600px; overflow-y: auto; }
.content-toggle {
  font-size: 0.8125rem;
  color: var(--accent);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin-bottom: 12px;
}
.content-actions { display: flex; gap: 8px; }

/* Blog management — Phase 13 */
.blog-list { display: flex; flex-direction: column; gap: 12px; }
.blog-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.blog-item-title { font-weight: 600; margin-bottom: 4px; }
.blog-item-meta { font-size: 0.8125rem; color: var(--text-muted); }
.blog-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.blog-status.published { background: rgba(78,207,115,0.12); color: var(--green); }
.blog-status.draft { background: rgba(245,158,11,0.12); color: #f59e0b; }
.generate-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.generate-bar input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
}
.generate-bar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,140,255,0.12);
}

/* Campaign overview — Phase 13 */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.campaign-channel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.campaign-channel-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.campaign-channel-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.campaign-channel-icon.seo { background: rgba(108,140,255,0.12); color: var(--accent); }
.campaign-channel-icon.ppc { background: rgba(239,68,68,0.12); color: #ef4444; }
.campaign-channel-icon.social { background: rgba(78,207,115,0.12); color: var(--green); }
.campaign-channel-icon.email { background: rgba(245,158,11,0.12); color: #f59e0b; }
.campaign-stat { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.campaign-stat:last-child { border-bottom: none; }
.campaign-stat-label { font-size: 0.8125rem; color: var(--text-muted); }
.campaign-stat-value { font-size: 0.875rem; font-weight: 600; }

/* Phase 14: Reports, Recommendations & Alerts */
.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.report-card h3 { margin-bottom: 12px; }
.report-card .report-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.report-card .report-body {
  font-size: 0.9375rem;
  line-height: 1.7;
  white-space: pre-wrap;
}
.report-card .report-body h2,
.report-card .report-body h3 {
  font-size: 1rem;
  margin: 16px 0 8px;
}

.brief-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.brief-status.approved { background: rgba(78,207,115,0.12); color: var(--green); }
.brief-status.pending { background: rgba(108,140,255,0.12); color: var(--accent); }

.recommendation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.recommendation-list li {
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 0 8px 8px 0;
  margin-bottom: 8px;
  font-size: 0.9375rem;
}

.alert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.alert-severity {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.alert-severity.high { background: rgba(239,68,68,0.12); color: #ef4444; }
.alert-severity.medium { background: rgba(245,158,11,0.12); color: #f59e0b; }
.alert-detail { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.seo-table th {
  text-align: left;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.seo-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.seo-table tr:last-child td { border-bottom: none; }
.seo-table tr:hover { background: var(--bg); }

.export-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: flex-end;
}

@media print {
  .dash-sidebar, .nav, footer, .btn, .export-bar, .generate-bar, .calendar-controls { display: none !important; }
  .dash-layout { display: block !important; }
  .dash-main { padding: 0 !important; }
  .dash-section { display: block !important; page-break-inside: avoid; margin-bottom: 24px; }
  .report-card, .alert-card, .kpi-card { break-inside: avoid; }
  body { background: white; color: black; }
}

/* Social calendar — Phase 13 */
.calendar-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.calendar-controls input, .calendar-controls select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.calendar-header-cell {
  background: var(--surface);
  padding: 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}
.calendar-cell {
  background: var(--surface);
  padding: 8px;
  min-height: 90px;
  font-size: 0.8125rem;
}
.calendar-cell.empty { background: var(--bg); }
.calendar-date { font-weight: 600; font-size: 0.75rem; margin-bottom: 4px; color: var(--text-muted); }
.calendar-post {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-post.instagram { background: rgba(108,140,255,0.12); color: var(--accent); }
.calendar-post.facebook { background: rgba(78,207,115,0.12); color: var(--green); }
.calendar-post.linkedin { background: rgba(139,92,246,0.12); color: #8b5cf6; }

@media (max-width: 768px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    display: none;
  }
  .calendar-grid { grid-template-columns: 1fr; }
  .calendar-header-cell { display: none; }
  .campaign-grid { grid-template-columns: 1fr; }
}
