/* blog-post.css - Shared styles for all blog articles */

/* Blog Post Layout */
.blog-post-full {
  padding: 40px 0 60px;
  background: #ffffff;
}

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

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted, #64748b);
}

/* Add/modify these styles in blog-post.css */

/* Breadcrumbs - Mobile Responsive with ellipsis */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 4px 0;
}

.breadcrumbs a {
  color: var(--muted, #64748b);
  text-decoration: none;
  transition: color 0.2s;
  flex-shrink: 0;
}

.breadcrumbs a:hover {
  color: var(--brand, #0b4fff);
}

.breadcrumbs i {
  font-size: 10px;
  flex-shrink: 0;
}

.breadcrumbs span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 30px; /* Allow shrinking but keep minimum */
}

/* Mobile breadcrumbs - ellipsis on last item */
@media (max-width: 480px) {
  .breadcrumbs {
    font-size: 12px;
    gap: 4px;
  }
  
  .breadcrumbs span {
    max-width: 120px; /* Limit width on small screens */
  }
}

/* For very small screens, show even shorter */
@media (max-width: 360px) {
  .breadcrumbs span {
    max-width: 80px;
  }
}

/* Post Header */
.post-header {
  margin-bottom: 32px;
}

.post-header h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text, #1e293b);
}

/* Post Meta */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border, #e2e8f0);
  border-bottom: 1px solid var(--border, #e2e8f0);
  color: var(--muted, #64748b);
  font-size: 15px;
}

.post-meta .author {
  font-weight: 600;
  color: var(--text, #1e293b);
}

.post-meta i {
  margin-right: 4px;
  color: var(--brand, #0b4fff);
}

/* Post Content */
.post-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text, #1e293b);
}

.post-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand, #0b4fff);
}

.post-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 16px;
}

.post-content p {
  margin-bottom: 24px;
}

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

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

.post-content strong {
  color: var(--brand, #0b4fff);
  font-weight: 600;
}

.post-content a {
  color: var(--brand, #0b4fff);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content a:hover {
  text-decoration: none;
}

.post-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--light-bg, #f8fafc);
  border-left: 4px solid var(--brand, #0b4fff);
  font-style: italic;
  border-radius: 0 12px 12px 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 32px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background: linear-gradient(135deg, var(--brand, #0b4fff), var(--brand-2, #00d4ff));
  color: white;
  padding: 24px 16px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(11,79,255,0.15);
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
}

/* Highlight Box */
.highlight-box {
  background: var(--light-bg, #f8fafc);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  border: 1px solid var(--border, #e2e8f0);
}

.highlight-box h3 {
  margin-top: 0 !important;
  color: var(--brand, #0b4fff);
}

/* Tags */
.post-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 40px 0 20px;
}

.tag {
  padding: 6px 14px;
  background: var(--light-bg, #f8fafc);
  border-radius: 20px;
  font-size: 13px;
  color: var(--muted, #64748b);
  border: 1px solid var(--border, #e2e8f0);
  transition: all 0.2s;
}

.tag:hover {
  background: var(--brand, #0b4fff);
  color: white;
  border-color: var(--brand, #0b4fff);
}

/* Share Buttons */
.share-section {
  background: var(--light-bg, #f8fafc);
  border-radius: 12px;
  padding: 24px;
  margin: 48px 0;
  text-align: center;
}

.share-section h3 {
  margin-bottom: 20px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}

.share-btn i {
  font-size: 16px;
}

.share-btn.linkedin { background: #0077b5; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #4267b2; }
.share-btn.whatsapp { background: #25d366; }

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Related Posts */
.related-posts {
  margin: 48px 0;
}

.related-posts h3 {
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 600;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-card {
  background: white;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.related-content {
  padding: 16px;
}

.related-content h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.related-content p {
  color: var(--muted, #64748b);
  font-size: 13px;
  margin: 0;
}

/* Newsletter */
.newsletter-box {
  background: linear-gradient(135deg, var(--brand, #0b4fff), var(--brand-2, #00d4ff));
  color: white;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  margin: 48px 0;
}

.newsletter-box h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.newsletter-box p {
  margin-bottom: 24px;
  opacity: 0.9;
  font-size: 16px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 450px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
}

.newsletter-form button {
  padding: 14px 28px;
  background: white;
  color: var(--brand, #0b4fff);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .blog-post-full {
    padding: 20px 0 40px;
  }
  
  .post-content {
    font-size: 16px;
  }
  
  .post-content h2 {
    font-size: 24px;
  }
  
  .post-content h3 {
    font-size: 20px;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .share-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .share-btn {
    justify-content: center;
  }
}