/* ============================================
   CATEGORY PAGE ENHANCED STYLES
   Modern, mature UI for Category Archive
   ============================================ */


/* ========== CATEGORY HEADER ========== */
.content--category .content__header {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
  background: linear-gradient(
    135deg,
    var(--color-bg-tertiary) 0%,
    var(--color-bg-alt) 50%,
    var(--color-bg) 100%
  );
  position: relative;
  overflow: hidden;
}

.content--category .content__header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(255, 18, 18, 0.08) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 80% 70%,
    rgba(107, 114, 128, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 0;
}

.content--category .content__header > * {
  position: relative;
  z-index: 1;
}

.content--category .content__header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    var(--color-text) 0%,
    var(--color-primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.content--category .content__header p {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-lg));
  line-height: 1.6;
  color: var(--color-text-tertiary);
  max-width: 43.7500rem;
  margin: 0 auto;
  text-align: center;
  opacity: 0.9;
}

.content--category .content__header p.text-1 {
  font-size: var(--fs-sm);
  color: var(--color-text-subtle);
  margin-top: 0.7500rem;
  opacity: 0.85;
  font-weight: 500;
}

/* ========== CATEGORY SECTION ========== */
.content--category {
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 18, 18, 0.04) 0%,
    rgba(107, 114, 128, 0.02) 30%,
    transparent 50%
  );
}

.content--category .content__section > * {
  position: relative;
  z-index: 1;
}

/* ========== CATEGORY TITLE ========== */
.content--category .content__section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.content--category .category-sort {
  gap: 0.7500rem;
  display: flex;
  align-items: center;
}

.content--category .category-sort label {
  white-space: nowrap;
}

.content--category .content__title {
  display: flex;
  align-items: center;
  gap: 0.7500rem;
  font-size: clamp(var(--fs-xl), 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  padding-left: 0;
  position: relative;
}

.content--category .content__title::after {
  display: none;
}

.content--category .content__title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5000rem;
  width: 4rem;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    rgba(255, 18, 18, 0.5) 50%,
    transparent 100%
  );
  border-radius: 2px;
}

/* ========== ARTICLE LIST ========== */
.content--category .content__list {
  display: flex;
  flex-direction: column;
  gap: 2.5000rem;
}

.content--category .content__list .article-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.content--category .content__list .article-card:nth-child(1) {
  animation-delay: 0.1s;
}

.content--category .content__list .article-card:nth-child(2) {
  animation-delay: 0.2s;
}

.content--category .content__list .article-card:nth-child(3) {
  animation-delay: 0.3s;
}

.content--category .content__list .article-card:nth-child(4) {
  animation-delay: 0.4s;
}

.content--category .content__list .article-card:nth-child(5) {
  animation-delay: 0.5s;
}

.content--category .content__list .article-card:nth-child(6) {
  animation-delay: 0.6s;
}

.content--category .content__list .article-card:nth-child(n+7) {
  animation-delay: 0.7s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== ARTICLE CARD HORIZONTAL ENHANCED ========== */
.content--category .article-card--horizontal {
  margin-bottom: 0;
}

/* ========== SIDEBAR ========== */
.content--category .container__sidebar {
  position: relative;
}

/* ========== EMPTY STATE ========== */
.content--category .content__list__empty {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.125rem;
  background-color: var(--color-surface);
  border-radius: 1rem;
  border: 1px dashed var(--color-border);
}


/* ========== RESPONSIVE DESIGN ========== */

/* Tablet (48rem - 62rem) */
@media (max-width: 62rem) {
  .content--category .content__header {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
  }

  .content--category .content__list {
    gap: 2rem;
  }
}

/* Mobile Large (36rem - 48rem) */
@media (max-width: 48rem) {
  .content--category .content__header {
    padding-top: calc(var(--header-height) + 2.5000rem);
    padding-bottom: 2.5000rem;
  }

  .content--category .content__header h1 {
    margin-bottom: 0.7500rem;
  }

  .content--category .content__header p {
    font-size: var(--fs-base);
  }

  .content--category .content__title {
    font-size: 1.5rem;
  }

  .content--category .content__list {
    gap: 1.5000rem;
  }

  .content--category .content__list .article-card {
    animation-delay: 0s !important;
  }
}

/* Mobile Small (< 36rem) */
@media (max-width: 36rem) {
  .content--category .content__header {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 2rem;
  }

  .content--category .content__header h1 {
    font-size: 1.75rem;
  }

  .content--category .content__header p {
    font-size: var(--fs-sm);
  }

  .content--category .content__title {
    font-size: 1.25rem;
  }

  .content--category .content__list {
    gap: 1.2500rem;
  }
}

