/* ============================================================
   3026 English site — supplementary stylesheet
   Loaded AFTER css/style.css on index-en.html (3026alive.com)
   ============================================================ */

/* ---------- Typography: prefer Latin-first fonts ---------- */
:root {
  --font-display: 'EB Garamond', 'Noto Serif SC', Georgia, serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Article category tabs: 6 columns (EN has 6 categories) ---------- */
.article-category-tabs {
  grid-template-columns: repeat(6, 1fr);
}

/* ---------- English category accent colors ---------- */
.article-card-web[data-category="Frontier Research"] { border-left-color: #7c6fdc; }
.article-card-web[data-category="Paranormal Files"]   { border-left-color: #c45a6f; }
.article-card-web[data-category="Human Stories"]      { border-left-color: #c4a35a; }
.article-card-web[data-category="Vanishing Memories"] { border-left-color: #6f9fae; }
.article-card-web[data-category="Featured Ancients"]  { border-left-color: #c9a227; }
.article-card-web[data-category="Original"]           { border-left-color: #5a9f8b; }

/* ---------- Empty states ---------- */
.article-empty,
.ancient-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--color-ink-dim, #8a94a6);
  border: 1px dashed rgba(122, 136, 160, 0.35);
  border-radius: 12px;
  margin-top: 24px;
}
.ancient-empty p { margin: 6px 0; }
.ancient-empty-hint { font-size: 14px; opacity: 0.85; }
.ancient-empty .btn { margin-top: 18px; }

/* ---------- Hall of Ancients: filter bar ---------- */
.ancient-filter {
  display: flex;
  gap: 10px;
  margin: 18px 0 24px;
  flex-wrap: wrap;
}
.ancient-sort-btn {
  padding: 8px 18px;
  border: 1px solid rgba(122, 136, 160, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink-dim, #8a94a6);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ancient-sort-btn:hover {
  border-color: rgba(138, 156, 190, 0.7);
  color: #e8eaf2;
}
.ancient-sort-btn.active {
  border-color: #7fa8d9;
  color: #dce8f8;
  background: rgba(127, 168, 217, 0.12);
}

/* ---------- Hall of Ancients: grid ---------- */
.ancient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.ancient-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(160deg, rgba(30, 38, 58, 0.85), rgba(18, 24, 40, 0.9));
  border: 1px solid rgba(122, 136, 160, 0.28);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ancient-card:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 156, 190, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.ancient-card-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(127, 168, 217, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: 1px solid rgba(127, 168, 217, 0.35);
}
.ancient-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ancient-card-info { min-width: 0; }
.ancient-card-number {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(138, 156, 190, 0.8);
  margin-bottom: 3px;
}
.ancient-card-info h4 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0;
  color: #e8eaf2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ancient-card-age {
  font-size: 12px;
  color: rgba(138, 156, 190, 0.75);
  margin: 3px 0 0;
}

/* ---------- Ancient detail modal ---------- */
.ancient-detail {
  padding: 4px 2px;
}

.ancient-detail-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.ancient-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(127, 168, 217, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 1px solid rgba(127, 168, 217, 0.4);
}
.ancient-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ancient-detail-info { min-width: 0; }
.ancient-detail-number {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(138, 156, 190, 0.85);
  margin-bottom: 4px;
}
.ancient-detail-name {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0;
  color: #e8eaf2;
}
.ancient-detail-age {
  font-size: 13px;
  color: rgba(138, 156, 190, 0.8);
  margin: 4px 0 0;
}
.ancient-detail-message {
  padding: 16px 18px;
  border-left: 3px solid rgba(127, 168, 217, 0.5);
  background: rgba(127, 168, 217, 0.07);
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  line-height: 1.75;
  color: #d5dae6;
  white-space: pre-wrap;
  word-break: break-word;
}

.ancient-quote {
  margin: 28px 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(122, 136, 160, 0.25);
  border-radius: 10px;
  font-size: 13px;
  color: rgba(138, 156, 190, 0.85);
  font-style: italic;
}

/* ---------- Registration review + photo hint ---------- */
.review-number,
.review-name,
.review-age {
  color: var(--color-ink-dim, #8a94a6);
  font-size: 0.85rem;
}
.upload-hint {
  font-size: 12px;
  color: rgba(138, 156, 190, 0.7);
  margin-top: 8px;
}

/* ---------- Hero: Ancients page (no rule in style.css) ---------- */
.page-hero[data-page="ancients"] .hero-nebula {
  background-image: url('../images/galaxy-spiral.jpg');
}
.page-hero[data-page="ancients"] .hero-nebula::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 25% 25%, rgba(40,100,200,0.25) 0%, transparent 100%),
    radial-gradient(ellipse 600px 450px at 75% 30%, rgba(30,140,180,0.20) 0%, transparent 100%),
    linear-gradient(180deg, rgba(7,10,24,0.6) 0%, rgba(7,10,24,0.3) 50%, rgba(7,10,24,0.8) 100%);
}

/* ---------- Hero: ensure Latin headings stay tight ---------- */
.hero-title { letter-spacing: 0.01em; }

/* ---------- Responsive: tabs wrap on narrow screens ---------- */
@media (max-width: 860px) {
  .article-category-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 520px) {
  .article-category-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .ancient-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
