/* =========================================================
   Golden Eagle — Archive / Category / Search
   ========================================================= */

:root {
  --ge-red: #ef232d;
  --ge-red-dark: #c8121b;
  --ge-line: rgba(255, 255, 255, 0.09);
  --ge-txt: rgba(255, 255, 255, 0.72);
  --ge-dim: rgba(255, 255, 255, 0.48);
}

.ge-archive {
  position: relative;
  overflow: hidden;
  padding: 0 0 4rem;
}

.ge-container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* =========================================================
   Hero — مثل tg-hero برگه
   ========================================================= */
.ge-hero {
  position: relative;
  z-index: 1;
  padding: 5.75rem 0 2rem;
}

.ge-hero--has-bg {
  padding: 4.5rem 0 2.75rem;
}

.ge-hero--search {
  /* همان پدینگ پیش‌فرض */
}

.ge-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.ge-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.7);
}

.ge-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #050505 10%, rgba(5, 5, 5, 0.72) 55%, rgba(5, 5, 5, 0.9)),
    radial-gradient(70% 55% at 50% 0%, rgba(239, 35, 45, 0.16), transparent 70%);
}

.ge-hero__content {
  max-width: 46rem;
}

.ge-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  color: #ff6b73;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ge-hero__eyebrow svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.ge-hero__title {
  margin: 0.9rem 0 0;
  color: #fff;
  font-size: clamp(1.55rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.35;
}

.ge-hero__subtitle {
  margin: 0.85rem 0 0;
  max-width: 46rem;
  color: var(--ge-txt);
  font-size: clamp(0.875rem, 2vw, 1.05rem);
  line-height: 1.9;
}

.ge-hero__subtitle p {
  margin: 0;
}

.ge-hero__line {
  display: block;
  height: 1px;
  margin-top: 1.75rem;
  background: linear-gradient(
    to left,
    transparent,
    rgba(239, 35, 45, 0.45),
    rgba(255, 255, 255, 0.08),
    transparent
  );
}

.ge-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.ge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--ge-line);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  color: var(--ge-txt);
  font-size: 0.7rem;
  font-weight: 700;
}

.ge-chip svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--ge-red);
  flex-shrink: 0;
}

/* Breadcrumb */
.ge-crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ge-dim);
  font-size: 0.75rem;
}

.ge-crumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ge-crumb a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ge-crumb a:hover {
  color: var(--ge-red);
}

.ge-crumb i {
  font-style: normal;
  color: rgba(255, 255, 255, 0.22);
}

.ge-crumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

/* ---------- Search form (داخل هیرو / empty) ---------- */
.ge-hero .ge-search-form,
.ge-search-form {
  margin-top: 1.35rem;
  max-width: 36rem;
}

.ge-search-form__box {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.35rem 0.35rem 0.9rem;
  border: 1px solid var(--ge-line);
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ge-search-form__box:focus-within {
  border-color: rgba(239, 35, 45, 0.5);
  box-shadow: 0 0 0 4px rgba(239, 35, 45, 0.12);
}

.ge-search-form__icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  color: rgba(255, 255, 255, 0.35);
}

.ge-search-form__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.ge-search-form__input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.ge-search-form__btn {
  flex-shrink: 0;
  min-height: 2.45rem;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(180deg, var(--ge-red), var(--ge-red-dark));
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(239, 35, 45, 0.75);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.ge-search-form__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@media (max-width: 480px) {
  .ge-hero {
    padding: 4.75rem 0 1.5rem;
  }

  .ge-hero--has-bg {
    padding: 4rem 0 2rem;
  }

  .ge-search-form__btn {
    padding: 0 0.9rem;
    font-size: 0.78rem;
  }
}

/* ---------- سازگاری با markup قدیمی ge-archive-hero ---------- */
.ge-archive-hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  margin-bottom: 1.15rem;
  padding: 5.75rem 0 2rem;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.ge-archive-hero.glass,
.ge-archive-hero.rounded-4xl {
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.ge-archive-hero__glow {
  display: none;
}

.ge-archive-hero__inner {
  position: relative;
  z-index: 10;
  width: min(1120px, calc(100% - 2rem));
  max-width: 46rem;
  margin-inline: auto;
}

.ge-archive-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  margin-bottom: 0;
  color: #ff6b73;
  font-size: 0.72rem;
  font-weight: 800;
}

.ge-archive-hero__eyebrow svg {
  width: 1rem;
  height: 1rem;
}

.ge-archive-hero__title {
  margin: 0.9rem 0 0;
  color: #fff;
  font-size: clamp(1.55rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.35;
}

.ge-archive-hero__desc {
  margin: 0.85rem 0 0;
  max-width: 46rem;
  color: var(--ge-txt);
  font-size: clamp(0.875rem, 2vw, 1.05rem);
  line-height: 1.9;
}

.ge-archive-hero__desc p {
  margin: 0;
}

.ge-archive-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.ge-archive-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--ge-line);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  color: var(--ge-txt);
  font-size: 0.7rem;
  font-weight: 700;
}

/* =========================================================
   Toolbar
   ========================================================= */
.ge-archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 1.5rem 0 1.05rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ge-line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
}

.ge-archive-toolbar__count {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ge-txt);
  font-size: 0.82rem;
  font-weight: 800;
}

.ge-archive-toolbar__count svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--ge-red);
}

.ge-archive-toolbar__select {
  min-height: 2.35rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--ge-line);
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.ge-archive-toolbar__select:focus {
  border-color: rgba(239, 35, 45, 0.45);
}

/* =========================================================
   Grid
   ========================================================= */
.ge-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .ge-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ge-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================
   Card
   ========================================================= */
.ge-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ge-line);
  border-radius: 1.25rem;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px -30px rgba(0, 0, 0, 0.85);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ge-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 35, 45, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 50px -28px rgba(239, 35, 45, 0.35);
}

.ge-post-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.03);
}

.ge-post-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ge-post-card:hover .ge-post-card__img {
  transform: scale(1.06);
}

.ge-post-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.25);
  background:
    radial-gradient(circle at 30% 30%, rgba(239, 35, 45, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.03);
}

.ge-post-card__placeholder svg {
  width: 2.2rem;
  height: 2.2rem;
}

.ge-post-card__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 10, 14, 0.55), transparent 45%);
}

.ge-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.05rem 1.1rem 1.15rem;
}

.ge-post-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ge-post-card__cat {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(239, 35, 45, 0.22);
  border-radius: 9999px;
  background: rgba(239, 35, 45, 0.1);
  color: #ff8a90;
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s ease;
}

.ge-post-card__cat:hover {
  background: rgba(239, 35, 45, 0.18);
  color: #fff;
}

.ge-post-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.55;
}

.ge-post-card__title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ge-post-card__title a:hover {
  color: #ffb0b4;
}

.ge-post-card__excerpt {
  margin: 0;
  color: var(--ge-dim);
  font-size: 0.82rem;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ge-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ge-post-card__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ge-dim);
  font-size: 0.72rem;
  font-weight: 700;
}

.ge-post-card__item svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--ge-red);
}

.ge-post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-inline-start: auto;
  color: #ff8a90;
  font-size: 0.75rem;
  font-weight: 900;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.ge-post-card__more svg {
  width: 0.9rem;
  height: 0.9rem;
}

.ge-post-card__more:hover {
  gap: 0.5rem;
  color: #fff;
}

[dir="rtl"] .ge-post-card__more svg {
  transform: scaleX(-1);
}

/* =========================================================
   Empty
   ========================================================= */
.ge-archive-empty {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  padding: 3rem 1.25rem;
  border: 1px dashed var(--ge-line);
  border-radius: 1.25rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(239, 35, 45, 0.1), transparent 60%),
    rgba(255, 255, 255, 0.02);
}

.ge-archive-empty__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(239, 35, 45, 0.25);
  background: rgba(239, 35, 45, 0.1);
  color: #ff6b73;
}

.ge-archive-empty__icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.ge-archive-empty__title {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
}

.ge-archive-empty__text {
  margin: 0;
  max-width: 28rem;
  color: var(--ge-dim);
  font-size: 0.88rem;
  line-height: 1.85;
}

.ge-search-form--empty {
  width: min(100%, 28rem);
  margin-top: 1rem;
  max-width: none;
}

.ge-archive-empty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  margin-top: 1rem;
  padding: 0 1.4rem;
  border-radius: 9999px;
  background: linear-gradient(180deg, var(--ge-red), var(--ge-red-dark));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 32px -14px rgba(239, 35, 45, 0.75);
}

/* =========================================================
   Pagination — وسط‌چین
   ========================================================= */
.ge-archive-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 2rem;
  text-align: center;
}

/* nav / div wrapper وردپرس */
.ge-archive-pagination nav,
.ge-archive-pagination .navigation,
.ge-archive-pagination .pagination {
  display: flex;
  justify-content: center;
  width: 100%;
}


/* =========================================================
   Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .ge-post-card,
  .ge-post-card__img,
  .ge-search-form__btn {
    transition: none !important;
  }
}