/* Blog styles for listing.plexvo.ai
   Design tokens matched to the main app (Inter, #FF9900, #232F3E) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

/* Base */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #f3f4f6;
  color: #111827;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Header ── */
.blog-header {
  background-color: #232F3E;
  color: #ffffff;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.blog-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.blog-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.blog-logo:hover { text-decoration: none; opacity: 0.9; }

.blog-logo-accent { color: #FF9900; }

.blog-nav { display: flex; align-items: center; gap: 24px; }

.blog-nav a {
  color: #d1d5db;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.blog-nav a:hover { color: #ffffff; text-decoration: none; }

.blog-nav-cta {
  background-color: #FF9900 !important;
  color: #ffffff !important;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background-color 0.15s;
}

.blog-nav-cta:hover { background-color: #e68a00 !important; }

/* ── Blog Index ── */
.blog-index {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px;
}

.blog-index-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-index-subtitle {
  color: #6b7280;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.article-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.article-card-category {
  display: inline-block;
  background: #FFF7ED;
  color: #C2410C;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.article-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.article-card-title a { color: #111827; }
.article-card-title a:hover { color: #FF9900; text-decoration: none; }

.article-card-excerpt {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-card-meta {
  color: #9ca3af;
  font-size: 0.8rem;
  display: flex;
  gap: 16px;
}

/* ── Article Page ── */
.article-container {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.article-header { margin-bottom: 40px; }

.article-category {
  display: inline-block;
  background: #FFF7ED;
  color: #C2410C;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article-meta {
  color: #6b7280;
  font-size: 0.875rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-body { font-size: 1.05rem; }

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

.article-body p { margin-bottom: 1.25em; }

.article-body strong { font-weight: 600; }

.article-body ul, .article-body ol {
  margin: 0 0 1.25em 1.5em;
}

.article-body li { margin-bottom: 0.5em; }

.article-body blockquote {
  border-left: 4px solid #FF9900;
  background: #FFFBEB;
  padding: 16px 20px;
  margin: 1.5em 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: #92400E;
}

.article-body blockquote p { margin-bottom: 0.5em; }
.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 40px 0;
}

/* Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
}

.article-body thead th {
  background: #f9fafb;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

.article-body tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.article-body tbody tr:hover { background: #f9fafb; }

/* Comparison boxes */
.comparison-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin: 1.5em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.comparison-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.comparison-label--original { color: #DC2626; }
.comparison-label--rewritten { color: #16A34A; }

.comparison-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
}

/* Key findings summary */
.findings-list {
  list-style: none;
  margin: 1.5em 0;
  padding: 0;
  counter-reset: finding;
}

.findings-list li {
  counter-increment: finding;
  padding: 12px 0 12px 48px;
  position: relative;
  border-bottom: 1px solid #f3f4f6;
}

.findings-list li::before {
  content: counter(finding);
  position: absolute;
  left: 0;
  top: 12px;
  width: 32px;
  height: 32px;
  background: #FF9900;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Related Articles */
.related-articles {
  border-top: 1px solid #e5e7eb;
  margin: 48px 0 0;
  padding: 32px 0 0;
}

.related-articles h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-articles li {
  margin-bottom: 8px;
}

.related-articles a {
  color: #111827;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.5;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 2px;
}

.related-articles a:hover {
  color: #FF9900;
  border-bottom-color: #FF9900;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #232F3E 0%, #37475A 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 40px 32px;
  margin: 48px 0 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  border: none !important;
  padding: 0 !important;
  color: #ffffff;
}

.cta-section p {
  color: #d1d5db;
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: #FF9900;
  color: #ffffff;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.cta-button:hover {
  background: #e68a00;
  text-decoration: none;
  transform: translateY(-1px);
}

.cta-note {
  color: #9ca3af;
  font-size: 0.8rem;
  margin-top: 12px;
}

/* Footer */
.blog-footer {
  text-align: center;
  padding: 32px 20px;
  color: #9ca3af;
  font-size: 0.8rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 48px;
}

.blog-footer a { color: #6b7280; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .article-title { font-size: 1.6rem; }
  .article-body h2 { font-size: 1.3rem; }
  .blog-index-title { font-size: 1.5rem; }
  .article-card { padding: 24px; }
  .cta-section { padding: 32px 20px; }
  .blog-nav { gap: 12px; }
  .blog-nav a:not(.blog-nav-cta) { display: none; }
  .article-body table { font-size: 0.8rem; }
  .article-body thead th, .article-body tbody td { padding: 6px 8px; }
}

@media (max-width: 480px) {
  .article-title { font-size: 1.35rem; }
  .article-container { padding: 32px 16px 60px; }
  .blog-index { padding: 32px 16px; }
  .comparison-box { padding: 16px; }
}
