/* Article Template Styles - Politiken-inspired */
/* Used by all article pages for consistent styling */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  background: #fff;
  color: #1a1a1a;
}

/* Politiken-inspired font system */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
}

.article-container {
  max-width: 1192px;
  width: 80%;
  margin: 0 auto;
  padding: 60px 24px;
  background: #fff;
}

.article-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}

/* Politiken-style bold display heading */
.article-title {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #000;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Highlight important words in title (optional, can use <mark> tag) */
.article-title mark {
  background: transparent;
  padding: 0;
  color: #c41e3a;
  font-weight: 700;
}

.article-meta {
  color: #666;
  font-size: 14px;
  font-weight: 400;
  margin-top: 16px;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 24px;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 2px;
  font-size: 10px;
  color: #666;
  font-weight: 600;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Body text - Politiken uses clean serif for articles */
.article-content {
  font-family: var(--font-serif);
  line-height: 1.75;
  font-size: 20px;
  color: #1a1a1a;
  font-weight: 400;
}

.article-content p {
  margin: 1.4em 0 0.8em 0;
}

/* Reduce spacing when paragraph is directly before a list */
.article-content p + ul,
.article-content p + ol {
  margin-top: 0.5em;
}

/* First paragraph slightly larger (Politiken style) */
.article-content > p:first-of-type {
  font-size: 22px;
  line-height: 1.6;
  font-weight: 400;
  margin-top: 2em;
  margin-bottom: 1.4em;
}

/* Drop cap on first paragraph - newspaper style */
.article-content > p:first-of-type::first-letter {
  font-size: 3.5em;
  line-height: 0.8;
  float: left;
  margin: 0.02em 0.08em -0.05em 0;
  font-weight: 700;
  color: #000;
}

/* Headings - clean sans-serif */
.article-content h1,
.article-content h2,
.article-content h3 {
  font-family: var(--font-sans);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  color: #000;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.article-content h2 {
  font-size: 32px;
  margin-top: 2.5em;
  position: relative;
  padding-top: 0.5em;
}

/* Subtle section marker */
.article-content h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #000;
}

.article-content h3 {
  font-size: 24px;
  margin-top: 2em;
  font-weight: 650;
}

/* Pull quotes - Politiken-inspired emphasis */
.article-content blockquote {
  border-left: 4px solid #000;
  padding: 24px 32px 24px 40px;
  margin: 3em 0;
  background: #fafafa;
  font-family: var(--font-sans);
  color: #000;
  font-style: normal;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
}

/* Opening quote mark */
.article-content blockquote::before {
  content: '"';
  font-size: 60px;
  line-height: 0;
  position: absolute;
  left: 12px;
  top: 28px;
  color: #c41e3a;
  font-family: Georgia, serif;
  font-weight: 700;
}

/* Author/source citation */
.article-content blockquote cite,
.article-content blockquote footer {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 400;
  color: #666;
  font-style: normal;
}

.article-content blockquote cite::before,
.article-content blockquote footer::before {
  content: '— ';
}

.article-content blockquote p {
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Code - minimal styling */
.article-content code {
  background: #f8f9fa;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  color: #2d3748;
  border: 1px solid #e2e8f0;
  text-decoration: none;
}

.article-content pre {
  background: #f8f9fa;
  color: #2d3748;
  padding: 24px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 2em 0;
  line-height: 1.6;
  border: 1px solid #e2e8f0;
  text-decoration: none;
}

.article-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 14px;
  border: none;
  text-decoration: none;
}

/* Images - clean presentation */
.article-content img {
  max-width: 100%;
  height: auto;
  margin: 2.5em 0;
  border-radius: 0;
}

/* Tables - clean minimal style */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-family: var(--font-sans);
  font-size: 16px;
}

.article-content table thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 2px solid #d0d0d0;
  color: #000;
}

.article-content table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.6;
}

.article-content table tbody tr:last-child td {
  border-bottom: none;
}

/* Lists - serif body font - FORCE IT */
.article-content ul,
.article-content ol {
  margin: 2em 0 1em 0;
  padding-left: 1.5em;
}

.article-content ul li,
.article-content ol li,
.article-content li {
  margin: 0.35em 0 !important;
  line-height: 1.4 !important;
  padding-left: 0.5em !important;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  color: #1a1a1a !important;
}

/* Paragraphs within list items - reduce margin */
.article-content li p {
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* Strong within lists */
.article-content li strong {
  font-weight: 600 !important;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif !important;
  font-size: 20px !important;
}

/* Nested lists */
.article-content li > ul,
.article-content li > ol {
  margin: 0.5em 0;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 20px;
}

/* Custom bullet points */
.article-content ul li {
  list-style: none;
  position: relative;
}

.article-content ul li::before {
  content: '•';
  position: absolute;
  left: -1em;
  color: #000;
  font-weight: 700;
}

/* Strong - bolder weight */
.article-content strong {
  font-weight: 400;
  color: #000;
}

/* Highlight/mark - Politiken red accent */
.article-content mark {
  background: transparent;
  color: #c41e3a;
  font-weight: 700;
}

/* Links - underlined */
.article-content a {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.article-content a:hover {
  opacity: 0.7;
}

/* Horizontal rules */
.article-content hr {
  border: none;
  text-align: center;
  margin: 4em 0;
}

/* Three dots section break */
.article-content hr::before {
  content: '···';
  letter-spacing: 1em;
  color: #999;
  font-size: 20px;
}

/* Navigation - Politiken style */
.back-link {
  display: inline-block;
  margin-top: 48px;
  margin-right: 12px;
  padding: 12px 20px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 0;
  transition: opacity 0.2s;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.back-link:hover {
  opacity: 0.85;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .article-container {
    width: 95%;
    padding: 40px 20px;
  }
  
  .article-title {
    font-size: 32px;
  }
  
  .article-content {
    font-size: 18px;
  }
  
  .article-content > p:first-of-type {
    font-size: 20px;
  }
  
  .article-content h2 {
    font-size: 26px;
  }
  
  .article-content h3 {
    font-size: 22px;
  }
  
  .article-content blockquote {
    padding: 20px 24px 20px 36px;
    margin: 2em 0;
    font-size: 16px;
  }
  
  .article-content blockquote::before {
    font-size: 50px;
    left: 10px;
    top: 22px;
  }
}

/* Checkbox lists - custom styled */
.article-content .checkbox-list {
  list-style: none;
  padding-left: 1.5em;
}

.article-content .checkbox-list li {
  padding-left: 1.6em !important;
  position: relative;
  margin: 0.6em 0 !important;
}

.article-content .checkbox-list li::before {
  content: '\2610';
  position: absolute;
  left: 0;
  font-size: 18px;
  color: #666;
  font-family: Arial, sans-serif;
}

/* Draft mode banner */
.draft-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ff6b6b;
  color: white;
  padding: 12px 24px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.draft-banner-spacer {
  height: 46px;
}

/* Mermaid diagram styling to match article */
.article-content .mermaid {
  margin: 2.5em 0;
  padding: 2em;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  text-align: center;
}

/* Ensure mermaid text matches article */
.article-content .mermaid svg {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  max-width: 100%;
  height: auto;
}
