/**
 * BlackWool Medya - Blog Sayfaları CSS
 * Blog liste ve blog detay sayfaları için
 */

/* ============================================
   Hero Small (Blog Pages)
   ============================================ */
.hero-small {
  padding: 140px 40px 60px;
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  text-align: center;
}

.hero-small h1 {
  font-size: 56px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-small p {
  font-size: 20px;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  background: var(--light-gray);
  padding: 15px 0;
  margin-top: 95px;
}

.breadcrumb-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  font-size: 14px;
  color: var(--gray);
}

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

.breadcrumb a:hover {
  color: var(--accent);
}

/* ============================================
   Blog Post Detail
   ============================================ */
.post-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.post-header {
  margin-bottom: 40px;
  text-align: center;
}

.post-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--primary);
  line-height: 1.2;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 30px;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 40px;
}

.post-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--dark);
}

.post-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 40px 0 20px;
  color: var(--primary);
}

.post-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 30px 0 15px;
  color: var(--dark);
}

.post-content p {
  margin-bottom: 20px;
  color: var(--gray);
}

.post-content ul, .post-content ol {
  margin: 20px 0 20px 30px;
}

.post-content li {
  margin-bottom: 10px;
  color: var(--gray);
}

.post-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

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

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
}

.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 20px 30px;
  margin: 30px 0;
  background: var(--light-gray);
  border-radius: 10px;
  font-style: italic;
}

.post-content strong {
  color: var(--primary);
  font-weight: 700;
}

.back-to-blog {
  margin-top: 60px;
  text-align: center;
}

.btn-back {
  padding: 15px 30px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-back:hover {
  background: var(--primary);
  color: var(--light);
  transform: translateY(-3px);
}

/* ============================================
   Blog List Styles
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.blog-card {
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(220, 38, 38, 0.3);
}

.blog-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.blog-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.blog-card:hover .blog-image::before {
  left: 100%;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary);
  line-height: 1.3;
}

.blog-excerpt {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.blog-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s;
}

.blog-link:hover {
  gap: 10px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 60px;
}

.page-link {
  padding: 12px 20px;
  border: 2px solid var(--border);
  background: var(--light);
  color: var(--dark);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--light);
}

.no-posts {
  text-align: center;
  padding: 80px 40px;
  background: var(--light);
  border-radius: 20px;
  border: 2px dashed var(--border);
}

.no-posts h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.no-posts p {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 30px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .breadcrumb {
    margin-top: 80px;
  }
  
  .post-container {
    padding: 40px 20px 60px;
  }
  
  .post-title {
    font-size: 32px;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .post-content {
    font-size: 16px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-image {
    height: 180px;
  }
  
  .blog-content {
    padding: 25px 20px;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
}

