/* =============================================
   BESTCLEAN24 — ARCHIVE (Category & Tag)
   Compact list layout
   ============================================= */


/* =============================================================
   HERO
   ============================================================= */
.bc-archive-hero {
  background: var(--bc-blue);
  position: relative;
}

.bc-archive-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.bc-archive-hero-inner {
  max-width: var(--bc-max-width);
  margin: 0 auto;
  padding: 2rem 2.5rem;
  position: relative;
}

.bc-archive-breadcrumb {
  font-family: var(--bc-font);
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.6rem;
}

.bc-archive-breadcrumb a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.bc-archive-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.bc-archive-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.bc-archive-title {
  font-family: var(--bc-font);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--bc-white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.bc-archive-count {
  font-family: var(--bc-font);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
  padding-bottom: 0.25rem;
  white-space: nowrap;
}

.bc-archive-desc {
  font-family: var(--bc-font);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  max-width: 550px;
  margin-top: 0.5rem;
}

.bc-archive-desc p {
  margin: 0;
}


/* =============================================================
   ARTICLE LIST
   ============================================================= */
.bc-archive-body {
  background: var(--bc-white);
}

.bc-archive-body-inner {
  max-width: var(--bc-max-width);
  margin: 0 auto;
  padding: 0 2.5rem 3rem;
}

.bc-archive-list {
  margin-top: -1px;
}

/* Single list item (entire row is a link) */
.bc-archive-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0.5rem;
  border-bottom: 1px solid var(--bc-border);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.25s, background 0.25s;
  border-radius: 0;
}

.bc-archive-item:first-child {
  border-top: 1px solid var(--bc-border);
}

.bc-archive-item:hover {
  padding-left: 1rem;
  background: var(--bc-gray-bg);
}

/* Number */
.bc-archive-item-number {
  font-family: var(--bc-font);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(0, 49, 244, 0.15);
  min-width: 40px;
  text-align: right;
  transition: color 0.25s;
  flex-shrink: 0;
}

.bc-archive-item:hover .bc-archive-item-number {
  color: var(--bc-blue);
}

/* Content */
.bc-archive-item-content {
  flex: 1;
  min-width: 0;
}

.bc-archive-item-title {
  font-family: var(--bc-font);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bc-black);
  line-height: 1.35;
  margin-bottom: 0.15rem;
  transition: color 0.2s;
}

.bc-archive-item:hover .bc-archive-item-title {
  color: var(--bc-blue);
}

.bc-archive-item-excerpt {
  font-family: var(--bc-font);
  font-size: 0.75rem;
  color: var(--bc-gray);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta (right side) */
.bc-archive-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex-shrink: 0;
}

.bc-archive-item-date {
  font-family: var(--bc-font);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--bc-gray-mid);
  white-space: nowrap;
}

.bc-archive-item-time {
  font-family: var(--bc-font);
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--bc-blue);
  opacity: 0.65;
  white-space: nowrap;
}


/* =============================================================
   PAGINATION
   ============================================================= */
.bc-archive-pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.bc-archive-pagination ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bc-archive-pagination li {
  list-style: none;
}

.bc-archive-pagination a,
.bc-archive-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 8px;
  font-family: var(--bc-font);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.bc-archive-pagination a {
  color: var(--bc-gray);
  background: var(--bc-gray-bg);
}

.bc-archive-pagination a:hover {
  background: var(--bc-blue);
  color: var(--bc-white);
}

/* Current page */
.bc-archive-pagination .current {
  background: var(--bc-blue);
  color: var(--bc-white);
}

/* Dots */
.bc-archive-pagination .dots {
  background: none;
  color: var(--bc-gray-mid);
}

/* Arrow buttons */
.bc-archive-pagination a svg {
  stroke: currentColor;
}


/* =============================================================
   EMPTY STATE
   ============================================================= */
.bc-archive-empty {
  padding: 3rem 0;
  text-align: center;
}

.bc-archive-empty p {
  font-family: var(--bc-font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bc-gray);
  margin-bottom: 1rem;
}

.bc-archive-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--bc-font);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bc-blue);
  text-decoration: none;
  transition: opacity 0.2s;
}

.bc-archive-back:hover {
  opacity: 0.75;
}


/* =============================================================
   MOBILE
   ============================================================= */
@media (max-width: 600px) {
  .bc-archive-hero-inner {
    padding: 1.5rem 1.25rem;
  }

  .bc-archive-hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .bc-archive-title {
    font-size: 1.35rem;
  }

  .bc-archive-count {
    padding-bottom: 0;
  }

  .bc-archive-body-inner {
    padding: 0 1.25rem 2rem;
  }

  .bc-archive-item {
    gap: 1rem;
    padding: 1rem 0.25rem;
  }

  .bc-archive-item:hover {
    padding-left: 0.5rem;
  }

  .bc-archive-item-number {
    font-size: 1.1rem;
    min-width: 28px;
  }

  .bc-archive-item-title {
    font-size: 0.85rem;
  }

  .bc-archive-item-excerpt {
    display: none;
  }

  .bc-archive-item-meta {
    gap: 0.1rem;
  }

  .bc-archive-item-date {
    font-size: 0.58rem;
  }
}
