/*=============== BLOG ARCHIVE PAGE ===============*/

/* Z-index Hierarchy:
 * 100 - Fixed/Sticky elements (categories-filter)
 * 10  - Overlays and tooltips
 * 2   - Active/Highlighted elements
 * 1   - Default elevated elements
 * 0   - Pseudo elements (::before, ::after)
 * -1  - Background pseudo elements
 */

/*=============== SHARED UTILITIES ===============*/

/* Gradient Hover Effect - Shared by multiple elements */
.gradient-hover::before,
.filter-tab::before,
.featured-post__card::before,
.post-item::before,
.category-card::before,
.cta-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

/*=============== PAGE SECTIONS ===============*/

/* Page Header */
.page-header {
  padding: 8rem 0 5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 247, 218, 0.05) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

.page-header__title {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: var(--mb-1-5);
  text-shadow: 0 0 40px rgba(0, 247, 218, 0.4);
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.page-header__intro {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* Categories Filter */
.categories-filter {
  padding: 2.5rem 0;
  background: rgba(13, 17, 23, 0.95);
  border-bottom: 1px solid rgba(0, 247, 218, 0.1);
  position: sticky;
  top: 60px;
  z-index: 100;
  backdrop-filter: blur(10px);
}

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

.filter-tab {
  padding: 0.85rem 1.75rem;
  background: var(--bg-secondary);
  border: 2px solid rgba(0, 247, 218, 0.1);
  border-radius: 50px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: var(--font-medium);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

/* ::before defined in SHARED UTILITIES section */

.filter-tab:hover {
  border-color: var(--primary-color);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 247, 218, 0.25);
}

.filter-tab:hover::before {
  opacity: 0.15;
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-primary);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 247, 218, 0.3);
}

.filter-tab.active::before {
  opacity: 1;
}

.filter-tab .count {
  opacity: 0.7;
  font-size: 0.85rem;
}

/* Featured Post */
.featured-post {
  padding: 4rem 0 2rem;
  background: var(--bg-primary);
}

.featured-post__card {
  background: var(--bg-secondary);
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(0, 247, 218, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 450px;
}

/* ::before defined in SHARED UTILITIES section */

.featured-post__card:hover::before {
  opacity: 1;
}

.featured-post__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 247, 218, 0.3);
  border-color: transparent;
}

.featured-post__image {
  position: relative;
  overflow: hidden;
  z-index: 2;
  background: var(--bg-secondary);
}

.featured-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-post__card:hover .featured-post__image img {
  transform: scale(1.08);
}

.featured-post__badge {
  position: absolute;
  top: 2rem;
  left: 2rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: var(--font-semi-bold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 247, 218, 0.4);
}

.featured-post__content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: var(--bg-secondary);
}

.featured-post__category {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 247, 218, 0.25);
  color: var(--primary-color);
  border-radius: 8px;
  font-weight: var(--font-semi-bold);
  font-size: 0.9rem;
  margin-bottom: var(--mb-1-5);
  width: fit-content;
}

.featured-post__title {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: var(--mb-1-5);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.featured-post__card:hover .featured-post__title {
  color: var(--primary-color);
}

.featured-post__excerpt {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: var(--mb-2);
}

.featured-post__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--mb-2);
}

.featured-post__meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.featured-post__meta-item i {
  color: var(--primary-color);
}

.featured-post__link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-color);
  font-weight: var(--font-semi-bold);
  font-size: 1.05rem;
  transition: gap 0.3s ease;
}

.featured-post__link:hover {
  gap: 1.25rem;
}

.featured-post__link i {
  transition: transform 0.3s ease;
}

.featured-post__link:hover i {
  transform: translateX(4px);
}

/* Posts Archive */
.posts-archive {
  padding: 3rem 0 4rem;
  background: var(--bg-primary);
  min-height: 60vh;
}

.posts-archive__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--mb-2-5);
}

.posts-archive__title {
  font-size: 1.8rem;
  color: var(--text-primary);
}

.posts-archive__count {
  color: var(--text-secondary);
  font-size: 1rem;
}

.posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Post Item */
.post-item {
  background: var(--bg-secondary);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(0, 247, 218, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  /* Initial opacity animation handled by JavaScript in main.js */
  /* Hover effects still use CSS transitions */
}

/* ::before defined in SHARED UTILITIES section */

.post-item:hover::before {
  opacity: 1;
}

.post-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 247, 218, 0.25);
  border-color: transparent;
}

.post-item__link {
  text-decoration: none;
  display: block;
}

.post-item__thumb-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.post-item__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-item:hover .post-item__thumb {
  transform: scale(1.1);
}

.post-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 17, 23, 0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.post-item:hover .post-item__overlay {
  opacity: 1;
}

.post-item__content {
  padding: 2rem 1.75rem;
}

.post-item__title {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: var(--mb-1);
  line-height: 1.4;
  transition: color 0.3s ease;
  font-weight: var(--font-semi-bold);
}

.post-item:hover .post-item__title {
  color: var(--primary-color);
}

.post-item__excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--mb-1-5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-item__meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-top: var(--mb-1);
  border-top: 1px solid rgba(0, 247, 218, 0.1);
}

.post-item__category {
  padding: 0.35rem 0.85rem;
  background: rgba(0, 247, 218, 0.25);
  color: var(--primary-color);
  border-radius: 6px;
  font-weight: var(--font-semi-bold);
  transition: all 0.3s ease;
}

.post-item:hover .post-item__category {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-primary);
}

.post-item__date,
.post-item__read-time {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-item__date i,
.post-item__read-time i {
  color: var(--primary-color);
  opacity: 0.7;
}

/* No Posts */
.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
}

.no-posts i {
  font-size: 5rem;
  color: var(--text-secondary);
  opacity: 0.2;
  margin-bottom: var(--mb-1-5);
}

.no-posts h3 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: var(--mb-1);
}

.no-posts p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Pagination */
.pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.pagination ul {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination a,
.pagination span {
  min-width: 48px;
  height: 48px;
  padding: 0 1rem;
  background: var(--bg-secondary);
  border: 2px solid rgba(0, 247, 218, 0.1);
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: var(--font-medium);
}

.pagination a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 247, 218, 0.2);
}

.pagination .current {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-primary);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(0, 247, 218, 0.3);
}

/* Categories Overview */
.categories-overview {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
}

.categories-overview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: var(--mb-3);
}

.category-card {
  padding: 2.5rem;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 2px solid rgba(0, 247, 218, 0.08);
  text-align: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(10px);
}

/* ::before defined in SHARED UTILITIES section */

.category-card:hover::before {
  opacity: 1;
}

.category-card:hover {
  border-color: transparent;
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 247, 218, 0.25);
}

.category-card__icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--mb-2);
  font-size: 2.25rem;
  color: var(--bg-primary);
  transition: transform 0.4s ease;
  box-shadow: 0 8px 24px rgba(0, 247, 218, 0.3);
}

.category-card:hover .category-card__icon {
  transform: scale(1.1) rotate(5deg);
}

.category-card__name {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: var(--font-semi-bold);
}

.category-card__count {
  color: var(--primary-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.category-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Newsletter CTA */
.newsletter-cta {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(0, 247, 218, 0.08), rgba(155, 149, 197, 0.08));
  padding: 4rem 3rem;
  border-radius: 32px;
  border: 2px solid rgba(0, 247, 218, 0.15);
  text-align: center;
  position: relative;
  backdrop-filter: blur(10px);
}

/* ::before defined in SHARED UTILITIES section */

.cta-box:hover::before {
  opacity: 0.3;
}

.cta-box__title {
  font-size: 2.25rem;
  color: var(--primary-color);
  margin-bottom: var(--mb-1-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-weight: var(--font-bold);
}

.cta-box__title i {
  font-size: 2rem;
}

.cta-box__description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--mb-3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 550px;
  margin: 0 auto;
}

.newsletter-form__input {
  flex: 1;
  padding: 1.2rem 1.75rem;
  background: var(--bg-secondary);
  border: 2px solid rgba(0, 247, 218, 0.15);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.newsletter-form__input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.newsletter-form__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 247, 218, 0.15);
  background: rgba(13, 17, 23, 0.6);
}

.newsletter-form__btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  padding: 1.2rem 2rem;
  font-size: 1rem;
  font-weight: var(--font-semi-bold);
}

/* Responsive */
@media screen and (max-width: 968px) {
  .page-header__title {
    font-size: 2.75rem;
  }

  .featured-post__card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .featured-post__image {
    height: 350px;
  }

  .featured-post__content {
    padding: 2.5rem 2rem;
  }

  .featured-post__title {
    font-size: 2rem;
  }

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

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form__btn {
    width: 100%;
    justify-content: center;
  }

  .cta-box {
    padding: 3rem 2rem;
  }
}

@media screen and (max-width: 576px) {
  .page-header {
    padding: 6rem 0 4rem;
  }

  .page-header__title {
    font-size: 2.25rem;
  }

  .page-header__intro {
    font-size: 1rem;
  }

  .featured-post__image {
    height: 250px;
  }

  .featured-post__content {
    padding: 2rem 1.5rem;
  }

  .featured-post__title {
    font-size: 1.65rem;
  }

  .featured-post__excerpt {
    font-size: 1rem;
  }

  .featured-post__meta {
    gap: 1.5rem;
    flex-direction: column;
  }

  .posts__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .filter-tab {
    padding: 0.75rem;
    font-size: 1.1rem;
    min-width: 48px;
    justify-content: center;
  }

  .filter-tab__text {
    display: none;
  }

  .filter-tab i {
    margin: 0;
  }

  .cta-box {
    padding: 2.5rem 1.5rem;
  }

  .cta-box__title {
    font-size: 1.75rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .cta-box__description {
    font-size: 1rem;
  }

  .category-card__icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }

  .category-card {
    padding: 2rem 1.5rem;
  }

  .post-item__content {
    padding: 1.5rem;
  }

  .post-item__title {
    font-size: 1.15rem;
  }
}

/*=============== ARCHIVE LAYOUT (SIDEBAR) ===============*/

/* Two-column layout */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.archive-main {
  min-width: 0; /* Prevents grid blowout */
}

/* Full-width layout (no sidebar) */
.archive-main-full {
  width: 100%;
  max-width: 100%;
}

/* Sidebar */
.archive-sidebar {
  position: sticky;
  top: 7rem;
}

.sidebar-widget {
  background: var(--bg-secondary);
  border: 2px solid rgba(0, 247, 218, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: var(--mb-1-5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: var(--font-semi-bold);
}

.widget-title i {
  color: var(--primary-color);
  font-size: 1.15rem;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tag {
  padding: 0.6rem 1.2rem;
  background: rgba(0, 247, 218, 0.08);
  border: 2px solid rgba(0, 247, 218, 0.15);
  border-radius: 50px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: var(--font-medium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.tag:hover {
  border-color: transparent;
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 247, 218, 0.3);
}

.tag:hover::before {
  opacity: 1;
}

/* Responsive Sidebar */
@media screen and (max-width: 1024px) {
  .archive-layout {
    grid-template-columns: 1fr 280px;
    gap: 2rem;
  }

  .sidebar-widget {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 968px) {
  .archive-layout {
    grid-template-columns: 1fr;
  }

  .archive-sidebar {
    position: static;
    margin-top: 3rem;
  }

  .sidebar-widget {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .tag-cloud {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .sidebar-widget {
    padding: 1.25rem;
  }

  .widget-title {
    font-size: 1.1rem;
  }

  .tag {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/*=============== CATEGORY PAGE SPECIFIC ===============*/

/* Category Page - Inline Icon with Title */
.category-archive .page-header__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.category-archive .page-header__title i {
  color: var(--primary-color);
  font-size: inherit;
}

/* Page Header Icon (Legacy - for other uses) */
.page-header__icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--mb-1);
  font-size: 2rem;
  color: var(--bg-primary);
}

.page-header__stats {
  margin-top: var(--mb-1);
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.page-header__stats i {
  color: var(--primary-color);
}

/* Categories List in Sidebar */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 247, 218, 0.05);
  border: 2px solid rgba(0, 247, 218, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-list-item:hover {
  background: rgba(0, 247, 218, 0.1);
  border-color: rgba(0, 247, 218, 0.3);
  transform: translateX(5px);
}

.category-list-item.active {
  background: linear-gradient(135deg, rgba(0, 247, 218, 0.15), rgba(155, 149, 197, 0.15));
  border-color: var(--primary-color);
  color: var(--text-primary);
}

.category-list-item__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 247, 218, 0.1);
  border-radius: 10px;
  color: var(--primary-color);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.category-list-item.active .category-list-item__icon {
  background: var(--primary-color);
  color: var(--bg-primary);
}

.category-list-item__name {
  flex: 1;
  font-weight: var(--font-medium);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-list-item__name i {
  color: var(--primary-color);
  font-size: 1rem;
}

.category-list-item__count {
  padding: 0.25rem 0.75rem;
  background: rgba(0, 247, 218, 0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: var(--font-semi-bold);
  color: var(--primary-color);
}

.category-list-item.active .category-list-item__count {
  background: var(--primary-color);
  color: var(--bg-primary);
}

/* Responsive for Category Page */
@media screen and (max-width: 576px) {
  .page-header__icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .category-list-item {
    padding: 0.75rem;
  }

  .category-list-item__icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .category-list-item__name {
    font-size: 0.9rem;
  }

  .no-posts i {
    font-size: 3rem;
  }

  .no-posts p {
    font-size: 1rem;
  }
}

/*=============== TAG PAGE SPECIFIC ===============*/

/* Tag Page Title with Cyan Color */
.tag-archive .page-header__title {
  color: var(--primary-color);
  font-weight: var(--font-bold);
}

/* Active Tag in Sidebar */
.tag-cloud .tag.active {
  background: var(--primary-color);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 247, 218, 0.3);
}

.tag-cloud .tag.active::before {
  opacity: 1;
}

/*=============== ARCHIVE PAGES LAYOUT FIX ===============*/

/* Ensure body can scroll on archive pages */
body.tag,
body.archive,
body.category {
  overflow-y: auto;
  min-height: 100vh;
}

/* Fix main content area layout */
.tag-archive .main,
.category-archive .main,
.blog-archive-page .main {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Ensure sections have proper spacing */
.tag-archive .section,
.category-archive .section,
.blog-archive-page .section {
  width: 100%;
}
