/* Category Page Styles */
.category-main {
  padding-top: 100px;
  min-height: 100vh;
}

/* Nav brand link fix */
.nav-brand a {
  text-decoration: none;
  color: inherit;
}

.nav-brand a:hover {
  color: inherit;
}

/* Logo subtitle spacing fix */
.nav-brand h1 {
  margin-bottom: 0.125rem;
}

.nav-subtitle {
  margin-top: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  margin-top: 1rem; /* Üst boşluk eklendi */
  font-size: 0.875rem;
  color: #6b7280;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #1d4ed8;
}

.breadcrumb-separator {
  color: #9ca3af;
}

.breadcrumb-current {
  color: #1f2937;
  font-weight: 500;
}

/* Category Header */
.category-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 3rem;
  margin-bottom: 3rem;
  text-align: center;
}

.category-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.category-description {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.category-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-count-badge {
  background: #2563eb;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
}

.category-tag {
  background: #e5e7eb;
  color: #4b5563;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
}

/* Category Controls */
.category-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.category-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e5e7eb;
  background: white;
  color: #4b5563;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: #2563eb;
  background: #2563eb;
  color: white;
}

.sort-select {
  padding: 0.5rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  color: #4b5563;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.sort-select:focus {
  outline: none;
  border-color: #2563eb;
}

/* Posts Grid */
.category-posts {
  margin-bottom: 4rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.post-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-img {
  transform: scale(1.05);
}

.post-type-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(37, 99, 235, 0.9);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.post-content {
  padding: 2rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.post-title {
  margin-bottom: 1rem;
}

.post-title a {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #2563eb;
}

.post-excerpt {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-tag {
  background: #f3f4f6;
  color: #6b7280;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.post-tag:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.pagination-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid #e5e7eb;
  background: white;
  color: #4b5563;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #2563eb;
  color: #2563eb;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination-number {
  width: 40px;
  height: 40px;
  border: 2px solid #e5e7eb;
  background: white;
  color: #4b5563;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-number:hover,
.pagination-number.active {
  border-color: #2563eb;
  background: #2563eb;
  color: white;
}

.pagination-dots {
  color: #9ca3af;
  padding: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .category-header {
    padding: 2rem 1.5rem;
  }

  .category-title {
    font-size: 2rem;
  }

  .category-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .category-filters {
    justify-content: center;
  }

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

  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pagination-numbers {
    order: -1;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .category-header {
    padding: 1.5rem 1rem;
  }

  .category-title {
    font-size: 1.75rem;
  }

  .post-content {
    padding: 1.5rem;
  }

  .post-title a {
    font-size: 1.125rem;
  }

  .filter-btn,
  .sort-select {
    font-size: 0.875rem;
  }
}
