/* ========================================
   TABLE SHARE - BLOG STYLES
   Professional blog formatting
   ======================================== */

/* Blog Layout - Centered with optimal reading width (50-75 characters per line) */
.blog-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem;
  line-height: 1.5;
  text-align: left;
}

/* Blog Header */
.blog-header {
  background: var(--bg-color);
  border-bottom: 2px solid var(--border-color);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-header a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-color);
}

.blog-header a:hover {
  background: transparent !important;
  opacity: 0.8;
}

.blog-header-logo {
  width: 32px;
  height: 32px;
}

[data-theme="dark"] .blog-header-logo {
  filter: invert(1);
}

.blog-theme-toggle {
  background: transparent;
  border: 2px solid var(--border-color);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-color);
  min-width: 50px;
}

.blog-theme-toggle:hover {
  opacity: 0.8;
}

/* Blog Navigation */
.blog-nav {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.blog-back-link {
  color: var(--link-color);
  text-decoration: none;
}

.blog-back-link:hover {
  text-decoration: underline;
}

/* Blog Title & Meta */
.blog-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.blog-subtitle {
  font-size: 1.25rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 3rem;
  line-height: 1.5;
}

.blog-meta {
  color: var(--text-color);
  opacity: 0.6;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* Blog Content Typography - Industry standard spacing */
.blog-content h2 {
  font-size: 2rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
}

.blog-content h3 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
}

.blog-content p {
  margin-bottom: 2rem;
  line-height: 1.5;
  color: var(--text-color);
  font-size: 1.125rem;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 2.5rem;
  margin-left: 2rem;
  line-height: 1.5;
}

.blog-content li {
  margin-bottom: 1rem;
  color: var(--text-color);
  font-size: 1.125rem;
}

.blog-content a {
  color: var(--link-color);
  text-decoration: underline;
}

.blog-content a:hover {
  opacity: 0.8;
}

/* Blog Sections */
.blog-section {
  margin-bottom: 5rem;
}

.blog-section h2 {
  font-size: 2rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
}

.blog-section h3 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.blog-section p {
  margin-bottom: 2rem;
  line-height: 1.5;
  font-size: 1.125rem;
}

.blog-section ul,
.blog-section ol {
  margin-bottom: 2.5rem;
  margin-left: 2rem;
  line-height: 1.5;
}

.blog-section li {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

/* Blog Cards */
.blog-card {
  border: 2px solid var(--border-color);
  padding: 2.5rem;
  margin-bottom: 3rem;
  background: var(--bg-color);
}

.blog-card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.blog-card p {
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 1.125rem;
}

.blog-card p:last-child {
  margin-bottom: 0;
}

.blog-card-highlight {
  border: 2px solid var(--link-color);
  padding: 2.5rem;
  margin-bottom: 3rem;
  background: var(--bg-color);
}

.blog-card-highlight h2,
.blog-card-highlight h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.blog-card-highlight p {
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 1.125rem;
}

/* Code Blocks */
.blog-code {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.blog-code-block {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  padding: 1rem;
  margin: 1.5rem 0;
  font-family: 'Courier New', monospace;
  overflow-x: auto;
  line-height: 1.5;
}

/* Blog Tables */
.blog-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 2px solid var(--border-color);
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-color);
}

.blog-table th,
.blog-table td {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  text-align: left;
}

.blog-table th {
  background: var(--bg-color);
  font-weight: 700;
  color: var(--text-color);
}

.blog-table td {
  color: var(--text-color);
}

/* CTA Sections */
.blog-cta {
  border: 2px solid var(--link-color);
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
  background: var(--bg-color);
}

.blog-cta h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.blog-cta p {
  margin-bottom: 1.5rem;
}

.blog-cta-button {
  display: inline-block;
  background: var(--link-color);
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--link-color);
  font-size: 1.1rem;
}

.blog-cta-button:hover {
  opacity: 0.8;
}

/* Blog Index - Article Cards */
.blog-article {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.blog-article:last-child {
  border-bottom: none;
}

.blog-article h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.blog-article h3 a {
  color: var(--text-color);
  text-decoration: none;
}

.blog-article h3 a:hover {
  color: var(--link-color);
  text-decoration: underline;
  background: transparent !important;
}

.blog-article-link {
  color: var(--link-color);
  text-decoration: underline;
  font-weight: 600;
}

.blog-article-link:hover {
  opacity: 0.8;
}

/* Blog Footer */
.blog-footer {
  border-top: 2px solid var(--border-color);
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 4rem;
}

.blog-footer-links {
  margin-bottom: 1rem;
}

.blog-footer-links a {
  color: var(--link-color);
  text-decoration: underline;
}

.blog-footer-links a:hover {
  opacity: 0.8;
}

.blog-footer-text {
  color: var(--text-color);
  opacity: 0.6;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-container {
    padding: 1.5rem 1rem;
  }

  .blog-title {
    font-size: 2rem;
  }

  .blog-subtitle {
    font-size: 1.1rem;
  }

  .blog-content h2 {
    font-size: 1.5rem;
  }

  .blog-content h3 {
    font-size: 1.2rem;
  }

  .blog-table th,
  .blog-table td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
}
