/* Blog-specific styles */

/* Blog Hero */
.blog-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2a2a2a 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.blog-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.blog-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* Blog List Section */
.blog-list {
  padding: 4rem 2rem;
  background: var(--bg-light);
  min-height: 60vh;
}

/* Featured Post */
.featured-post {
  position: relative;
  margin-bottom: 3rem;
}

.featured-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Blog Card */
.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--border);
  box-shadow: 0 0 30px var(--glow), 0 8px 30px rgba(255, 107, 0, 0.3);
}

.blog-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 300px 1fr;
  max-width: 100%;
}

.blog-card.coming-soon {
  opacity: 0.7;
  cursor: not-allowed;
}

.blog-card.coming-soon:hover {
  transform: none;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Blog Image */
.blog-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card.featured .blog-image {
  height: 100%;
}

.blog-image-text {
  font-size: 5rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Blog Content */
.blog-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Blog Meta */
.blog-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.blog-category {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-date,
.blog-reading-time {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Blog Titles */
.blog-card h2,
.blog-card h3 {
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card.featured h2 {
  font-size: 2rem;
}

.blog-card h3 {
  font-size: 1.3rem;
}

/* Blog Description */
.blog-content > p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

/* Blog Tags */
.blog-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.tag-small {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #e0e0e0;
}

/* Newsletter Box */
.newsletter-box {
  background: linear-gradient(135deg, var(--bg-dark), #2a2a2a);
  color: white;
  padding: 3rem;
  border-radius: 12px;
  border: 3px solid var(--border);
  box-shadow: 0 0 40px var(--glow);
  text-align: center;
  margin-top: 4rem;
}

.newsletter-box h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.newsletter-box > p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: white;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 15px var(--glow);
}

.newsletter-form button {
  padding: 1rem 2rem;
  white-space: nowrap;
}

.newsletter-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* Article Page Styles */
.article-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2a2a2a 100%);
  color: white;
  padding: 4rem 2rem 2rem;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.article-meta-header {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.article-meta-header .blog-category {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.9);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: white;
}

.article-content h2 {
  color: var(--text-dark);
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.article-content h3 {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.article-content strong {
  color: var(--primary);
  font-weight: 600;
}

.article-content code {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #d32f2f;
}

.article-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 2px solid var(--border);
}

.article-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 0.95rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-dark);
  font-style: italic;
  background: var(--bg-light);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
}

/* Info boxes */
.info-box {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.info-box.warning {
  background: #fff3e0;
  border-left-color: #ff9800;
}

.info-box.success {
  background: #e8f5e9;
  border-left-color: #4caf50;
}

.info-box h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* Table of Contents */
.table-of-contents {
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.table-of-contents h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary);
}

.table-of-contents ul {
  list-style: none;
  padding-left: 0;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
}

.table-of-contents a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.table-of-contents a:hover {
  color: var(--primary);
}

/* Share buttons */
.article-share {
  border-top: 2px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0;
  padding: 2rem 0;
  margin: 3rem 0;
  text-align: center;
}

.article-share h4 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.share-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.share-btn.twitter {
  background: #1DA1F2;
  color: white;
}

.share-btn.linkedin {
  background: #0077B5;
  color: white;
}

.share-btn.facebook {
  background: #4267B2;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Related articles */
.related-articles {
  background: var(--bg-light);
  padding: 3rem 2rem;
}

.related-articles h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

/* Breadcrumb */
.breadcrumb {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 2rem;
  background: white;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-light);
  margin: 0 0.5rem;
}

/* Active nav link */
.nav-links a.active {
  color: var(--primary);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-subtitle {
    font-size: 1rem;
  }

  .blog-card.featured {
    grid-template-columns: 1fr;
  }

  .blog-card.featured .blog-image {
    height: 200px;
  }

  .blog-card.featured h2 {
    font-size: 1.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .article-title {
    font-size: 1.8rem;
  }

  .article-content {
    padding: 2rem 1rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    width: 100%;
  }
}
