/* AI Workforce Watch - Stylesheet */

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

:root {
  --primary: #1e293b;
  --primary-light: #334155;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --risk-low: #16a34a;
  --risk-low-bg: #f0fdf4;
  --risk-moderate: #d97706;
  --risk-moderate-bg: #fffbeb;
  --risk-high: #dc2626;
  --risk-high-bg: #fef2f2;
  --risk-very-high: #991b1b;
  --risk-medium: #ea580c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --radius: 8px;
  --radius-sm: 4px;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-hover); }

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

h1, h2, h3, h4 { line-height: 1.3; color: var(--primary); font-weight: 700; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-bottom: .75rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }

p { margin-bottom: 1rem; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Container */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 780px; }

/* ---- HEADER / NAV ---- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.02em;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ---- HERO ---- */
.hero {
  background: var(--bg-dark);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  max-width: 720px;
  margin: 0 auto 1rem;
  letter-spacing: -.02em;
}

.hero-subtitle {
  color: #94a3b8;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  gap: 0;
}

.hero-search-input {
  flex: 1;
  padding: .875rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #334155;
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: #1e293b;
  color: #fff;
  outline: none;
  transition: border-color .15s;
}
.hero-search-input::placeholder { color: #64748b; }
.hero-search-input:focus { border-color: var(--accent); }

.hero-search-btn {
  padding: .875rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.hero-search-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ---- STATS ---- */
.stats {
  padding: 3.5rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
}

.stat-value {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: .5rem;
}

.stat-description {
  font-size: .95rem;
  color: var(--text-secondary);
  margin-bottom: .5rem;
}

.stat-source {
  font-size: .8rem;
  color: var(--text-muted);
  font-style: normal;
  display: block;
}

/* ---- SECTION HEADER ---- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-link {
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ---- LATEST ANALYSIS ---- */
.latest-analysis {
  padding: 4rem 0;
  background: var(--bg-alt);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.article-date {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
  display: block;
}

.article-title {
  font-size: 1.1rem;
  margin-bottom: .75rem;
  line-height: 1.4;
}
.article-title a { color: var(--primary); }
.article-title a:hover { color: var(--accent); }

.article-excerpt {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.article-cta {
  font-size: .875rem;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
}

/* ---- INDUSTRIES ---- */
.industries {
  padding: 4rem 0;
  background: var(--bg);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.industry-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.industry-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.industry-name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: .375rem;
}

.industry-stat {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ---- NEWSLETTER ---- */
.newsletter {
  padding: 4rem 0;
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
}

.newsletter h2 { color: #fff; margin-bottom: .75rem; }

.newsletter-description {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: .875rem 1.25rem;
  font-size: .95rem;
  font-family: inherit;
  border: 2px solid #334155;
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: #1e293b;
  color: #fff;
  outline: none;
}
.newsletter-input::placeholder { color: #64748b; }
.newsletter-input:focus { border-color: var(--accent); }

.newsletter-btn {
  padding: .875rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.newsletter-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.newsletter-privacy {
  font-size: .8rem;
  color: #64748b;
  margin-top: 1rem;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 3.5rem 0 0;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
}

.footer-description {
  font-size: .875rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-heading {
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: .5rem; }

.footer-links a {
  color: #94a3b8;
  font-size: .875rem;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: .8rem;
  color: #64748b;
  margin: 0;
}

/* ---- PAGE HEADER (Methodology, etc.) ---- */
.page-header {
  background: var(--bg-dark);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.page-header h1 { color: #fff; }

.page-subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: .75rem auto 0;
}

/* ---- CONTENT SECTIONS (Methodology) ---- */
.content-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.content-section:last-of-type { border-bottom: none; }

.content-section p { color: var(--text-secondary); max-width: 780px; }
.content-section h2 { margin-bottom: 1rem; }

.source-list, .factor-list, .timeline-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.source-item, .factor-item, .timeline-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.source-item h3, .factor-item h3, .timeline-item h3 { color: var(--primary); }
.source-item p, .factor-item p, .timeline-item p { color: var(--text-secondary); margin: 0; font-size: .925rem; }

/* Risk Categories (Methodology) */
.risk-categories {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.risk-category {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid;
}
.risk-category p { margin: .5rem 0 0; font-size: .9rem; color: var(--text-secondary); }

.risk-low { border-color: var(--risk-low); background: var(--risk-low-bg); }
.risk-moderate { border-color: var(--risk-moderate); background: var(--risk-moderate-bg); }
.risk-high { border-color: var(--risk-high); background: var(--risk-high-bg); }
.risk-very-high { border-color: var(--risk-very-high); background: #fef2f2; }

.risk-range {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-right: .75rem;
}

.risk-label {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-secondary);
}

.limitations-list {
  padding-left: 1.5rem;
}
.limitations-list li {
  color: var(--text-secondary);
  margin-bottom: .75rem;
  font-size: .925rem;
}

/* ---- BLOG INDEX ---- */
.blog-index-header {
  background: var(--bg-dark);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.blog-index-header h1 { color: #fff; }

.blog-index-intro {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: .75rem auto 0;
}

.blog-index { padding: 3rem 0 4rem; background: var(--bg-alt); }

/* ---- BLOG ARTICLE ---- */
.blog-article { padding: 3rem 0 4rem; }
.blog-article .container { max-width: 780px; }

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.article-header h1 { margin: .5rem 0 1rem; }

.article-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.blog-article section { margin-bottom: 2rem; }
.blog-article h2 { margin-top: 2rem; margin-bottom: 1rem; }
.blog-article p { color: var(--text-secondary); line-height: 1.7; }

/* ---- INDUSTRY PAGES ---- */
.industry-hero {
  background: var(--bg-dark);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.industry-hero h1 { color: #fff; max-width: 720px; margin: 0 auto; }

.industry-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
}

.industry-subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 640px;
  margin: 1rem auto 0;
}

.industry-meta {
  color: #64748b;
  font-size: .85rem;
  margin-top: 1rem;
}

.industry-content {
  padding: 3rem 0 4rem;
}
.industry-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.industry-content p { color: var(--text-secondary); line-height: 1.7; }

.expert-quote {
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.expert-quote p { color: var(--text); font-style: italic; margin-bottom: .5rem; }
.expert-quote cite { font-size: .85rem; color: var(--text-muted); font-style: normal; }

/* Risk Table */
.risk-table-container { overflow-x: auto; margin: 1.5rem 0; }

.risk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.risk-table th, .risk-table td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.risk-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--primary);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.risk-table td { color: var(--text-secondary); }

.risk-score {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .85rem;
}
.risk-score.risk-high { background: var(--risk-high-bg); color: var(--risk-high); }
.risk-score.risk-medium { background: var(--risk-moderate-bg); color: var(--risk-medium); }
.risk-score.risk-low { background: var(--risk-low-bg); color: var(--risk-low); }

/* Timeline (Industry pages) */
.timeline {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.timeline-phase {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.timeline-phase h3 { color: var(--primary); margin-bottom: .375rem; }
.timeline-phase p { color: var(--text-secondary); margin: 0; font-size: .925rem; }

.recommendations-list {
  padding-left: 1.5rem;
}
.recommendations-list li {
  color: var(--text-secondary);
  margin-bottom: .5rem;
  font-size: .925rem;
}

/* ---- 404 PAGE ---- */
.error-page {
  padding: 6rem 0;
  text-align: center;
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-message {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 1rem auto 2rem;
}

.error-nav { margin-top: 2rem; }

.error-links {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.error-link {
  display: inline-block;
  padding: .625rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .9rem;
  transition: background .15s;
}
.error-link:hover { background: var(--accent-hover); color: #fff; }

/* ---- MOBILE ---- */
@media (max-width: 1024px) {
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: .75rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { display: flex; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-search { flex-direction: column; gap: .5rem; }
  .hero-search-input { border-right: 2px solid #334155; border-radius: var(--radius); }
  .hero-search-input:focus { border-color: var(--accent); }
  .hero-search-btn { border-radius: var(--radius); }

  .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
  .stat-card { padding: 1rem; }
  .stat-value { font-size: 2rem; }

  .articles-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }

  .section-header { flex-direction: column; gap: .5rem; }

  .newsletter-form { flex-direction: column; gap: .5rem; }
  .newsletter-input { border-right: 2px solid #334155; border-radius: var(--radius); }
  .newsletter-input:focus { border-color: var(--accent); }
  .newsletter-btn { border-radius: var(--radius); }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .error-code { font-size: 3.5rem; }
}

@media (max-width: 480px) {
  .industries-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
  .container { padding: 0 1rem; }
}

/* v2 */
