/* ═══════════════════════════════════════════════════════════════════
   صفحهٔ پروژه‌ها و مناقصات ترکمنستان — پارس پگاه تجارت (طرح جدید)
   tenders.css · وابسته به main.css (توکن‌ها و کلاس‌های پایه)
   پیشوند: tn-
   ═══════════════════════════════════════════════════════════════════ */

/* ─── ۰) تنظیم منو برای برچسب بلند این صفحه ─────────────────────── */
@media (min-width: 861px) and (max-width: 1150px) {
  .nav__phone { display: none; }
  .nav__link { padding: 9px 10px; font-size: 0.87rem; white-space: nowrap; }
}

/* ─── ۱) هیرو ────────────────────────────────────────────────────── */
.tn-hero {
  position: relative;
  padding: calc(var(--nav-h, 72px) + clamp(48px, 8vw, 84px)) 0 clamp(40px, 6vw, 64px);
  overflow: hidden;
}
.tn-hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto;
  height: 130%;
  background:
    radial-gradient(46% 42% at 78% 22%, rgba(43, 224, 166, 0.09), transparent 68%),
    radial-gradient(36% 36% at 18% 78%, rgba(223, 181, 79, 0.06), transparent 66%);
  pointer-events: none;
}
.tn-hero .wrap { position: relative; }

.tn-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(12, 15, 13, 0.72);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.tn-hero__title {
  margin: 22px 0 0;
  max-width: 24ch;
}
.tn-hero__latin {
  display: block;
  margin-top: 14px;
  font-size: clamp(0.68rem, 1.5vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--muted-2);
}
.tn-hero__lead {
  margin-top: 20px;
  max-width: 64ch;
}

/* ردیف KPI ها */
.tn-kpis {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tn-kpi {
  position: relative;
  padding: 22px 20px 18px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--panel);
  overflow: hidden;
}
.tn-kpi::after {
  content: "";
  position: absolute;
  inset: auto 18px 0 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 224, 166, 0.5), transparent);
  opacity: 0.7;
}
.tn-kpi__num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 900;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1;
  background: var(--teal-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tn-kpi__num .plus {
  font-size: 0.62em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-inline-start: 2px;
}
.tn-kpi__label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ─── ۲) نوار ابزار فیلتر ────────────────────────────────────────── */
.tn-tools { padding: clamp(8px, 1.5vw, 18px) 0 8px; }
.tn-tools__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(12, 15, 13, 0.6);
  backdrop-filter: blur(10px);
}
.tn-tools__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline-end: 6px;
  color: var(--muted-2);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tn-chip {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.tn-chip:hover { color: var(--ink); border-color: rgba(43, 224, 166, 0.4); transform: translateY(-1px); }
.tn-chip:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.tn-chip[aria-pressed="true"] {
  color: #04140d;
  background: var(--teal-grad);
  border-color: transparent;
  box-shadow: 0 6px 22px -8px rgba(43, 224, 166, 0.55);
}
.tn-chip__n {
  font-size: 0.72rem;
  opacity: 0.78;
  font-weight: 500;
}
.tn-tools__status {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.8rem;
  white-space: nowrap;
}
.tn-tools__status b { color: var(--teal); font-weight: 700; }
.tn-tools__hint {
  margin-top: 14px;
  padding-inline: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted-2);
  font-size: 0.78rem;
}
.tn-tools__hint .latin { letter-spacing: 0.14em; }
.tn-tools__hint b { color: var(--muted); font-weight: 600; }

/* ─── ۳) فهرست اسناد — ردیف‌های سردبیری شماره‌گذاری‌شده ─────────── */
.tn-list { padding: clamp(20px, 3vw, 36px) 0 0; }

.tn-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 42px) clamp(10px, 1.6vw, 24px);
  border-bottom: 1px solid var(--hair-2);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), background-color 0.3s var(--ease);
}
.tn-row:first-of-type { border-top: 1px solid var(--hair-2); }
.tn-row.is-leaving { opacity: 0; transform: translateY(10px) scale(0.995); }
.tn-row.is-hidden { display: none; }
.tn-row:hover { background: rgba(43, 224, 166, 0.025); }

.tn-row__index {
  position: absolute;
  inset-block-start: clamp(6px, 1.4vw, 16px);
  inset-inline-end: clamp(0px, 0.8vw, 8px);
  font-family: var(--latin);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  line-height: 1;
  color: transparent;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.22;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.tn-row:hover .tn-row__index { opacity: 0.5; }

.tn-row__content { position: relative; z-index: 2; min-width: 0; }

.tn-row__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.tn-tag--report { background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(43, 224, 166, 0.32); }
.tn-tag--list   { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(223, 181, 79, 0.32); }
.tn-tag--invite { background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(43, 224, 166, 0.32); }
.tn-tag--meta {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--hair);
  font-weight: 500;
}

.tn-row__title {
  margin: 15px 0 0;
  font-size: clamp(1.08rem, 1.9vw, 1.4rem);
  line-height: 1.8;
  letter-spacing: -0.005em;
  max-width: 52ch;
  transition: color 0.3s var(--ease);
}
.tn-row:hover .tn-row__title { color: #d9fbe9; }

.tn-row__excerpt {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 2;
  max-width: 62ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tn-row__facts {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.tn-fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tn-fact svg { width: 14px; height: 14px; color: var(--teal); flex: none; }
.tn-fact .latin { letter-spacing: 0.06em; color: var(--muted); }
.tn-fact b { color: var(--muted); font-weight: 600; }

/* ─── ۴) دکمهٔ دانلود ────────────────────────────────────────────── */
.tn-dl {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 138px;
  padding: 18px 24px 15px;
  border: 1px solid rgba(43, 224, 166, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(43, 224, 166, 0.08), rgba(43, 224, 166, 0.015)),
    var(--panel-2);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tn-dl:hover,
.tn-dl:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(43, 224, 166, 0.55);
  box-shadow: 0 22px 50px -20px rgba(43, 224, 166, 0.35);
  outline: none;
}
.tn-dl:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.tn-dl__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(43, 224, 166, 0.25);
  background: rgba(43, 224, 166, 0.08);
  color: var(--teal);
  transition: transform 0.3s var(--ease-out);
}
.tn-dl__icon svg { width: 19px; height: 19px; }
.tn-dl:hover .tn-dl__icon { transform: translateY(2px); }
.tn-dl__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.tn-dl__label { font-weight: 800; font-size: 0.92rem; color: var(--ink); line-height: 1.5; }
.tn-dl__label .latin {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-top: 2px;
}
.tn-dl__size { color: var(--muted-2); font-size: 0.74rem; line-height: 1.5; }

/* حالت خالی (فیلتر بدون نتیجه) */
.tn-empty {
  display: none;
  padding: clamp(48px, 8vw, 90px) 20px;
  text-align: center;
  color: var(--muted-2);
}
.tn-empty.is-shown { display: block; }
.tn-empty .latin { display: block; margin-top: 10px; letter-spacing: 0.3em; font-size: 0.72rem; }

/* ─── ۵) پنل CTA ─────────────────────────────────────────────────── */
.tn-cta { padding: clamp(64px, 9vw, 120px) 0; }
.tn-cta__panel {
  position: relative;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 72px);
  border: 1px solid var(--hair);
  border-radius: calc(var(--radius) + 10px);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(43, 224, 166, 0.09), transparent 55%),
    radial-gradient(60% 90% at 88% 100%, rgba(223, 181, 79, 0.06), transparent 55%),
    var(--panel);
  overflow: hidden;
}
.tn-cta__panel::before {
  content: "";
  position: absolute;
  inset-inline: 18%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 224, 166, 0.55), transparent);
}
.tn-cta__title { max-width: 30ch; margin-inline: auto; }
.tn-cta__lead {
  margin: 18px auto 0;
  max-width: 56ch;
  color: var(--muted);
}
.tn-cta__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.tn-cta__meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  color: var(--muted-2);
  font-size: 0.82rem;
}
.tn-cta__meta span { display: inline-flex; align-items: center; gap: 8px; }
.tn-cta__meta svg { width: 14px; height: 14px; color: var(--teal); }

/* ─── ۶) فوتر این صفحه (استایل‌های تکمیلی صفحه) ──────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tn-footer .footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 32px;
}
.tn-footer .footer__brand { display: flex; align-items: center; gap: 14px; }
.tn-footer .footer__brand img { border-radius: 10px; }
.tn-footer .footer__name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--ink); line-height: 1.4; }
.tn-footer .footer__latin { display: block; font-size: 0.62rem; letter-spacing: 0.16em; color: var(--muted-2); }
.tn-footer .footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.tn-footer .footer__nav a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s var(--ease); }
.tn-footer .footer__nav a:hover { color: var(--teal); }
.tn-footer .footer__nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ─── ۷) ریسپانسیو ───────────────────────────────────────────────── */
@media (max-width: 980px) {
  .tn-row { grid-template-columns: minmax(0, 1fr); }
  .tn-dl {
    flex-direction: row;
    justify-content: flex-start;
    min-width: 0;
    padding: 13px 18px;
    text-align: start;
    gap: 14px;
  }
  .tn-dl__icon { width: 42px; height: 42px; flex: none; }
  .tn-dl__label .latin { display: inline; margin: 0 10px 0 0; }
  .tn-dl__body { align-items: flex-start; }
}
@media (max-width: 760px) {
  .tn-kpis { grid-template-columns: repeat(2, 1fr); }
  .tn-tools__bar { border-radius: 20px; }
  .tn-tools__status { margin-inline-start: 0; width: 100%; justify-content: center; }
  .tn-tools__hint { padding-inline: 6px; }
}
@media (max-width: 560px) {
  .tn-row { padding-inline: 4px; }
  .tn-row__index { font-size: 2.7rem; opacity: 0.16; }
  .tn-dl__size { display: none; }
  .tn-cta__actions .btn { width: 100%; }
}
