/*----------------------------------------------------------------------------------- 
Blog Content Styles - Enqode QR
Clean, accessible, and content-focused styling for blog pages
-----------------------------------------------------------------------------------*/

/* Blog Content Variables */
:root {
  --blog-primary-color: #007bff;
  --blog-text-color: #333333;
  --blog-text-light: #666666;
  --blog-border-color: #e9ecef;
  --blog-bg-light: #f8f9fa;
  --blog-success-color: #28a745;
  --blog-warning-color: #ffc107;
  --blog-danger-color: #dc3545;
  --blog-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --blog-heading-font: "Manrope", sans-serif;
  --blog-border-radius: 8px;
  --blog-shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Blog Container */
.blog-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--blog-font-family);
  line-height: 1.7;
  color: var(--blog-text-color);
}

/* Blog Typography */
.blog-content-wrapper h1 {
  font-family: var(--blog-heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--blog-text-color);
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.blog-content-wrapper h2 {
  font-family: var(--blog-heading-font);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--blog-text-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.blog-content-wrapper h3 {
  font-family: var(--blog-heading-font);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--blog-text-color);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-content-wrapper h4 {
  font-family: var(--blog-heading-font);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--blog-text-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-content-wrapper p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
}

.blog-content-wrapper p:last-child {
  margin-bottom: 0;
}

/* Blog Meta Information */
.blog-meta {
  background: var(--blog-bg-light);
  border: 1px solid var(--blog-border-color);
  border-radius: var(--blog-border-radius);
  padding: 1rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.blog-meta-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  color: var(--blog-text-light);
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-meta-item i {
  color: var(--blog-primary-color);
  font-size: 0.875rem;
}

/* Quick Summary Box */
.blog-summary {
  background: var(--blog-bg-light);
  border-left: 4px solid var(--blog-primary-color);
  border-radius: 0 var(--blog-border-radius) var(--blog-border-radius) 0;
  padding: 1.5rem;
  margin: 2rem 0;
}

.blog-summary h3 {
  color: var(--blog-primary-color);
  font-size: 1.125rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.blog-summary p {
  margin-bottom: 0;
  font-weight: 500;
}

/* Table of Contents */
.blog-toc {
  background: #ffffff;
  border: 1px solid var(--blog-border-color);
  border-radius: var(--blog-border-radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.blog-toc h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: var(--blog-text-color);
}

.blog-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.blog-toc li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.blog-toc a {
  color: var(--blog-primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.blog-toc a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Lists */
.blog-content-wrapper ul,
.blog-content-wrapper ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.blog-content-wrapper li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Check List Style */
.blog-checklist {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.blog-checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.blog-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blog-success-color);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Links */
.blog-content-wrapper a {
  color: var(--blog-primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.blog-content-wrapper a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Images */
.blog-content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: var(--blog-border-radius);
  margin: 1.5rem 0;
}

.blog-thumbnail {
  margin-bottom: 2rem;
}

.blog-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: var(--blog-border-radius);
  box-shadow: var(--blog-shadow-light);
}

/* Info Boxes */
.blog-info-box {
  border-left: 4px solid var(--blog-primary-color);
  background: var(--blog-bg-light);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--blog-border-radius) var(--blog-border-radius) 0;
}

.blog-info-box.warning {
  border-left-color: var(--blog-warning-color);
  background: #fff3cd;
}

.blog-info-box.success {
  border-left-color: var(--blog-success-color);
  background: #d4edda;
}

.blog-info-box.danger {
  border-left-color: var(--blog-danger-color);
  background: #f8d7da;
}

.blog-info-box h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: inherit;
}

.blog-info-box p:last-child {
  margin-bottom: 0;
}

/* Tables */
.blog-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--blog-border-radius);
  box-shadow: var(--blog-shadow-light);
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.9rem;
}

.blog-table th,
.blog-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--blog-border-color);
}

.blog-table th {
  background: var(--blog-bg-light);
  font-weight: 600;
  color: var(--blog-text-color);
}

.blog-table tbody tr:hover {
  background: #f9f9f9;
}

/* FAQ Section */
.blog-faq {
  margin: 2rem 0;
}

.blog-faq-item {
  border: 1px solid var(--blog-border-color);
  border-radius: var(--blog-border-radius);
  margin-bottom: 0.75rem;
  background: white;
  overflow: hidden;
}

.blog-faq-question {
  background: var(--blog-bg-light);
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: between;
  align-items: center;
  font-weight: 600;
  color: var(--blog-text-color);
  transition: background-color 0.2s ease;
  border: none;
  width: 100%;
  text-align: left;
}

.blog-faq-question:hover {
  background: #e9ecef;
}

.blog-faq-icon {
  margin-left: auto;
  transition: transform 0.2s ease;
  color: var(--blog-primary-color);
}

.blog-faq-icon.active {
  transform: rotate(180deg);
}

.blog-faq-answer {
  padding: 1.25rem;
  line-height: 1.6;
  color: var(--blog-text-light);
}

.blog-faq-answer.hidden {
  display: none;
}

/* Breadcrumbs */
.blog-breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 2rem 0;
  font-size: 0.875rem;
}

.blog-breadcrumb li {
  margin: 0;
}

.blog-breadcrumb a {
  color: var(--blog-primary-color);
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  text-decoration: underline;
}

.blog-breadcrumb i {
  color: var(--blog-text-light);
  font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-content-wrapper h1 {
    font-size: 2rem;
  }
  
  .blog-content-wrapper h2 {
    font-size: 1.5rem;
  }
  
  .blog-content-wrapper h3 {
    font-size: 1.25rem;
  }
  
  .blog-meta-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .blog-faq-question {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
  
  .blog-faq-answer {
    padding: 1rem;
  }
  
  .blog-table {
    font-size: 0.85rem;
  }
  
  .blog-table th,
  .blog-table td {
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .blog-content-wrapper h1 {
    font-size: 1.75rem;
  }
  
  .blog-summary,
  .blog-toc,
  .blog-info-box {
    padding: 1rem;
  }
  
  .blog-meta {
    padding: 0.875rem;
  }
}

/* Print Styles */
@media print {
  .blog-content-wrapper {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .blog-content-wrapper h1 {
    font-size: 20pt;
  }
  
  .blog-content-wrapper h2 {
    font-size: 16pt;
  }
  
  .blog-content-wrapper h3 {
    font-size: 14pt;
  }
  
  .blog-faq-answer {
    display: block !important;
  }
  
  .blog-summary,
  .blog-info-box {
    border: 1px solid #ccc;
  }
}
