/* ═══════════════════════════════════════════════════════════
   ARCHIVE.CSS — Power House Archive
   NDMA Pakistan | Bootstrap 5.3.x companion stylesheet
═══════════════════════════════════════════════════════════ */

:root {
  --arc-green:       #026902;
  --arc-green-light: #038a03;
  --arc-accent:      #f5a623;
  --arc-bg:          rgba(5,14,5,.92);
  --arc-card-bg:     rgba(255,255,255,.05);
  --arc-border:      rgba(255,255,255,.09);
  --arc-text:        rgba(255,255,255,.88);
  --arc-muted:       rgba(255,255,255,.5);
  --arc-radius:      12px;

  /* category palette */
  --arc-pub:    #2e7d32;
  --arc-paper:  #1565c0;
  --arc-art:    #e65100;
  --arc-note:   #6a1b9a;
}

/* ── PAGE BASE ───────────────────────────────────────────── */
.arc-page {
  min-height: 100vh;
  color: var(--arc-text);
  overflow-x: hidden;
  background:
    linear-gradient(rgba(4,12,4,.90), rgba(4,12,4,.90)),
    url('../img/hero.png') center / cover fixed;
}

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.arc-header {
  padding: 72px 0 48px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.arc-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--arc-accent);
  margin-bottom: 16px;
}

.arc-header__title {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 1.05;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}

.arc-header__sub {
  font-size: 16px;
  color: var(--arc-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.arc-stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.arc-stat {
  text-align: center;
}
.arc-stat__num {
  display: block;
  font-weight: 800;
  font-size: 2rem;
  color: var(--arc-accent);
  line-height: 1;
}
.arc-stat__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--arc-muted);
  margin-top: 4px;
  display: block;
}

/* ══════════════════════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════════════════════ */
.arc-filter-section {
  padding: 32px 0 24px;
}

.arc-filter-card {
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--arc-radius);
  padding: 24px 28px;
}

.arc-filter-card .form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--arc-muted);
  margin-bottom: 6px;
}

.arc-filter-card .form-control,
.arc-filter-card .form-select {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color .2s, background .2s;
}
.arc-filter-card .form-control::placeholder { color: rgba(255,255,255,.35); }
.arc-filter-card .form-control:focus,
.arc-filter-card .form-select:focus {
  background: rgba(255,255,255,.1);
  border-color: rgba(2,105,2,.6);
  box-shadow: 0 0 0 3px rgba(2,105,2,.15);
  color: #fff;
}
.arc-filter-card .form-select option {
  background: #0d1f0d;
  color: #fff;
}

.arc-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.arc-btn-search {
  background: var(--arc-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.arc-btn-search:hover {
  background: var(--arc-green-light);
  transform: translateY(-1px);
}

.arc-btn-reset {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.arc-btn-reset:hover { background: rgba(255,255,255,.14); color: #fff; }

.arc-result-count {
  font-size: 13px;
  color: var(--arc-muted);
  margin-top: 14px;
}
.arc-result-count strong { color: var(--arc-accent); }

/* ══════════════════════════════════════════════════════════
   CARDS GRID
══════════════════════════════════════════════════════════ */
.arc-grid-section {
  padding: 8px 0 48px;
}

.arc-card-col {
  transition: opacity .25s;
}
.arc-card-col.arc-hidden {
  display: none !important;
}

.arc-card {
  background: rgba(10,24,10,.72);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--arc-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s, border-color .25s;
}
.arc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.55);
  border-color: rgba(2,105,2,.45);
}

/* Cover */
.arc-card__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  flex-shrink: 0;
}
.arc-card__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .38s ease;
}
.arc-card:hover .arc-card__cover img { transform: scale(1.07); }

.arc-card__cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 30%, transparent 70%);
}

/* Category badge */
.arc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
  color: #fff;
}
.arc-badge--publication { background: var(--arc-pub); }
.arc-badge--papers      { background: var(--arc-paper); }
.arc-badge--articles    { background: var(--arc-art); }
.arc-badge--notes       { background: var(--arc-note); }

/* Body */
.arc-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.arc-card__title {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.arc-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
}
.arc-card__meta span {
  font-size: 12px;
  color: var(--arc-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.arc-card__meta i { font-size: 11px; color: #5ccc5c; }

.arc-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(2,105,2,.25);
  border: 1px solid rgba(2,105,2,.45);
  color: #a8e6a8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 7px;
  width: 100%;
  transition: background .2s, color .2s, border-color .2s;
}
.arc-card__btn:hover {
  background: var(--arc-green);
  border-color: var(--arc-green);
  color: #fff;
}

/* no-results message */
.arc-no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: var(--arc-muted);
}
.arc-no-results i { font-size: 48px; display: block; margin-bottom: 14px; color: rgba(255,255,255,.15); }
.arc-no-results.is-visible { display: block; }

/* ══════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════ */
.arc-pagination-wrap {
  padding: 0 0 56px;
  display: flex;
  justify-content: center;
}

.arc-pagination .page-item .page-link {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.65);
  border-radius: 8px !important;
  margin: 0 3px;
  font-size: 14px;
  font-weight: 600;
  min-width: 38px;
  text-align: center;
  transition: background .2s, color .2s, border-color .2s;
}
.arc-pagination .page-item .page-link:hover {
  background: rgba(2,105,2,.25);
  border-color: rgba(2,105,2,.5);
  color: #fff;
}
.arc-pagination .page-item.active .page-link {
  background: var(--arc-green);
  border-color: var(--arc-green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(2,105,2,.4);
}
.arc-pagination .page-item.disabled .page-link {
  opacity: .35;
  pointer-events: none;
}

@media (max-width: 575px) {
  .arc-header { padding: 52px 0 36px; }
  .arc-stats-row { gap: 24px; }
  .arc-filter-actions { flex-direction: column; width: 100%; }
  .arc-filter-actions button { width: 100%; justify-content: center; }
}
