/* ========================================
   BLOG STYLES — ramazannasirli.az
   Fizioterapevt Ramazan Nəsirli Blog
   ======================================== */

/* Blog Layout */
.blog-main {
  padding-top: 100px;
  min-height: 100vh;
  background: #f8fafc;
}

.blog-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Breadcrumb */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.blog-breadcrumb a {
  color: #0d9488;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-breadcrumb a:hover {
  color: #0f766e;
  text-decoration: underline;
}

.blog-breadcrumb .separator {
  color: #cbd5e1;
  font-size: 0.75rem;
}

/* Article Header */
.blog-article-header {
  margin-bottom: 40px;
}

.blog-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(20, 184, 166, 0.08));
  color: #0d9488;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.blog-article-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #64748b;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-meta-item svg {
  width: 16px;
  height: 16px;
  color: #0d9488;
}

/* Article Content */
.blog-content {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.blog-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(13, 148, 136, 0.15);
  letter-spacing: -0.3px;
}

.blog-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 32px 0 16px;
}

.blog-content p {
  margin-bottom: 20px;
}

.blog-content ul,
.blog-content ol {
  margin: 16px 0 24px 24px;
}

.blog-content li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.blog-content strong {
  color: #0f172a;
  font-weight: 600;
}

.blog-content a {
  color: #0d9488;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 148, 136, 0.3);
  transition: all 0.2s;
}

.blog-content a:hover {
  color: #0f766e;
  border-bottom-color: #0f766e;
}

/* Highlight Box */
.blog-highlight {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(20, 184, 166, 0.04));
  border-left: 4px solid #0d9488;
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
  font-size: 1rem;
}

.blog-highlight strong {
  color: #0d9488;
}

/* Warning/Important Box */
.blog-important {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(245, 158, 11, 0.03));
  border-left: 4px solid #f59e0b;
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
}

.blog-important strong {
  color: #d97706;
}

/* Stats Grid */
.blog-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.blog-stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.blog-stat-card:hover {
  border-color: #0d9488;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1);
  transform: translateY(-2px);
}

.blog-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #0d9488;
  display: block;
  margin-bottom: 4px;
}

.blog-stat-label {
  font-size: 0.85rem;
  color: #64748b;
}

/* FAQ Section */
.blog-faq {
  margin: 48px 0;
}

.blog-faq h2 {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: rgba(13, 148, 136, 0.3);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}

.faq-question:hover {
  background: rgba(13, 148, 136, 0.03);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
  font-size: 1.1rem;
  font-weight: 700;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  display: block;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

/* CTA Section */
.blog-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}

.blog-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15), transparent 70%);
  pointer-events: none;
}

.blog-cta h3 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.blog-cta p {
  color: #94a3b8;
  font-size: 1rem;
  margin-bottom: 24px;
  position: relative;
}

.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  position: relative;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
}

.blog-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(13, 148, 136, 0.5);
}

.blog-cta-phone {
  color: #14b8a6;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 16px;
  position: relative;
}

/* Author Box */
.blog-author {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin: 48px 0;
}

.blog-author-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(13, 148, 136, 0.2);
  flex-shrink: 0;
}

.blog-author-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.blog-author-info .author-title {
  color: #0d9488;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-author-info p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
}

/* Related Articles */
.blog-related {
  margin: 48px 0 0;
}

.blog-related h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.related-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
}

.related-card:hover {
  border-color: #0d9488;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1);
  transform: translateY(-3px);
}

.related-card-tag {
  display: inline-block;
  background: rgba(13, 148, 136, 0.08);
  color: #0d9488;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.related-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.related-card p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

.related-card .read-more {
  color: #0d9488;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Blog Index / Listing Page */
.blog-index-header {
  text-align: center;
  margin-bottom: 48px;
  padding-top: 20px;
}

.blog-index-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.blog-index-header p {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.blog-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.blog-card:hover {
  border-color: #0d9488;
  box-shadow: 0 8px 30px rgba(13, 148, 136, 0.12);
  transform: translateY(-4px);
}

.blog-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(20, 184, 166, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.blog-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.blog-card-date {
  font-size: 0.78rem;
  color: #94a3b8;
}

.blog-card-read {
  color: #0d9488;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Footer */
.blog-footer {
  background: #0f172a;
  padding: 48px 24px;
  margin-top: 48px;
}

.blog-footer-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.blog-footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(13, 148, 136, 0.3);
}

.blog-footer-logo span {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.blog-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.blog-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.blog-footer-links a:hover {
  color: #14b8a6;
}

.blog-footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.blog-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s;
}

.blog-footer-social a:hover {
  background: rgba(13, 148, 136, 0.2);
  border-color: rgba(13, 148, 136, 0.4);
  color: #14b8a6;
}

.blog-footer-copy {
  color: #475569;
  font-size: 0.78rem;
}

/* Table of Contents */
.blog-toc {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}

.blog-toc h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-toc ol {
  margin: 0;
  padding-left: 20px;
}

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

.blog-toc a {
  color: #0d9488;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.blog-toc a:hover {
  color: #0f766e;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-article-header h1 {
    font-size: 1.6rem;
  }

  .blog-content h2 {
    font-size: 1.3rem;
    margin-top: 36px;
  }

  .blog-content h3 {
    font-size: 1.1rem;
  }

  .blog-content {
    font-size: 0.98rem;
  }

  .blog-cta {
    padding: 28px 20px;
  }

  .blog-cta h3 {
    font-size: 1.3rem;
  }

  .blog-author {
    flex-direction: column;
    text-align: center;
  }

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

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

  .blog-index-header h1 {
    font-size: 1.8rem;
  }

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

  .blog-footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* Print styles for blog */
@media print {
  .navbar, .blog-footer, .blog-cta, .blog-related {
    display: none !important;
  }
  .blog-main {
    padding-top: 0;
  }
  .blog-content {
    font-size: 12pt;
    color: #000;
  }
}
