/* ==============================================================
   GATechX — articles.css
   Filters, article grid, empty state and pagination
   Requires the shared tokens/base rules from Style.css
   ============================================================== */

.category-section--articles {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: clamp(4rem, 10vw, 8rem);
}
/* ==============================================================
   8. FILTERS + ARTICLE GRID
   ============================================================== */
.section-heading--articles { align-items: center; }

.articles-count {
  margin: 0;
  color: var(--dim);
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.articles-count strong { color: var(--blue); }

.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(8,13,21,.72);
  border: 1px solid rgba(255,255,255,.07);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.filter-button {
  min-height: 40px;
  padding: .55rem .9rem;
  background: rgba(46,155,255,.03);
  border: 1px solid transparent;
  color: var(--dim);
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.filter-button:hover {
  color: var(--mist);
  border-color: var(--edge);
}

.filter-button.is-active {
  color: var(--white);
  border-color: var(--blue);
  background: rgba(46,155,255,.08);
  box-shadow: 0 0 20px -10px var(--blue);
}

.article-search {
  width: min(100%, 290px);
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 0 .9rem;
  background: rgba(0,0,0,.5);
  border: 1px solid var(--edge);
}

.article-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 22px -8px var(--blue);
}

.article-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.article-search input {
  width: 100%;
  padding: .8rem 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--white);
}

.article-search input::placeholder { color: var(--dim); }

.article-grid {
  display: grid;
  gap: 1.25rem;
}

.article-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(46,155,255,.09), rgba(8,13,21,.85));
  border: 1px solid var(--edge);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.article-card::before {
  content: "";
  position: absolute;
  inset: -40% 50% 50% -40%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(46,155,255,.28), transparent 65%);
  transition: opacity .4s ease;
}

.article-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue);
  box-shadow: 0 24px 60px -34px var(--blue);
}

.article-card:hover::before { opacity: 1; }

.article-card > * { position: relative; }
.article-card.is-filtered-out { display: none; }

.article-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--panel);
}

.article-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(4,7,12,.86));
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: transform .6s ease, opacity .4s ease;
}

.article-card:hover .article-card__media img {
  transform: scale(1.05);
  opacity: 1;
}

.article-card__number {
  position: absolute;
  right: 1rem;
  bottom: .8rem;
  z-index: 2;
  color: rgba(255,255,255,.72);
  font-family: var(--f-display);
  font-size: .78rem;
}

.article-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
}

.article-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-card__topline > span {
  color: var(--dim);
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.article-card h3 {
  font-size: var(--s1);
  line-height: 1.25;
}

.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { color: var(--blue-hot); }

.article-card__body > p {
  margin: 1rem 0 0;
  color: var(--dim);
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.35rem;
}

.article-card__footer > a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--edge);
  border-radius: 50%;
  color: var(--blue);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.article-card:hover .article-card__footer > a {
  transform: translateX(.25rem);
  border-color: var(--blue);
  box-shadow: 0 0 18px -6px var(--blue);
}

@media (min-width: 700px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .article-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ==============================================================
   9. EMPTY STATE + PAGINATION
   ============================================================== */
.no-results {
  min-height: 280px;
  padding: 3rem 1rem;
  text-align: center;
  background: rgba(8,13,21,.72);
  border: 1px dashed var(--edge);
}

.no-results:not([hidden]) {
  display: grid;
  place-content: center;
  justify-items: center;
}

.no-results > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid var(--edge);
  border-radius: 50%;
  color: var(--blue);
  font-family: var(--f-display);
  font-size: 1.4rem;
}

.no-results h3 { font-size: var(--s1); }

.no-results p {
  margin: .5rem 0 0;
  color: var(--dim);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}

.pagination a,
.pagination__dots {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding-inline: .55rem;
  background: rgba(8,13,21,.72);
  border: 1px solid rgba(255,255,255,.07);
  color: var(--dim);
  font-family: var(--f-mono);
  font-size: .72rem;
  text-decoration: none;
  transition: transform .25s ease, color .25s ease, border-color .25s ease, background .25s ease;
}

.pagination a:hover {
  transform: translateY(-2px);
  color: var(--white);
  border-color: var(--blue);
  background: rgba(46,155,255,.08);
}

.pagination a.is-current {
  color: #001428;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 22px -8px var(--blue);
}

.pagination .pagination__arrow { min-width: 52px; }
.pagination .is-disabled { opacity: .32; pointer-events: none; }
/* ==============================================================
   RESPONSIVE
   ============================================================== */
@media (max-width: 900px) {
  .article-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .article-search {
    width: 100%;
  }
}

@media (max-width: 650px) {
  .category-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-button {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .category-filters {
    grid-template-columns: 1fr;
  }
}
