/* ===== BLOG STYLES ===== */

/* Blog Hero */
.blog-hero {
  padding: 100px 20px 60px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
}

.blog-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.blog-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
}

/* Blog Filters */
.blog-filters {
  padding: 30px 0;
  background: rgba(31, 41, 55, 0.3);
}

.filter-tabs {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 12px 24px;
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--accent-primary);
}

.filter-tab.active {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

/* Featured Post */
.featured-post {
  padding: 60px 0;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: rgba(31, 41, 55, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.featured-image {
  position: relative;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
}

.featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.post-category, .post-date, .post-read-time {
  font-size: 13px;
  color: var(--text-secondary);
}

.post-category {
  color: var(--accent-primary);
  font-weight: 600;
}

.featured-title {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 20px;
}

.featured-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-title a:hover {
  color: var(--accent-primary);
}

.featured-excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
}

/* Blog Grid */
.blog-grid-section {
  padding: 60px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.blog-card {
  background: rgba(31, 41, 55, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.blog-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-category-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(10, 14, 26, 0.9);
  color: var(--accent-primary);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.blog-card-content {
  padding: 25px;
}

.blog-card-title {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: var(--accent-primary);
}

.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.blog-read-more {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.blog-read-more:hover {
  transform: translateX(5px);
}

/* Load More */
.load-more-section {
  text-align: center;
}

/* Blog Post Single */
.blog-post {
  padding: 80px 0;
}

.post-header {
  margin-bottom: 40px;
}

.post-breadcrumb {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 14px;
}

.post-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.post-breadcrumb a:hover {
  color: var(--accent-primary);
}

.post-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.3;
  margin-bottom: 25px;
}

.post-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.author-name {
  font-weight: 600;
}

.post-info {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.post-featured-image {
  margin: 40px 0;
  border-radius: 12px;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
}

.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
}

.post-content h2 {
  font-size: 32px;
  margin: 50px 0 20px;
  color: var(--accent-primary);
}

.post-content h3 {
  font-size: 24px;
  margin: 35px 0 15px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-intro {
  font-size: 19px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 30px;
}

.content-list {
  margin: 20px 0;
  padding-left: 25px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.content-list li {
  margin-bottom: 10px;
}

.content-table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  background: rgba(31, 41, 55, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.content-table th, .content-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.content-table th {
  background: rgba(255, 215, 0, 0.1);
  color: var(--accent-primary);
  font-weight: 600;
}

.info-box, .warning-box, .tool-cta-box {
  padding: 25px;
  margin: 30px 0;
  border-radius: 10px;
  border-left: 4px solid;
}

.info-box {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
}

.warning-box {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--error);
}

.tool-cta-box {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--accent-primary);
  text-align: center;
}

.tool-cta-box h3 {
  margin: 0 0 15px;
  color: var(--accent-primary);
}

.post-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
}

.post-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 25px;
}

.tag-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.post-tag {
  padding: 6px 14px;
  background: rgba(31, 41, 55, 0.5);
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.post-tag:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.post-share {
  display: flex;
  gap: 15px;
  align-items: center;
}

.share-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.share-btn {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.share-btn.twitter {
  background: #1DA1F2;
  color: white;
}

.share-btn.facebook {
  background: #4267B2;
  color: white;
}

.share-btn.linkedin {
  background: #0077B5;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Related Posts */
.related-posts {
  margin-top: 70px;
  padding-top: 40px;
  border-top: 2px solid var(--border-color);
}

.related-posts h3 {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--accent-primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.related-card {
  background: rgba(31, 41, 55, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.related-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-card h4 {
  padding: 20px;
  font-size: 16px;
  line-height: 1.5;
}

.related-card a {
  color: var(--text-primary);
  text-decoration: none;
}

.related-card a:hover {
  color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-content {
    padding: 25px;
  }
  
  .featured-title {
    font-size: 24px;
  }
}
