/* ==========================================================================
   SAMUNAH — ARTICLES & INSIGHTS ARCHIVE HUB (articles.css)
   Clean, authoritative editorial knowledge center with live filtering
   ========================================================================== */

.articles-hub-body {
  background-color: var(--abyss-deep);
  color: var(--shell);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.articles-hub-main {
  flex: 1;
}

/* Hero Section */
.articles-hub-hero {
  position: relative;
  padding-top: clamp(4.5rem, 6.5vw, 5.75rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
  background: linear-gradient(180deg, var(--abyss-deep) 0%, var(--abyss) 100%);
  border-bottom: 1px solid rgba(202, 221, 229, 0.08);
}

.articles-hub-breadcrumbs {
  margin-bottom: 1.5rem;
}

.articles-hub-breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mist);
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.articles-hub-breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
  transition: color var(--trans-fast);
}

.articles-hub-breadcrumbs a:hover {
  color: var(--aqua);
  text-decoration: underline;
}

.articles-hub-breadcrumbs .breadcrumb-sep {
  opacity: 0.45;
  color: var(--mist);
  user-select: none;
}

.articles-hub-breadcrumbs li[aria-current="page"] {
  color: var(--shell);
  font-weight: 500;
}

@media (max-width: 480px) {
  .articles-hub-breadcrumbs .breadcrumb-home,
  .articles-hub-breadcrumbs .breadcrumb-home-sep {
    display: none;
  }

  .articles-hub-eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.10em;
  }
}

.articles-hub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(99, 174, 195, 0.15);
  border: 1px solid rgba(99, 174, 195, 0.32);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shell);
  margin-bottom: 1.25rem;
}

.articles-hub-eyebrow .eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold);
}

.articles-hub-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 1.8rem + 2.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--shell);
  margin-bottom: 1.25rem;
  max-width: 900px;
  text-wrap: balance;
}

.articles-hub-title .text-aqua {
  color: var(--accent-light);
}

.articles-hub-lead {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.7;
  color: #c4dbe6;
  max-width: 820px;
  margin-bottom: 0;
  text-wrap: pretty;
}

/* Interactive Filtering & Search Bar */
.archive-controls-wrap {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1rem, 2vw, 1.35rem);
  background: rgba(11, 34, 49, 0.65);
  border: 1px solid rgba(202, 221, 229, 0.14);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.archive-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.archive-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.archive-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #7d9ba8;
  pointer-events: none;
  transition: color var(--trans-fast);
}

.archive-search-input {
  width: 100%;
  padding: 11px 18px 11px 42px;
  background: rgba(244, 242, 236, 0.05);
  border: 1px solid rgba(202, 221, 229, 0.2);
  border-radius: 9999px;
  color: var(--shell);
  font-family: var(--font-body);
  font-size: 0.925rem;
  transition: all var(--trans-fast);
}

.archive-search-input:focus {
  outline: none;
  background: rgba(244, 242, 236, 0.09);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215, 164, 81, 0.22);
}

.archive-search-input:focus + .archive-search-icon {
  color: var(--gold);
}

.archive-search-input::placeholder {
  color: #7d9ba8;
}

.archive-status-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: #a4c0cd;
  white-space: nowrap;
}

.archive-categories-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.archive-cat-btn {
  padding: 6px 15px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgba(202, 221, 229, 0.18);
  background: rgba(244, 242, 236, 0.04);
  color: #c4dbe6;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.archive-cat-btn:hover {
  background: rgba(244, 242, 236, 0.1);
  color: var(--shell);
  border-color: rgba(202, 221, 229, 0.35);
}

.archive-cat-btn.is-active {
  background: var(--gold);
  color: var(--abyss-deep);
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 2px 10px var(--gold-glow);
}

/* Archive Grid Section */
.articles-hub-catalog {
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  padding-bottom: clamp(6rem, 10vw, 9rem);
  position: relative;
  background: var(--abyss);
}

.articles-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

/* Empty Search Results */
.archive-empty-state {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
  background: rgba(244, 242, 236, 0.02);
  border: 1px dashed rgba(202, 221, 229, 0.2);
  border-radius: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.archive-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.8;
}

.archive-empty-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--shell);
  margin-bottom: 0.5rem;
}

.archive-empty-desc {
  font-size: 0.95rem;
  color: #a4c0cd;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.archive-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: rgba(244, 242, 236, 0.08);
  border: 1px solid rgba(202, 221, 229, 0.25);
  border-radius: 9999px;
  color: var(--shell);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.archive-reset-btn:hover {
  background: var(--gold);
  color: var(--abyss-deep);
  border-color: var(--gold);
  box-shadow: 0 4px 14px var(--gold-glow);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .articles-archive-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .archive-search-box {
    width: 100%;
    min-width: 100%;
  }

  .archive-controls-wrap {
    padding: 1.25rem 1rem;
  }
}
