.category-page {
  background-color: #181818;
  color: #ffffff;
  min-height: 100vh;
  padding: 2rem 0;
}

.category-header {
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.category-title {
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 3rem;
  color: #ffffff;
  text-align: center;
}

.category-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 241, 235, 0.2);
  color: #ffffff;
  padding: 1rem 1rem;
  border-radius: 64px;
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn.active {
  border-color: #fff1eb;
  font-weight: 500;
}

.filter-btn:hover {
  border-color: rgba(255, 241, 235, 0.4);
}

.view-controls {
  display: flex;
  gap: 0.75rem;
}

.view-btn {
  background: transparent;
  border: 1px solid rgba(255, 241, 235, 0.2);
  color: #ffffff;
  padding: 1rem;
  border-radius: 64px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn.active {
  border-color: rgba(255, 241, 235, 0.2);
}

.view-btn.disabled {
  opacity: 0.2;
}

.view-btn:hover:not(.disabled) {
  border-color: rgba(255, 241, 235, 0.4);
}

.category-content {
  padding: 0 1rem;
}

.posts-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.category-post {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

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

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

.placeholder-image {
  width: 100%;
  height: 240px;
  background-color: #f5f5f5;
  background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
    linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.875rem;
}

.post-content {
  display: flex;
  flex-direction: column;
  /* gap: 1.5rem; */
}

/* .post-title {
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.15;
  margin: 0;
} */

/* .post-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
} */

/* .post-title a:hover {
  color: #ff6b35;
} */

/* .post-subtitle {
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.5);
  text-transform: capitalize;
} */

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-date {
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-avatar {
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

.post-author {
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

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

.pagination-btn {
  background: transparent;
  border: 1px solid rgba(255, 241, 235, 0.2);
  color: #ffffff;
  padding: 1rem;
  border-radius: 64px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(.disabled) {
  border-color: rgba(255, 241, 235, 0.4);
}

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

.pagination-numbers {
  display: flex;
  gap: 1rem;
}

.pagination-number {
  background: transparent;
  border: 1px solid rgba(255, 241, 235, 0.2);
  color: #ffffff;
  padding: 1rem 1rem;
  border-radius: 64px;
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 48px;
}

.pagination-number.active {
  border-color: #fff1eb;
}

.pagination-number:hover {
  border-color: rgba(255, 241, 235, 0.4);
}

.no-posts {
  text-align: center;
  padding: 3rem 1rem;
}

.no-posts h2 {
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.no-posts p {
  font-size: 1.1rem;
  color: #cccccc;
}

@media (min-width: 768px) {
  .category-page {
    padding: 3rem 0;
  }

  .category-title {
    font-size: 3.5rem;
    text-align: left;
  }

  .category-controls {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .filter-buttons {
    justify-content: flex-start;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .post-thumbnail img,
  .placeholder-image {
    height: 280px;
  }
}

@media (min-width: 1024px) {
  .category-page {
    padding: 4rem 0;
  }

  .category-title {
    font-size: 40px;
  }

  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .post-thumbnail img,
  .placeholder-image {
    height: 320px;
  }

  /* .post-title {
    font-size: 1.5rem;
  } */

  /* .post-subtitle {
    font-size: 1.125rem;
  } */
}

@media (min-width: 1200px) {
  .posts-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .post-thumbnail img,
  .placeholder-image {
    height: 380px;
  }
}

.posts-grid.grid-view {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.posts-grid.grid-view .category-post {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.posts-grid.grid-view .category-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.posts-grid.list-view .category-post {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.posts-grid.list-view .category-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.posts-grid.list-view .post-thumbnail {
  flex: 0 0 200px;
}

.posts-grid.list-view .post-thumbnail img,
.posts-grid.list-view .placeholder-image {
  height: 150px;
}

.posts-grid.list-view .post-content {
  flex: 1;
}

.posts-grid.list-view .post-meta {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
