/* ============================================================
   VG — Başvuru geri sayımı (kart + detay) — izole, .uni-deadline scope'lu
   Mevcut kart/detay görünümünü bozmaz; yalnız kendi içini biçimler.
   ============================================================ */
.uni-deadline { display: block; }
.uni-deadline:not(.uni-deadline--ready) { display: none; } /* JS dolana kadar boş kutu gösterme */

/* --- ortak rozet --- */
.uni-deadline .dl-badge {
  display: inline-flex; align-items: center; gap: .35em;
  font-size: .72rem; font-weight: 800; letter-spacing: .02em;
  padding: .28em .7em; border-radius: 999px; text-transform: none;
  border: 1px solid transparent; white-space: nowrap;
}
.uni-deadline .dl-badge.dl-open { background: rgba(16,185,129,.12); color: #059669; border-color: rgba(16,185,129,.25); }
.uni-deadline .dl-badge.dl-soon { background: rgba(245,158,11,.13); color: #d97706; border-color: rgba(245,158,11,.28); }
.uni-deadline .dl-badge.dl-upcoming { background: rgba(13,110,253,.10); color: #0b5ed7; border-color: rgba(13,110,253,.22); }

/* --- KART (compact) --- */
.uni-deadline .dl-mini {
  margin-top: .9rem; padding: .8rem 1rem;
  background: linear-gradient(145deg, #f7fbff 0%, #eef5ff 100%);
  border: 1px solid rgba(13,110,253,.14); border-radius: 14px;
}
.uni-deadline .dl-mini-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .45rem; }
.uni-deadline .dl-term { font-size: .82rem; font-weight: 700; color: #1e293b; }
.uni-deadline .dl-dates { font-size: .82rem; color: #475569; font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.uni-deadline .dl-dates i { color: #0d6efd; }
.uni-deadline .dl-count { margin-top: .3rem; font-size: .82rem; font-weight: 800; }
.uni-deadline .dl-count.dl-open { color: #059669; }
.uni-deadline .dl-count.dl-soon { color: #d97706; }
.uni-deadline .dl-count.dl-upcoming { color: #0b5ed7; }

/* --- DETAY (rich liste) --- */
.uni-deadline .dl-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 1rem; }
.uni-deadline .dl-row {
  padding: 1.2rem 1.4rem;
  background: linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%);
  border: 2px solid rgba(13,110,253,.12); border-radius: 16px;
}
.uni-deadline .dl-row-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .6rem; }
.uni-deadline .dl-row-term { font-size: 1.05rem; font-weight: 800; color: #1e293b; letter-spacing: -.02em; }
.uni-deadline .dl-row-win { font-size: .92rem; color: #475569; font-weight: 600; display: flex; align-items: center; gap: .45rem; margin-bottom: .35rem; }
.uni-deadline .dl-row-win i { color: #0d6efd; }
.uni-deadline .dl-row-count { font-size: .95rem; font-weight: 800; }
.uni-deadline .dl-row-count.dl-open { color: #059669; }
.uni-deadline .dl-row-count.dl-soon { color: #d97706; }
.uni-deadline .dl-row-count.dl-upcoming { color: #0b5ed7; }

/* --- DETAY: esnek sıralama listesi --- */
.uni-rankings { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1rem; }
.uni-rankings .rk-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.3rem; background: linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%);
  border: 2px solid rgba(13,110,253,.12); border-radius: 14px;
}
.uni-rankings .rk-label { font-size: .92rem; font-weight: 700; color: #334155; }
.uni-rankings .rk-value { font-size: 1.5rem; font-weight: 900; color: #0d6efd; letter-spacing: -.03em; white-space: nowrap; }

/* --- DETAY: bölüm meta rozetleri (derece / dil / hazırlık) --- */
.dept-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.dept-meta .dm {
  font-size: .72rem; font-weight: 700; padding: .25em .65em; border-radius: 8px;
  background: rgba(100,116,139,.1); color: #475569; border: 1px solid rgba(100,116,139,.18);
}
.dept-meta .dm.dm-deg { background: rgba(13,110,253,.1); color: #0b5ed7; border-color: rgba(13,110,253,.2); }
.dept-meta .dm.dm-lang { background: rgba(139,92,246,.1); color: #7c3aed; border-color: rgba(139,92,246,.2); }
.dept-meta .dm.dm-prep { background: rgba(16,185,129,.1); color: #059669; border-color: rgba(16,185,129,.2); }

/* --- DETAY: bölüm filtresi (seviye + dil) --- */
.dept-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem;
  margin: 1rem 0 1.6rem; padding: 1rem 1.2rem;
  background: linear-gradient(145deg, #f7fbff 0%, #eef5ff 100%);
  border: 1px solid rgba(13,110,253,.12); border-radius: 14px;
}
.dept-filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.dept-filter-label { font-size: .82rem; font-weight: 800; color: #475569; margin-right: .15rem; text-transform: uppercase; letter-spacing: .03em; }
.dept-chip {
  font-size: .85rem; font-weight: 700; color: #334155;
  padding: .4em .95em; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1.5px solid rgba(13,110,253,.18);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.dept-chip:hover { border-color: #0d6efd; color: #0b5ed7; }
.dept-chip.active { background: linear-gradient(135deg, #0d6efd, #0b5ed7); color: #fff; border-color: #0b5ed7; }
.dept-result-info { font-size: .82rem; font-weight: 700; color: #64748b; margin-left: auto; }
.dept-empty { text-align: center; color: #64748b; font-weight: 600; padding: 2rem 1rem; }

/* --- LİSTE: Devlet/Özel tür rozeti --- */
.badge.uni-type-badge { font-size: .72rem !important; padding: .35em .7em !important; text-transform: none !important; letter-spacing: 0 !important; border-radius: 8px !important; box-shadow: none !important; border: none !important; }
.badge.uni-type-state { background: linear-gradient(135deg, #0d6efd, #0b5ed7) !important; color: #fff !important; }
.badge.uni-type-private { background: linear-gradient(135deg, #7c3aed, #6d28d9) !important; color: #fff !important; }

/* --- DETAY: Akreditasyonlar --- */
.uni-accred { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.uni-accred .accred-badge {
  display: inline-flex; align-items: center; font-size: .9rem; font-weight: 700; color: #0f766e;
  padding: .5em 1em; border-radius: 999px;
  background: linear-gradient(145deg, #f0fdfa 0%, #e6fbf6 100%); border: 1.5px solid rgba(13,148,136,.25);
}
.uni-accred .accred-badge i { color: #14b8a6; }
/* kart: sıralama yerine akreditasyon (daha küçük punto) */
.stat-value.stat-accred { font-size: 0.92rem !important; font-weight: 800; line-height: 1.25; color: #0f766e !important; }

/* --- DETAY: SSS (FAQ) --- */
.uni-faq { display: flex; flex-direction: column; gap: .7rem; margin-top: 1rem; }
.uni-faq .faq-item {
  border: 1.5px solid rgba(13,110,253,.14); border-radius: 12px;
  background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%); overflow: hidden;
}
.uni-faq .faq-q {
  cursor: pointer; list-style: none; padding: 1rem 1.2rem;
  font-weight: 700; color: #1e293b; font-size: 1rem; position: relative; padding-right: 2.4rem;
}
.uni-faq .faq-q::-webkit-details-marker { display: none; }
.uni-faq .faq-q::after { content: '+'; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; font-weight: 700; color: #0d6efd; }
.uni-faq .faq-item[open] .faq-q::after { content: '–'; }
.uni-faq .faq-a { padding: 0 1.2rem 1.1rem; color: #475569; line-height: 1.6; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  .uni-deadline * { transition: none !important; animation: none !important; }
  .dept-chip, .department-card { transition: none !important; }
}
