/* ============================================================
   news.css - News / Transmissions page
   ============================================================ */

/* Page header */
.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.page-header .section-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  margin-bottom: 0.6rem;
  opacity: 0.8;
}

.page-header h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary, #e8e0d0);
  margin: 0;
}

/* Divider */
.divider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.25), transparent);
}

/* ============================================================
   Featured section
   ============================================================ */

.featured-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 0;
}

.featured-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  opacity: 0.7;
  margin-bottom: 1.2rem;
}

/* Grid layouts for 1, 2, or 3 featured cards */
.featured-grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5px;
}

.featured-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
}

.featured-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5px;
}

.featured-grid-3 .feat-card:first-child {
  grid-row: 1 / 3;
}

/* Featured card */
.feat-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 280px;
  text-decoration: none;
  background: rgba(12,10,8,0.95);
  border: 0.5px solid rgba(201,168,76,0.12);
}

.feat-card:hover .feat-card-overlay {
  opacity: 0.35;
}

.feat-card:hover .feat-card-title {
  color: var(--gold, #c9a84c);
}

.feat-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.feat-card:hover .feat-card-img {
  opacity: 0.7;
  transform: scale(1.02);
}

/* Fallback bg when no image */
.feat-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,22,12,1) 0%, rgba(8,8,12,1) 100%);
}

.feat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,3,2,0.92) 0%, rgba(4,3,2,0.3) 60%, transparent 100%);
  transition: opacity 0.3s ease;
  opacity: 0.6;
  z-index: 1;
}

/* Corner accents */
.feat-card-corner-tl,
.feat-card-corner-br {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.5;
}

.feat-card-corner-tl {
  top: 0.8rem;
  left: 0.8rem;
  border-top: 1px solid var(--gold, #c9a84c);
  border-left: 1px solid var(--gold, #c9a84c);
}

.feat-card-corner-br {
  bottom: 0.8rem;
  right: 0.8rem;
  border-bottom: 1px solid var(--gold, #c9a84c);
  border-right: 1px solid var(--gold, #c9a84c);
}

.feat-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 280px;
  padding: 1.8rem 1.6rem;
}

.feat-card-tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.feat-card-title {
  font-family: 'Cinzel', serif;
  color: var(--text-primary, #e8e0d0);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.feat-card-title.large {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
}

.feat-card-title.small {
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  font-weight: 600;
}

.feat-card-date {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(200,185,155,0.5);
  margin-bottom: 0.8rem;
}

.feat-card-read {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.feat-card:hover .feat-card-read {
  opacity: 0.8;
}

/* ============================================================
   Controls - search, sort, filter tabs
   ============================================================ */

.controls-section {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 0 2rem;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

/* Search */
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: rgba(10,8,5,0.8);
  border: 0.5px solid rgba(201,168,76,0.18);
  color: var(--text-primary, #e8e0d0);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
  color: rgba(180,160,120,0.35);
}

.search-input:focus {
  border-color: rgba(201,168,76,0.45);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.08);
}

/* Sort */
.sort-select {
  background: rgba(10,8,5,0.8);
  border: 0.5px solid rgba(201,168,76,0.18);
  color: var(--text-primary, #e8e0d0);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 0.65rem 1rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.sort-select:focus {
  border-color: rgba(201,168,76,0.45);
}

/* Results count */
.results-count {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(180,160,120,0.45);
  white-space: nowrap;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tab {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(180,160,120,0.55);
  background: rgba(10,8,5,0.6);
  border: 0.5px solid rgba(201,168,76,0.12);
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-tab:hover {
  color: var(--gold, #c9a84c);
  border-color: rgba(201,168,76,0.35);
}

.filter-tab.active {
  color: var(--gold, #c9a84c);
  border-color: rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.07);
}

/* ============================================================
   Articles list
   ============================================================ */

.articles-section {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
}

/* Article row */
.article-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  text-decoration: none;
  background: rgba(10,8,5,0.7);
  border: 0.5px solid rgba(201,168,76,0.1);
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
  min-height: 120px;
}

.article-row:hover {
  background: rgba(16,12,7,0.9);
  border-left-color: var(--gold, #c9a84c);
  border-color: rgba(201,168,76,0.25);
}

/* Thumbnail */
.article-row-img {
  width: 180px;
  min-width: 180px;
  height: 130px;
  object-fit: cover;
  object-position: center;
  opacity: 0.75;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.article-row:hover .article-row-img {
  opacity: 0.9;
}

.article-row-img-placeholder {
  width: 180px;
  min-width: 180px;
  background: rgba(20,15,8,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-right: 0.5px solid rgba(201,168,76,0.07);
}

.article-row-img-placeholder span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(180,160,120,0.2);
}

/* Row body text */
.article-row-body {
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
}

.article-row-tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  opacity: 0.75;
}

.article-row-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-weight: 600;
  color: var(--text-primary, #e8e0d0);
  line-height: 1.35;
  transition: color 0.2s ease;
}

.article-row:hover .article-row-title {
  color: var(--gold, #c9a84c);
}

.article-row-excerpt {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(200,185,155,0.55);
  line-height: 1.55;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-row-date {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(180,160,120,0.4);
  margin-top: 0.1rem;
}

/* Fade-in animation for list render */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.25s ease forwards;
}

/* No results / loading */
.no-results {
  padding: 4rem 2rem;
  text-align: center;
  color: rgba(180,160,120,0.35);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.08em;
}

.no-results-title {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: rgba(180,160,120,0.5);
}

/* ============================================================
   Pagination
   ============================================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 2.5rem 0 1rem;
  flex-wrap: wrap;
}

.pag-btn {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(180,160,120,0.55);
  background: rgba(10,8,5,0.6);
  border: 0.5px solid rgba(201,168,76,0.12);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pag-btn:hover:not(.disabled):not(.active) {
  color: var(--gold, #c9a84c);
  border-color: rgba(201,168,76,0.35);
}

.pag-btn.active {
  color: var(--gold, #c9a84c);
  border-color: rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.07);
  cursor: default;
}

.pag-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pag-ellipsis {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  color: rgba(180,160,120,0.3);
  padding: 0 0.3rem;
}

/* ============================================================
   Legacy archive note
   ============================================================ */

.legacy-section {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding: 0 2rem 5rem;
}

.legacy-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.6rem 1.8rem;
  background: rgba(10,8,5,0.6);
  border: 0.5px solid rgba(201,168,76,0.1);
  border-left: 2px solid rgba(201,168,76,0.35);
}

.legacy-icon {
  font-size: 1rem;
  color: var(--gold, #c9a84c);
  opacity: 0.5;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.legacy-text {
  flex: 1;
}

.legacy-title {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-primary, #e8e0d0);
  margin-bottom: 0.5rem;
}

.legacy-text p {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(200,185,155,0.55);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.legacy-text strong {
  color: rgba(200,185,155,0.8);
  font-weight: 600;
}

.legacy-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

.legacy-btn {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  background: rgba(201,168,76,0.05);
  border: 0.5px solid rgba(201,168,76,0.25);
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.legacy-btn:hover {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.5);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
  .featured-grid-2,
  .featured-grid-3 {
    grid-template-columns: 1fr;
  }

  .featured-grid-3 .feat-card:first-child {
    grid-row: auto;
  }

  .article-row-img,
  .article-row-img-placeholder {
    width: 110px;
    min-width: 110px;
  }

  .controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-select {
    width: 100%;
  }

  .legacy-inner {
    flex-direction: column;
  }

  .legacy-links {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .article-row-img,
  .article-row-img-placeholder {
    display: none;
  }

  .feat-card-body {
    min-height: 200px;
  }
}