/* Shared styles for every article page (articles/*.html and the template). */
.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem 2rem;
}

.article-header {
  margin-bottom: 2rem;
  text-align: center;
}

.article-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 119, 182, 0.1);
  border-radius: 20px;
}

.article-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-top: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-content {
  line-height: 1.7;
  color: var(--gray-700);
}

.article-content h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--black);
}

.article-content h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.article-content p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.article-content ul, 
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.75rem 0 0.75rem 1.5rem;
  font-style: italic;
  color: var(--gray-600);
  background: var(--gray-100);
  border-radius: 0 12px 12px 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.article-content th,
.article-content td {
  border: 1px solid var(--gray-200);
  padding: 0.75rem;
  text-align: left;
}

.article-content th {
  background: var(--gray-100);
  font-weight: 600;
}

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.share-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.share-label {
  font-size: 0.85rem;
  color: var(--gray-500);
}

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

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}

.share-btn.linkedin {
  background: #0077B5;
  color: white;
}

.share-btn.x {
  background: #000000;
  color: white;
}

.share-btn.email {
  background: var(--gray-700);
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  margin-bottom: 1.5rem;
}

.back-button:hover {
  color: var(--accent);
}

.author-bio {
  background: var(--gray-100);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--accent);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.related-articles {
  margin-top: 2rem;
}

.related-articles h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.related-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
}

.related-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .article-container {
    padding: 2rem 1.5rem 3rem 1.5rem;
  }
  .article-header h1 {
    font-size: 1.8rem;
  }
  .article-meta {
    gap: 0.75rem;
    font-size: 0.75rem;
  }
  .share-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media print {
  .navbar, .footer, .back-button, .share-section, .article-cta, .author-bio, .related-articles, #back-to-top-placeholder {
    display: none;
  }
}
  
/* Links, images and dividers inside article text (used by new articles) */
.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--accent-hover);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.article-content hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--gray-200);
}

