/* ============================================
   BLOG STYLES
   Newspaper-style aesthetic for location insights
   ============================================ */

/* ============================================
   BLOG HERO
   ============================================ */
.blog-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.blog-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.blog-hero .section-label {
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.experimental-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.25rem;
}

.experimental-notice {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.experimental-explainer {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
}

.blog-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.blog-hero-subtitle {
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   BLOG FILTERS
   ============================================ */
.blog-filters {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem;
  position: sticky;
  top: 60px;
  z-index: 50;
}

.blog-filters-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-select,
.filter-input {
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #1e293b;
  min-width: 160px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-select:hover,
.filter-input:hover {
  border-color: #cbd5e1;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-group {
  flex: 1;
  min-width: 200px;
}

.search-group .filter-input {
  width: 100%;
}

/* ============================================
   FEATURED POST
   ============================================ */
.featured-post {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.featured-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.featured-card-link:hover {
  transform: translateY(-4px);
}

.featured-card-link:hover .featured-card {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s;
}

.featured-image {
  position: relative;
  aspect-ratio: 16/10;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #2563eb;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
}

.featured-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.post-topic {
  color: #2563eb;
  font-weight: 600;
}

.post-date {
  color: #64748b;
}

.featured-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.featured-subheadline {
  color: #475569;
  font-size: 1.05rem;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.featured-lead {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s;
}

.read-more-link:hover {
  gap: 0.75rem;
}

.read-more-link .arrow {
  font-size: 1.2em;
}

/* ============================================
   BLOG GRID
   ============================================ */
.blog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.post-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.post-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card-image {
  position: relative;
  aspect-ratio: 16/9;
  background: #e2e8f0;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-topic {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
}

.post-card-content {
  padding: 1.25rem;
}

.post-card-date {
  font-size: 0.8rem;
  color: #64748b;
  display: block;
  margin-bottom: 0.5rem;
}

.post-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.post-card-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #64748b;
}

.post-card-location svg {
  flex-shrink: 0;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.loading-state,
.empty-state,
.error-state {
  text-align: center;
  padding: 4rem 2rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state p,
.error-state p,
.loading-state p {
  color: #64748b;
}

.empty-icon svg,
.error-icon svg {
  width: 64px;
  height: 64px;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.error-state h2,
.empty-state h3 {
  color: #334155;
  margin: 0 0 0.5rem;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #2563eb;
  color: #2563eb;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn svg {
  width: 16px;
  height: 16px;
}

.pagination-info {
  color: #64748b;
  font-size: 0.9rem;
}

/* ============================================
   BLOG CTA
   ============================================ */
.blog-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #fff;
  font-size: 2rem;
  margin: 0 0 1rem;
}

.cta-inner p {
  color: #94a3b8;
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

.cta-button {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.cta-button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* ============================================
   ARTICLE PAGE STYLES
   ============================================ */
.article-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #2563eb;
}

.breadcrumb .separator {
  margin: 0 0.5rem;
  color: #cbd5e1;
}

/* Article Header */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.article-header .experimental-banner {
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.article-topic {
  color: #2563eb;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.article-date,
.article-location {
  color: #64748b;
}

.article-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.article-subheadline {
  font-size: 1.25rem;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

/* Stats Banner */
.stats-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.stat-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.stat-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.stat-value.up {
  color: #16a34a;
}

.stat-value.down {
  color: #dc2626;
}

.trend-icon.up {
  color: #16a34a;
}

.trend-icon.down {
  color: #dc2626;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.25rem;
}

/* Article Body */
.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #334155;
}

.lead-paragraph {
  font-size: 1.25rem;
  color: #1e293b;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.body-content p {
  margin-bottom: 1.5rem;
}

/* Pull Quote */
.pull-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
  color: #0f172a;
  border-left: 4px solid #2563eb;
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
}

/* Map Section */
.map-section {
  margin: 2rem 0;
}

.article-map {
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.map-caption {
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.75rem;
}

/* Charts Section */
.charts-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 10px;
}

.charts-section h3 {
  font-size: 1rem;
  color: #475569;
  margin: 0 0 1rem;
  font-weight: 600;
}

.chart-container {
  position: relative;
  height: 250px;
  width: 100%;
}

#article-chart {
  max-height: 250px;
}

/* Article Footer */
.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.tag:hover {
  background: #e2e8f0;
}

/* Share Section */
.share-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.share-label {
  font-size: 0.9rem;
  color: #64748b;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.share-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.share-btn.twitter:hover {
  border-color: #1da1f2;
  color: #1da1f2;
}

.share-btn.linkedin:hover {
  border-color: #0a66c2;
  color: #0a66c2;
}

.share-btn.facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
}

.share-btn.copied {
  border-color: #16a34a;
  color: #16a34a;
}

/* AI Disclaimer */
.ai-disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid #94a3b8;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
}

.ai-disclaimer p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #64748b;
}

/* Article CTA */
.article-cta {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.article-cta h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.article-cta p {
  color: #475569;
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

/* Related Posts */
.related-posts {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}

.related-posts h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: #0f172a;
  margin: 0 0 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.related-card {
  display: block;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.related-card:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.related-topic {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #2563eb;
}

.related-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: #0f172a;
  margin: 0.5rem 0;
  line-height: 1.3;
}

.related-location {
  font-size: 0.8rem;
  color: #64748b;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #0f172a;
  color: #fff;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 3rem;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin: 0 0 1rem;
}

.footer-column a {
  display: block;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: #60a5fa;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  text-align: center;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 900px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-content {
    padding: 1.5rem;
  }

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

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

@media (max-width: 640px) {
  .blog-hero {
    padding: 3rem 1rem;
  }

  .blog-filters-inner {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .filter-select,
  .filter-input {
    width: 100%;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .stats-banner {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-item {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .share-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

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

  .pagination {
    flex-direction: column;
    gap: 1rem;
  }
}
