/* ============================================================ */
/* TOF Akordiyon v4 - Performans ve Premium Kullanıcı Arayüzü Yükseltmesi */
/* TEMİZ SÜRÜM - ESKİ KOD KALDIRILDI */
/* ============================================================ */

/* Temel Sıfırlamalar ve Yazı Tipleri */
.tof-competition-widget {
  font-family: 'Barlow Condensed', sans-serif;
}

/* Akordiyon Konteyneri - KESİNTİSİZ LİSTE */
.tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 12px;
  overflow: visible;
}

.tab.v4-accordion {
  background: transparent;
  width: 100%;
  border: 1px solid #eef0f2;
  margin-top: -1px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* AÇIK DURUM GÖRÜNTÜSÜ */
.tab.v4-accordion.is-open {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 10;
  border-color: #ff7c0a;
  margin: 10px 0;
  border-radius: 12px;
}

/* Akordion Başlığı */
.tab-button {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: #2c3e50;
  color: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1.5em;
  font-weight: 500;
  letter-spacing: 0.8px;
  position: relative;
  transition: all 0.3s ease;
  outline: none;
}

.tab-button[aria-expanded="true"] {
  background: #1a252f;
}

.tab-label-text {
  flex-grow: 1;
}

.tab-button:hover {
  background: #1a252f;
}

/* TOPLAM SAYI PİLS - SAĞA HİZALANMIŞ */
.tab-count-pill {
  font-size: 0.95em;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 16px;
  border-radius: 8px;
  margin-right: 15px;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

/* OK İkonu */
.tab-button::after {
  content: "\276F";
  font-size: 0.8em;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-button[aria-expanded="true"]::after {
  transform: rotate(90deg);
}

/* ============================================================ */
/* HİBRİT KONTROL ÇUBUĞU & OKUNABİLİRLİK DÜZELTMELERİ                        */
/* ============================================================ */

.tof-control-wrapper {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  /* Masaüstünde anında sarmalamayı önler */
  gap: 20px;
}

@media (max-width: 768px) {
  .tof-control-wrapper {
    flex-wrap: wrap;
  }
}

.tof-status-filter {
  display: inline-flex;
  background: #f1f3f5;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tof-status-filter::-webkit-scrollbar {
  display: none;
}

.tof-view-actions {
  display: flex;
  gap: 10px;
}

.tof-action-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tof-action-btn .icon {
  font-size: 18px;
  color: #ff7c0a;
}

.tof-action-btn:hover {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* ARAMA GİRİŞİ OKUNABİLİRLİK DÜZELTMELERİ */
.tof-global-search,
.tabSearch {
  width: 100%;
  padding: 14px 20px;
  font-size: 18px !important;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 500;
  background: #fdfdfd;
}

/* Placeholder görünürlüğü */
.tof-global-search::placeholder,
.tabSearch::placeholder {
  font-size: 18px !important;
  color: #94a3b8 !important;
  opacity: 1 !important;
}

.tof-filter-pill {
  border: none;
  background: transparent;
  color: #555;
  padding: 8px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.tof-filter-pill.active {
  background: #ff7c0a;
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 124, 10, 0.25);
}

/* PERFORMANS GECİKME GİDERME: CSS TABANLI DURUM FİLTRESİ */
.tof-competition-widget[data-active-status="kesin-kayit"] tr[data-status]:not([data-status="kesin-kayit"]) {
  display: none !important;
}

.tof-competition-widget[data-active-status="on-kayit"] tr[data-status]:not([data-status="on-kayit"]) {
  display: none !important;
}

/* GRID ANIMASYONU */
.tab-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  border-left: 5px solid #ff7c0a;
}

.tab-button[aria-expanded="true"]+.tab-content-wrapper {
  grid-template-rows: 1fr;
}

.tab-content-inner {
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

.tab-content-overflow {
  padding: 25px;
  font-size: 1em;
  color: #1e293b;
}

/* Kontrol Merkezi Konteyneri */
.tof-search-container {
  background: #ffffff;
  padding: 2em;
  border-radius: 12px;
  box-shadow: none;
  margin-bottom: 12px;
  border: 1px solid #eef0f2;
}

/* Sporcu Vurgulama */
tr.row-olimpik td {
  background-color: #fff3e0 !important;
}

tr.row-para td {
  background-color: #f3e5f5 !important;
}

tr.row-tohm td {
  background-color: #e8f5e9 !important;
}

tr.row-sem td {
  background-color: #e3f2fd !important;
}

/* Tablo Stil */
table.responsive.yarismaci {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

table.responsive.yarismaci thead th {
  background: #f8fafc;
  color: #475569;
  padding: 16px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
  font-weight: 700;
}

table.responsive.yarismaci tbody td {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
}

/* Popup Temizleme */
.single-yarisma .td-more-articles-box {
  display: none !important;
}

h2 {
  font-family: "Barlow Condensed", sans-serif;
}