/* Blog-specific styles to be used with main styles.css */

/* Blog listing page styles */
.blog-section {
  padding: 80px 0;
}

.blog-heading {
  margin-bottom: 60px;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.blog-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 24px;
}

.blog-title {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 12px;
  color: #333;
}

.blog-excerpt {
  color: #555;
  margin-bottom: 20px;
}

.blog-date {
  color: #777;
  font-size: 14px;
  margin-bottom: 16px;
  display: block;
}

.read-more {
  display: inline-block;
  color: #ff4500;
  font-weight: 500;
  transition: color 0.2s ease;
}

.blog-card:hover .read-more {
  color: #e63e00;
  text-decoration: underline;
}

.blog-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.blog-category {
  background-color: #f1f1f1;
  color: #555;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-category:hover, .blog-category.active {
  background-color: #ff4500;
  color: white;
}

/* Individual blog post styles */
.blog-post-section {
  padding: 80px 0;
}

.blog-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-post-header {
  margin-bottom: 40px;
  text-align: center;
}

.blog-post-title {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 16px;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.2;
}

.blog-post-meta {
  color: #777;
  font-size: 14px;
  margin-bottom: 24px;
}

.blog-post-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 24px;
}

.blog-post-content {
  line-height: 1.7;
  color: #333;
}

.blog-post-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 28px;
}

.blog-post-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 22px;
}

.blog-post-content p {
  margin-bottom: 20px;
  font-size: 16px;
}

.blog-post-content ul, .blog-post-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.blog-post-content li {
  margin-bottom: 8px;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 24px 0;
}

.blog-post-content blockquote {
  border-left: 4px solid #ff4500;
  padding-left: 16px;
  margin-left: 0;
  color: #555;
  font-style: italic;
  background-color: #f9f9f9;
  padding: 16px;
  border-radius: 0 4px 4px 0;
}

.blog-post-content code {
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
}

.blog-post-content pre {
  background-color: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

.blog-post-content pre code {
  background: none;
  padding: 0;
}

.blog-post-content a {
  color: #ff4500;
  text-decoration: none;
  font-weight: 500;
}

.blog-post-content a:hover {
  text-decoration: underline;
  color: #e63e00;
}

/* Table of contents */
.table-of-contents {
  background-color: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-of-contents h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #2c5282;
  font-size: 1.25rem;
  font-weight: 600;
}

.table-of-contents ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
}

.table-of-contents ol {
  padding-left: 24px;
  margin-bottom: 0;
  counter-reset: item;
}

.table-of-contents ol > li {
  display: block;
  margin-bottom: 12px;
  line-height: 1.5;
}

.table-of-contents ol > li:before {
  content: counter(item) ". ";
  counter-increment: item;
  font-weight: 600;
  color: #ff4500;
  margin-right: 8px;
}

.table-of-contents li {
  margin-bottom: 12px;
}

.table-of-contents a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
  display: inline-block;
}

.table-of-contents a:hover {
  color: #ff4500;
  text-decoration: none;
}

/* Enhanced TOC styling with highlight-box class */
.table-of-contents.highlight-box {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.table-of-contents.highlight-box h3 {
  color: #2c5282;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

/* Blog tags styling */
.blog-tags {
  margin: 32px 0;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.blog-tags::before {
  content: "Tags: ";
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  margin-right: 8px;
}

.blog-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 4px 8px 4px 0;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.blog-tag:hover {
  background: #ff4500;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 69, 0, 0.2);
}

/* Blog post CTA section */
.blog-post-cta {
  background: linear-gradient(135deg, #fff5f0 0%, #fef2f2 100%);
  border: 2px solid #fed7aa;
  border-radius: 16px;
  padding: 32px;
  margin: 48px 0;
  text-align: center;
  box-shadow: 0 4px 16px rgba(255, 69, 0, 0.1);
}

.blog-post-cta h3 {
  color: #1a1a1a;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 0;
}

.blog-post-cta p {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.blog-post-cta .button {
  font-size: 1.1rem;
  padding: 16px 32px;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}

.blog-post-cta .button:hover {
  box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
}

/* Alternative blog-post-tags structure */
.blog-post-tags {
  margin: 32px 0;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.blog-post-tags span {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  margin-right: 8px;
}

.blog-post-tags a {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 4px 8px 4px 0;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.blog-post-tags a:hover {
  background: #ff4500;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 69, 0, 0.2);
}

/* Social sharing */
.social-share {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px 0;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

.social-share p {
  margin: 0;
  font-weight: 600;
  color: #333;
  margin-right: 8px;
}

.social-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-share a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Platform-specific colors */
.social-share a.facebook {
  background-color: #1877f2;
}

.social-share a.facebook:hover {
  background-color: #166fe5;
}

.social-share a.twitter {
  background-color: #1da1f2;
}

.social-share a.twitter:hover {
  background-color: #0d8bd9;
}

.social-share a.linkedin {
  background-color: #0077b5;
}

.social-share a.linkedin:hover {
  background-color: #005885;
}

.social-share a.email {
  background-color: #666;
}

.social-share a.email:hover {
  background-color: #555;
}

/* Mobile responsive styles for social sharing */
@media (max-width: 768px) {
  .social-share {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 16px 0;
  }
  
  .social-share p {
    width: 100%;
    margin-bottom: 12px;
    margin-right: 0;
  }
  
  .social-share a {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Blog post navigation */
.blog-post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #eaeaea;
}

.blog-post-nav-link {
  color: #ff4500;
  text-decoration: none;
  font-weight: 500;
}

.blog-post-nav-link:hover {
  text-decoration: underline;
  color: #e63e00;
}

.blog-post-nav-previous {
  margin-right: auto;
}

.blog-post-nav-next {
  margin-left: auto;
}

/* Comparison tables */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table th, .comparison-table td {
  padding: 12px 16px;
  border: 1px solid #eaeaea;
  text-align: left;
}

.comparison-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #1a1a1a;
}

.comparison-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Feature highlights */
.feature-highlight {
  background-color: #fff5f0;
  border-left: 4px solid #ff4500;
  padding: 16px;
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
}

/* Quick summary box */
.quick-summary {
  background: linear-gradient(135deg, #ff4500 0%, #e63e00 100%);
  color: white;
  padding: 35px;
  border-radius: 20px;
  margin: 40px 0;
  box-shadow: 0 15px 40px rgba(255, 69, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.quick-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.summary-header {
  text-align: center;
  margin-bottom: 30px;
}

.summary-header h3 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.summary-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.editor-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}

.editor-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.editor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.editor-card h4 {
  margin: 0 0 15px 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.editor-card .score {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 10px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.vs-divider {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.summary-verdict {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-verdict h4 {
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.summary-verdict p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-categories {
    padding: 0 20px;
  }
  
  .blog-post-container {
    padding: 0 20px;
  }
  
  .blog-post-title {
    font-size: 28px;
  }
  
  .blog-post-content h2 {
    font-size: 24px;
  }
  
  .blog-post-content h3 {
    font-size: 20px;
  }
  
  .editor-comparison {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .vs-divider {
    order: -1;
  }
  
  .comparison-table {
    font-size: 14px;
  }
  
  .comparison-table th, .comparison-table td {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .blog-post-content {
    font-size: 15px;
  }
  
  .quick-summary {
    padding: 25px;
    margin: 30px 0;
  }
  
  .summary-header h3 {
    font-size: 1.5rem;
  }
  
  .editor-card .score {
    font-size: 2rem;
  }
}
