/* Archived hero tweaks */

.archived-hero {
  margin-bottom: 20px;
}

/* Archived series grid */

.archived-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 18px;
}

/* Individual archived series card */

.archived-card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  border-radius: 20px;
  border: 1px solid rgba(248, 250, 252, 0.06);
  padding: 20px 18px 18px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archived-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.3), rgba(251, 191, 36, 0.2));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.8;
  pointer-events: none;
}

.archived-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.8);
}

.archived-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 8px;
}

.archived-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f9fafb;
  line-height: 1.2;
}

.archived-card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fef3c7;
  background: rgba(251, 191, 36, 0.2);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  letter-spacing: 0.08em;
}

/* Stats grid - enhanced */

.archived-card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-item {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  transition: background-color 0.2s ease;
}

.stat-item:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.4);
}

.stat-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.7rem;
  color: #9ca3af;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Description */

.archived-card-description {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e5e7eb;
  margin-bottom: 16px;
}

/* External links */

.archived-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archived-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #f9fafb;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.archived-link-primary {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border-color: rgba(248, 113, 113, 0.8);
  color: #fef2f2;
  box-shadow:
    0 10px 18px rgba(248, 113, 113, 0.4),
    0 0 0 1px rgba(248, 113, 113, 0.5);
}

.archived-link:hover {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.9);
  transform: translateY(-1px);
}

.archived-link-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 24px rgba(248, 113, 113, 0.55),
    0 0 0 1px rgba(248, 113, 113, 0.7);
  filter: brightness(1.03);
}

/* Responsive */

@media (max-width: 768px) {
  .archived-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .archived-card-links {
    justify-content: center;
  }

  .archived-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .archived-card-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 10px 6px;
  }

  .stat-number {
    font-size: 1rem;
  }
}
