/* -------------------------------------------------------
   TOF Directory (Coach / Referee / Club)
   - Kurumsal kart görünümü
   - Filtreler: flash yok + doğru kolon dağılımı (boşluk/üst üste binme yok)
   - Foto/Logo: data-type bazlı
   - Load more bar
   - Loader overlay
-------------------------------------------------------- */

.tof-directory {
  --tof-accent: #f58220;
  --tof-bar: #5f6a73;
  --tof-border: rgba(0, 0, 0, .10);
  --tof-soft: rgba(0, 0, 0, .06);
  --tof-text: #222;
  position: relative;
  overflow: visible;
}

/* -------------------------------------------------------
   Filters
-------------------------------------------------------- */
.tof-directory__filters {
  position: relative;
  border: 1px solid var(--tof-border);
  border-top: 10px solid var(--tof-bar);
  background: #fff;
  padding: 16px;
  margin-bottom: 16px;

  display: grid;
  gap: 12px;
  align-items: center;

  /* Default: 3 alan (Ara + Bölge + Kademe/Statü) */
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) minmax(220px, 320px);
}

.tof-directory__filters::before {
  content: "FİLTRELER";
  position: absolute;
  top: -10px;
  left: 14px;
  transform: translateY(-50%);
  background: var(--tof-bar);
  color: #fff;
  padding: 8px 14px;
  font-weight: 500;
  font-family: 'Barlow Condensed';
  letter-spacing: .5px;
  font-size: 14px;
}

.tof-directory__filters input,
.tof-directory__filters select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--tof-border);
  background: #fff;
  color: var(--tof-text);
  border-radius: 4px;
  /* Daha modern hafif yuvarlak kafa */
  outline: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.tof-directory__filters input:focus,
.tof-directory__filters select:focus {
  border-color: rgba(245, 130, 32, .6);
  box-shadow: 0 0 0 2px rgba(245, 130, 32, .14);
}

.tof-directory__print-btn {
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border: 1px solid var(--tof-border) !important;
  border-radius: 4px;
  background: #fff !important;
  color: var(--tof-bar) !important;
  font-size: 20px !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  cursor: pointer;
  box-sizing: border-box;
  transition: color .2s, border-color .2s, box-shadow .2s, background .2s;
}

.tof-directory__print-btn:hover,
.tof-directory__print-btn:focus {
  background: #fff !important;
  color: var(--tof-accent) !important;
  border-color: rgba(245, 130, 32, .6) !important;
  box-shadow: 0 0 0 2px rgba(245, 130, 32, .14);
}

/* -------------------------------------------------------
   Arama Kutusu Düzeni (Input Group Formunda)
-------------------------------------------------------- */
.tof-directory__search-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.tof-directory__search-wrap .tof-directory__q {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.tof-directory__search-btn {
  background: #f8f9fa;
  border: 1px solid var(--tof-border);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  padding: 0 16px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tof-directory__search-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

/* Flash yok: default gizle */
.tof-directory__kademe,
.tof-directory__gorev,
.tof-directory__statu {
  display: none;
}

/* Type'a göre göster */
.tof-directory[data-type="coach"] .tof-directory__gorev,
.tof-directory[data-type="coach"] .tof-directory__kademe {
  display: block;
}

.tof-directory[data-type="referee"] .tof-directory__statu {
  display: block;
}

.tof-directory[data-type="athlete"] .tof-directory__statu {
  display: block;
}

/* Club: 2 alan (Ara + Bölge) */
.tof-directory[data-type="club"] .tof-directory__filters {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px);
}

.tof-directory[data-type="tsp"] .tof-directory__filters {
  grid-template-columns: minmax(260px, 1fr);
}

/* Coach: Ara + Bölge + Görev + Kademe */
.tof-directory[data-type="coach"] .tof-directory__filters {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px) minmax(180px, 260px) minmax(160px, 220px);
}

/* Responsive */
@media (max-width: 1100px) {
  .tof-directory__filters {
    grid-template-columns: 1fr 1fr;
  }

  .tof-directory[data-type="club"] .tof-directory__filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .tof-directory__filters {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------
   Grid + Card
-------------------------------------------------------- */
.tof-directory__grid {
  display: grid;
  gap: 14px;
  overflow: visible;
}

/* Default: 4 kolon */
.tof-directory:not([data-type="athlete"]) .tof-directory__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Athlete: 6 kolon (portrait kart için) */
.tof-directory[data-type="athlete"] .tof-directory__grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1400px) {
  .tof-directory[data-type="athlete"] .tof-directory__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .tof-directory[data-type="athlete"] .tof-directory__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tof-directory[data-type="athlete"] .tof-directory__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .tof-directory[data-type="athlete"] .tof-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .tof-directory[data-type="athlete"] .tof-directory__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .tof-directory:not([data-type="athlete"]) .tof-directory__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .tof-directory:not([data-type="athlete"]) .tof-directory__grid {
    grid-template-columns: 1fr;
  }
}

.tof-dir__card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--tof-border);
  border-radius: 4px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.tof-dir__card:hover {
  border-color: rgba(245, 130, 32, .5);
  box-shadow: 0 2px 10px rgba(245, 130, 32, .15);
}

.tof-dir__avatar {
  flex: 0 0 auto;
}

.tof-dir__meta {
  min-width: 0;
}

.tof-dir__title {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 16px;
  font-family: 'Barlow Condensed';
  line-height: 1.15;
  color: var(--tof-text);
}

.tof-dir__subtitle {
  opacity: .8;
  font-size: 13px;
  margin-top: 4px;

}

/* Badges */
.tof-dir__badges {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tof-dir__badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 2px;
  background: #f2f2f2;
  border-left: 4px solid var(--tof-accent);
  color: rgba(0, 0, 0, .82);
  line-height: 1.2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------------------------------------------------------
   Avatar / Logo
-------------------------------------------------------- */
.tof-dir__avatar img {
  width: 56px;
  height: 56px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid var(--tof-soft);
  background: #fff;
  display: block;
}

/* Athlete: dikdörtgen, sadece sol radius */
.tof-directory[data-type="coach"] .tof-dir__avatar img,
.tof-directory[data-type="referee"] .tof-dir__avatar img {
  height: 100px;
  width: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 12px 0 0 12px;
}

/* Fallback: aspect-ratio yoksa */
@supports not (aspect-ratio: 1 / 1) {

  .tof-directory[data-type="coach"] .tof-dir__avatar img,
  .tof-directory[data-type="referee"] .tof-dir__avatar img {
    width: 80px;
  }
}

/* Club: kare logo */
.tof-directory[data-type="club"] .tof-dir__avatar img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px 0 0 12px;
  background: #fff;
  padding: 6px;
}

/* Responsive grid + avatar */
@media (max-width: 700px) {

  .tof-directory[data-type="coach"] .tof-dir__avatar img,
  .tof-directory[data-type="referee"] .tof-dir__avatar img {
    height: 120px;
  }

  @supports not (aspect-ratio: 1 / 1) {

    .tof-directory[data-type="coach"] .tof-dir__avatar img,
    .tof-directory[data-type="referee"] .tof-dir__avatar img {
      width: 96px;
    }
  }

  .tof-directory[data-type="club"] .tof-dir__avatar img {
    width: 84px;
    height: 84px;
  }
}

/* -------------------------------------------------------
   Load more
-------------------------------------------------------- */
.tof-directory__more {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: var(--tof-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 14px 0 0;
  gap: 12px;
}

.tof-directory__more::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}

.tof-directory__more:hover {
  filter: brightness(0.95);
}

.tof-directory__more:disabled {
  opacity: .7;
  cursor: not-allowed;
  filter: none;
}

/* -------------------------------------------------------
   Loader overlay (JS setLoading ile aç/kapat)
-------------------------------------------------------- */
.tof-dir-loading {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.tof-dir-loading.is-on {
  display: flex;
}

.tof-dir-loading span {
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  margin-top: 6px;
}

.tof-dir-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--tof-border);
  color: red;
}

.tof-dir-empty__title {
  font-weight: 500;
  font-size: 26px;
  margin-bottom: 6px;
  font-family: 'Barlow Condensed';
}

.tof-dir-empty__text {
  opacity: .75;
}

/* -------------------------------------------------------
   Athlete - Badge Stilleri (İkonlu)
-------------------------------------------------------- */
.tof-dir__badge img {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

/* -------------------------------------------------------
   Athlete - Madalya Göstergesi
-------------------------------------------------------- */
.tof-dir__medals {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  /* Kart yüksekliğini kısmak için 8px'ten 4px'e düşürüldü */
  flex-wrap: nowrap;
  /* Madalyalar tek satır olacak */
  align-items: center;
  justify-content: center;
}

.tof-dir__medals .medal-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.tof-dir__medals .medal-gold {
  background: #fef9c3;
  color: #854d0e;
}

.tof-dir__medals .medal-silver {
  background: #f1f5f9;
  color: #475569;
}

.tof-dir__medals .medal-bronze {
  background: #fef3c7;
  color: #92400e;
}

/* -------------------------------------------------------
   Tooltip Stilleri (Ortak / Genel Kullanım)
-------------------------------------------------------- */
.tof-tooltip {
  position: relative;
  cursor: pointer;
  display: inline-flex;
}

.tof-directory[data-type="record"] .tof-record-athletes {
    font-weight: 400;
    color: #1f2937 !important;
    line-height: 1.45;
    text-transform: uppercase;
    font-size: 16px;
}

.tof-directory[data-type="record"] .tof-record-muted {
    margin-top: 4px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.35;
}

.tof-directory[data-type="record"] .tof-record-competition {
    font-weight: 500;
    color: #1f2937;
}

.tof-directory[data-type="record"] .tof-record-table {
    border-collapse: collapse;
}

.tof-directory[data-type="record"] .tof-record-section-row td {
    padding: 10px 16px;
    background: #e9ecef;
    color: #2f3f4d;
    border-bottom: 0;
    font-family: 'Barlow Condensed', system-ui, sans-serif;
    font-size: 26px !important;
    font-weight: 300 !important;
    text-transform: uppercase;
}

.tof-directory[data-type="record"] .tof-record-section-title {
    font-weight: 300;
}

.tof-directory[data-type="record"] .tof-record-section-row span {
    color: #8b949e;
    font-weight: 500;
}

.tof-directory[data-type="record"] .tof-record-section-row .tof-record-section-title {
    color: #2f3f4d;
    font-weight: 300;
}

.tof-directory[data-type="record"] .tof-record-row td {
    vertical-align: middle;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.tof-directory[data-type="record"] .tof-record-row.is-open {
    background: #fff7ed;
    box-shadow: inset 4px 0 0 var(--tof-accent);
}

.tof-directory[data-type="record"] .tof-record-score-head {
    text-align: right;
}

.tof-directory[data-type="record"] .tof-record-name {
    color: #1f2937;
    font-weight: 700;
    text-transform: uppercase;
}

.tof-directory[data-type="record"] .tof-record-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tof-directory[data-type="record"] .tof-record-description {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.35;
}

.tof-directory[data-type="record"] a,
.tof-directory[data-type="record"] .tof-record-row a {
    color: #1f2937 !important;
    text-decoration: none;
}

.tof-directory[data-type="record"] a:hover,
.tof-directory[data-type="record"] a:focus,
.tof-directory[data-type="record"] .tof-record-row a:hover,
.tof-directory[data-type="record"] .tof-record-row a:focus {
    color: #2f3f4d !important;
    text-decoration: none;
}

.tof-directory[data-type="record"] .tof-record-athlete-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tof-directory[data-type="record"] .tof-record-athlete-cell--compact {
    gap: 8px;
}

.tof-directory[data-type="record"] .tof-record-photo {
    display: inline-flex;
    width: 85px;
    min-width: 85px;
    aspect-ratio: 4 / 5;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f4f6;
}

.tof-directory[data-type="record"] .tof-record-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.tof-directory[data-type="record"] .tof-record-team-photos {
    display: grid;
    grid-template-columns: repeat(3, 34px);
    gap: 4px;
    flex: 0 0 auto;
}

.tof-directory[data-type="record"] .tof-record-team-photos img {
    width: 34px;
    height: 44px;
    object-fit: cover;
    object-position: center top;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    background: #f3f4f6;
}

.tof-directory[data-type="record"] .tof-record-score {
    color: #2f3f4d !important;
    font-size: 48px !important;
    font-weight: 200;
    white-space: nowrap;
    text-align: right;
    font-family: 'Barlow';
}

.tof-directory[data-type="record"] .tof-record-score small {
    margin-left: 4px;
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
}

.tof-directory[data-type="record"] .tof-record-event-badge {
    display: inline-flex;
    margin-top: 0;
    font-size: 11px;
}

.tof-directory[data-type="record"] .tof-record-detail-toggle {
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--tof-bar);
    cursor: pointer;
    font-size: 18px;
}

.tof-directory[data-type="record"] .tof-record-detail-toggle:hover,
.tof-directory[data-type="record"] .tof-record-detail-toggle:focus {
    color: var(--tof-accent);
    border-color: rgba(245, 130, 32, .45);
    box-shadow: 0 0 0 2px rgba(245, 130, 32, .12);
}

.tof-directory[data-type="record"] .tof-record-detail-cell {
    padding: 18px 28px 26px !important;
    background: #f8fafc !important;
    border-bottom: 12px solid #f3f4f6;
}

.tof-record-history {
    max-width: 100%;
}

.tof-record-history__title {
    margin-bottom: 14px;
    color: #2f3f4d;
    font-size: 20px;
    font-weight: 400;
    text-align: left;
    text-transform: uppercase;
    font-family: 'Barlow Condensed';
}

.tof-record-history__row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.5fr) 90px;
    gap: 18px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    opacity: .60;
}

.tof-record-history__row.is-current {
    opacity: 1;
}

.tof-record-history__score {
    color: #6b7280;
    font-size: 30px;
    font-weight: 300;
    text-align: right;
    font-family: 'Barlow';
}

.tof-record-history-empty {
    color: #6b7280;
    font-weight: 600;
}

@media (max-width: 900px) {
    .tof-directory[data-type="record"] .tof-achievement-table-scroll {
        overflow-x: auto !important;
    }

    .tof-directory[data-type="record"] .tof-record-table {
        min-width: 900px;
    }
}

@media (max-width: 700px) {
    .tof-directory[data-type="record"] .tof-record-detail-cell {
        padding: 14px 12px 18px !important;
    }

    .tof-record-history__row {
        grid-template-columns: 1fr 76px;
        gap: 8px 12px;
    }

    .tof-record-history__row > div:nth-child(2) {
        grid-column: 1 / -1;
        order: 3;
    }

    .tof-record-history__score {
        align-self: center;
    }
}

.tof-tooltip:hover {
  z-index: 2147483000 !important;
}

.tof-tooltiptext {
  visibility: hidden;
  position: absolute;
  width: max-content;
  max-width: 260px;
  background-color: #1f2937;
  color: #f9fafb;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 2147483000;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  white-space: normal;
}

/* Küçük Ok (Arrow) */
.tof-tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #1f2937 transparent transparent transparent;
}

.tof-tooltip:hover .tof-tooltiptext {
  visibility: visible;
  opacity: 1;
  z-index: 2147483000 !important;
  transform: translateX(-50%) translateY(0);
}

.tof-dir__card:has(.tof-tooltip:hover) {
  z-index: 2147482000;
}

/* Tooltip Right Align (Taşmayı önlemek için) */
.tof-tooltip--right-align .tof-tooltiptext {
  left: auto;
  right: 0;
  transform: translateY(5px);
}

.tof-tooltip--right-align:hover .tof-tooltiptext {
  transform: translateY(0);
}

.tof-tooltip--right-align .tof-tooltiptext::after {
  left: auto;
  right: 10px;
  margin-left: 0;
}

/* Madalya Özel Tooltip Kalıtımları */
.tof-dir__medals .tof-tooltiptext {
  width: 180px;
  max-width: 180px;
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
}

.tof-dir__medals .tof-tooltip:hover .tof-tooltiptext {
  transform: translateX(-50%) translateY(0);
}

.tof-dir__medals .tof-tooltiptext::after {
  left: 50%;
  margin-left: -6px;
}

.tof-dir__medals .tof-tooltiptext strong {
  display: block;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #374151;
}

/* -------------------------------------------------------
   ATHLETE: Portrait Kart Tasarımı (Yeni - 1:1 Kare + Grid)
-------------------------------------------------------- */
.tof-directory[data-type="athlete"] .tof-dir__card--athlete {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  overflow: visible;
  background: #f9fafb;
  /* Default arka plan rengi */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  min-height: 330px;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

/* Zebra Renklendirme (Tek numaralı kartlar beyaz, çift numaralı kartlar gri) */
.tof-directory[data-type="athlete"] .tof-dir__card--athlete:nth-child(odd) {
  background: #ffffff;
}

.tof-directory[data-type="athlete"] .tof-dir__card--athlete:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Foto - 4:5 oranı + object-fit contain/cover */
.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__avatar {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  margin-bottom: 8px;
  /* Önceden 10px */
  padding: 16px;
  box-sizing: border-box;
  position: relative;
}

.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__photo-frame {
  width: 100%;
  height: 100%;
  position: relative;
}

.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Olimpik/Paralimpik sporcu rozeti - profil ve liste ortak bileşeni */
.tof-tooltip.tof-athlete-olympian-badge-wrap,
.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__olympian-badge-wrap {
  position: absolute !important;
  bottom: -16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 52px !important;
  height: 52px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 0 !important;
  z-index: 20 !important;
}

.tof-tooltip.tof-athlete-olympian-badge-wrap .tof-athlete-olympian-badge,
.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__olympian-badge-wrap .tof-dir__olympian-badge {
  width: 100% !important;
  height: 100% !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) !important;
  object-fit: contain !important;
  background: #fff !important;
  padding: 2px !important;
  position: static !important;
  display: block !important;
}

.tof-tooltip.tof-athlete-olympian-badge-wrap .tof-tooltiptext,
.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__olympian-badge-wrap .tof-tooltiptext {
  bottom: calc(100% + 4px) !important;
}

/* İkonların Avatardan hemen sonraki hali */
.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__icon-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 6px;
  margin: -16px auto 10px;
  /* Avatar'ın üstüne biraz daha fazla binip arayı daraltsın */
  /* Avatar'ın üstüne binmesi ve tam ortalanması için */
  position: relative;
  z-index: 10;
}

.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__icon-row:has(.tof-tooltip:hover) {
  z-index: 2147482500;
}

/* İkonlar (yay türü/cinsiyet) - ORTAK BİLEŞEN */
.tof-dir__badges--icons {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 6px;
  padding: 0;
  min-height: 32px;
}

.tof-dir__badges--icons .tof-dir__badge {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-left: none !important;
  min-height: 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

.tof-dir__badges--icons .tof-dir__badge i,
.tof-dir__badges--icons .tof-dir__badge svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  color: #fff !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  transform: none !important; /* FA iç transformlarını sıfırla */
  text-align: center !important;
}

.tof-dir__badges--icons .tof-dir__badge picture {
  display: contents;
}

.tof-dir__badges--icons .tof-dir__badge-text {
  color: inherit;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

/* Sadece SVG dosyası olan ikonlar tüm badge (32px) alanını doldursun */
.tof-dir__badges--icons .tof-dir__badge img[src$=".svg"] {
  width: 32px;
  height: 32px;
  min-width: 32px;
}

/* Rozetler - foto altında, ortada (Madalyalar vb) */
.tof-dir__badges--inline {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  min-height: 28px;
}

.tof-dir__badges--inline .tof-dir__badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tof-dir__badges--inline .tof-dir__badge img {
  width: 12px;
  height: 12px;
}

.tof-dir__badge.yay-klasik img,
.tof-dir__badge.yay-barebow img,
.tof-dir__badge.yay-w1 img{
    width: 10px;
    height: auto;
    margin-right: -3px !important;
}

.tof-dir__badge.yay-makarali img {
    width: 20px;
    height: auto;
}

/* İsim */
.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__name {
  font-weight: 500;
  font-size: 15px;
  /* Okunabilirliği 1 tık artırmak için */
  text-align: center;
  padding: 0 0 12px;
  color: #111827;
  font-family: system-ui, -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  word-wrap: break-word;
  display: block;
  width: 100%;
  margin: 0 auto;
}

.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__name strong {
  font-weight: 900;
}

/* Ayıraç Çizgisi */
.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__divider {
  width: 100%;
  height: 1px;
  background: #e5e7eb;
  margin: 8px 0;
  /* Kartı küçültmek için boşluğu daralttık */
}

/* İkon renkleri - ORTAK BİLEŞEN */
.tof-dir__badge.yay-klasik,
.tof-dir__badge.recurve {
  background: #0ea5e9;
}

.tof-dir__badge.yay-makarali,
.tof-dir__badge.compound {
  background: #ef4444;
}

.tof-dir__badge.yay-barebow {
  background: #10b981;
}

.tof-dir__badge.yay-w1 {
  background: #c43fec;
}

.tof-dir__badge.cinsiyet-kadin,
.tof-dir__badge.female {
  background: #ec4899;
}

.tof-dir__badge.cinsiyet-erkek,
.tof-dir__badge.male,
.tof-dir__badge.ge_male {
  background: #3b82f6;
}

.tof-dir__badge.badge-milli,
.tof-dir__badge.millisporcu {
  background: #dc2626;
}

.tof-directory[data-type="coach"] .tof-dir__badge.badge-milli-coach,
.tof-directory[data-type="coach"] .tof-dir__badge.badge-tohm,
.tof-directory[data-type="coach"] .tof-dir__badge.badge-sem {
  border-left-color: var(--tof-accent);
  font-weight: 600;
  gap: 6px;
}

.tof-directory[data-type="coach"] .tof-dir__badge.badge-milli-coach {
  background: #fff;
  border: 1px solid rgba(225, 29, 46, .35);
  border-left: 4px solid #e11d2e;
  color: #b91c1c;
}

.tof-directory[data-type="coach"] .tof-dir__badge.badge-milli-coach img {
  width: 22px;
  height: 14px;
  min-width: 22px;
  margin-right: 0;
  border-radius: 2px;
  object-fit: cover;
}

.tof-dir__badge.badge-tohm {
  background: #166534;
  color: #fff;
}

.tof-dir__badge.badge-sem {
  background: #eab308;
  color: #fff;
}

.tof-dir__badge.badge-sem .tof-dir__badge-text {
  font-size: 12px;
  font-weight: 700;
}

.tof-dir__badge.badge-paralimpik {
  background: #6366f1;
}

.tof-dir__badge.badge-engelli {
  background: #64748b;
}

.tof-dir__badge.badge-olimpik-havuz {
  background: #ec4899;
}

.tof-dir__badge.badge-paralimpik-havuz {
  background: #4f46e5;
}

/* Alt bilgi bloğu (Zebra Kart Tasarımı, Etiket ve Veri yan yana) */
.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__info {
  padding: 0;
  background: transparent;
  border-top: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #4b5563;
  padding: 0;
  line-height: 1.4;
}

.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__info-label {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #1f2937;
  gap: 6px;
}

.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__info-label i {
  color: #1f2937;
  width: 14px;
  text-align: center;
  font-size: 14px;
}

.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__info-value {
  color: #4b5563;
  padding-left: 20px;
}

/* Madalya Görselleri (SVG) */
.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__medals {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 12px 0 0;
  background: transparent;
  border-top: none;
  margin-top: auto;
  position: relative;
  /* tooltip için */
}

.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__medals-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__medal-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Grid - eşit yükseklik (redundant blocks clean up) */
.tof-directory[data-type="athlete"] .tof-directory__grid {
  display: grid;
  grid-auto-rows: 1fr;
  overflow: visible;
}

/* -------------------------------------------------------
   Pasif Sporcu Kartı (Vizesiz / Lisanssız)
   Kart görünümü soluklaştırılır; etiket sağ üste sabitlenir
-------------------------------------------------------- */

/* Pasif kart genel görünüm: %65 opaklık + soluk border */
.tof-dir__card--pasif {
  opacity: 0.65;
  border-color: #d1d5db !important;
  box-shadow: none !important;
}

.tof-dir__card--pasif:hover {
  opacity: 0.85;
  border-color: #9ca3af !important;
  transform: none !important;
}

/* Kart pozisyonlama: etiketi doğru konumlandırmak için */
.tof-dir__card--athlete {
  position: relative;
}

/* Pasif uyarı etiketi: sağ üst köşeye sabitlenir */
.tof-dir__pasif-etiket {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.4;
  pointer-events: none; /* hover etkileşimini karta bırak */
}

/* Vizesiz etiketi: kırmızı */
.tof-dir__pasif-etiket--vizesiz {
  background: #dc2626;
  color: #fff;
}

/* Lisanssız etiketi: turuncu */
.tof-dir__pasif-etiket--lisanssiz {
  background: #d97706;
  color: #fff;
}

/* -------------------------------------------------------
   Pasif Sporcu Profil Uyarı Banner'ı
   athlete-template.php içinde kullanılır
-------------------------------------------------------- */
.tof-profile__pasif-uyari {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

/* Vizesiz uyarı: kırmızı ton */
.tof-profile__pasif-uyari--vizesiz {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Lisanssız uyarı: turuncu ton */
.tof-profile__pasif-uyari--lisanssiz {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.tof-profile__pasif-uyari .uyari-ikon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.tof-profile__pasif-uyari .uyari-metin strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

/* PDF çıktısında pasif uyarı (print) */
@media print {
  .tof-profile__pasif-uyari {
    border-width: 2px;
    font-size: 12px;
  }
  .tof-dir__pasif-etiket {
    display: none; /* Listede kart çıktısı almıyoruz, profil PDF'inde banner var */
  }
}

/* -------------------------------------------------------
   ACHIEVEMENT: Başarı Kartları
-------------------------------------------------------- */
.tof-dir__card--achievement {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-top: 4px solid #1f2937;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.tof-dir__ach-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 12px;
}

.tof-dir__ach-medal {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto;
}

.tof-dir__ach-medal--gold {
  background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(218, 165, 32, 0.3);
}

.tof-dir__ach-medal--silver {
  background: linear-gradient(135deg, #E0E0E0 0%, #9E9E9E 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(158, 158, 158, 0.3);
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.tof-dir__ach-medal--bronze {
  color: #1f2937;
  width: 14px;
  text-align: center;
  font-size: 14px;
}

.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__info-value {
  color: #4b5563;
  padding-left: 20px;
}

/* Madalya Görselleri (SVG) */
.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__medals {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 12px 0 0;
  background: transparent;
  border-top: none;
  margin-top: auto;
  position: relative;
  /* tooltip için */
}

.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__medals-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.tof-directory[data-type="athlete"] .tof-dir__card--athlete .tof-dir__medal-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Grid - eşit yükseklik (redundant blocks clean up) */
.tof-directory[data-type="athlete"] .tof-directory__grid {
  display: grid;
  grid-auto-rows: 1fr;
  overflow: visible;
}

/* -------------------------------------------------------
   Pasif Sporcu Kartı (Vizesiz / Lisanssız)
   Kart görünümü soluklaştırılır; etiket sağ üste sabitlenir
-------------------------------------------------------- */

/* Pasif kart genel görünüm: %65 opaklık + soluk border */
.tof-dir__card--pasif {
  opacity: 0.65;
  border-color: #d1d5db !important;
  box-shadow: none !important;
}

.tof-dir__card--pasif:hover {
  opacity: 0.85;
  border-color: #9ca3af !important;
  transform: none !important;
}

/* Kart pozisyonlama: etiketi doğru konumlandırmak için */
.tof-dir__card--athlete {
  position: relative;
}

/* Pasif uyarı etiketi: sağ üst köşeye sabitlenir */
.tof-dir__pasif-etiket {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.4;
  pointer-events: none; /* hover etkileşimini karta bırak */
}

/* Vizesiz etiketi: kırmızı */
.tof-dir__pasif-etiket--vizesiz {
  background: #dc2626;
  color: #fff;
}

/* Lisanssız etiketi: turuncu */
.tof-dir__pasif-etiket--lisanssiz {
  background: #d97706;
  color: #fff;
}

/* -------------------------------------------------------
   Pasif Sporcu Profil Uyarı Banner'ı
   athlete-template.php içinde kullanılır
-------------------------------------------------------- */
.tof-profile__pasif-uyari {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

/* Vizesiz uyarı: kırmızı ton */
.tof-profile__pasif-uyari--vizesiz {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Lisanssız uyarı: turuncu ton */
.tof-profile__pasif-uyari--lisanssiz {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.tof-profile__pasif-uyari .uyari-ikon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.tof-profile__pasif-uyari .uyari-metin strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

/* PDF çıktısında pasif uyarı (print) */
@media print {
  .tof-profile__pasif-uyari {
    border-width: 2px;
    font-size: 12px;
  }
  .tof-dir__pasif-etiket {
    display: none; /* Listede kart çıktısı almıyoruz, profil PDF'inde banner var */
  }
}

/* -------------------------------------------------------
   ACHIEVEMENT: Başarı Kartları
-------------------------------------------------------- */
.tof-dir__card--achievement {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-top: 4px solid #1f2937;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.tof-dir__ach-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 12px;
}

.tof-dir__ach-medal {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto;
}

.tof-dir__ach-medal--gold {
  background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(218, 165, 32, 0.3);
}

.tof-dir__ach-medal--silver {
  background: linear-gradient(135deg, #E0E0E0 0%, #9E9E9E 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(158, 158, 158, 0.3);
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.tof-dir__ach-medal--bronze {
  background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(205, 127, 50, 0.3);
}

.tof-dir__ach-medal--none {
  background: #f3f4f6;
  color: #6b7280;
}

.tof-dir__ach-flag {
  width: 24px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* -------------------------------------------------------
   ACHIEVEMENT: Table View & View Toggle
-------------------------------------------------------- */
.tof-directory__view-toggle {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
    align-items: center;
    margin-left: auto;
    margin-bottom: 20px;
}

.tof-directory__view-toggle button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.tof-directory__view-toggle button:hover {
    color: #1f2937;
    background: #e5e7eb;
}

.tof-directory__view-toggle button.active {
    background: white;
    color: #e53935;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Kart modu kapalıysa CSS Grid'i iptal et ve tam genişliğe yay */
.tof-directory__grid--table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.tof-achievement-table-responsive {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.tof-directory[data-type="achievement"] .tof-achievement-table-scroll {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
}

.tof-directory[data-type="achievement"] .tof-achievement-table-scroll .tof-table {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
    margin-bottom: 0;
}

@media (max-width: 960px) {
    .tof-directory[data-type="achievement"] .tof-achievement-table-scroll {
        overflow-x: auto !important;
    }

    .tof-directory[data-type="achievement"] .tof-achievement-table-scroll .tof-table {
        min-width: 960px !important;
        width: 960px !important;
        max-width: none !important;
        table-layout: auto;
    }
}

@media (max-width: 700px) {
    .tof-directory[data-type="achievement"] .tof-directory__grid--table {
        overflow: visible !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .tof-directory[data-type="achievement"] .tof-achievement-table-responsive,
    .tof-directory[data-type="achievement"] .tof-achievement-table-scroll {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: -1px;
        padding-bottom: 8px;
    }
}

.tof-achievement-table-scroll th,
.tof-achievement-table-scroll td {
    white-space: normal;
}

.tof-achievement-table-scroll th:nth-child(1),
.tof-achievement-table-scroll td:nth-child(1),
.tof-achievement-table-scroll th:nth-child(5),
.tof-achievement-table-scroll td:nth-child(5) {
    white-space: nowrap;
}

/* -------------------------------------------------------
   TSP: Türkiye Sıralaması
-------------------------------------------------------- */
.tof-directory[data-type="tsp"] .tof-directory__grid {
  display: block;
}

.tof-tsp-header {
  margin-bottom: 14px;
}

.tof-tsp-titlebar {
  border: 1px solid var(--tof-border);
  border-top: 10px solid var(--tof-bar);
  background: #fff;
  padding: 14px 16px;
}

.tof-tsp-titlebar h2 {
  margin: 0;
  color: var(--tof-text);
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}

.tof-tsp-subtitle {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
}

.tof-tsp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tof-tsp-actions-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.tof-tsp-bulk-toggle {
  min-height: 38px;
  border: 1px solid var(--tof-border);
  border-radius: 4px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  transition: color .2s, border-color .2s, box-shadow .2s, background .2s;
}

.tof-tsp-bulk-toggle .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--tof-accent);
  font-family: system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.tof-tsp-bulk-toggle:hover,
.tof-tsp-bulk-toggle:focus {
  border-color: rgba(245, 130, 32, .6);
  box-shadow: 0 0 0 2px rgba(245, 130, 32, .14);
}

.tof-tsp-bulk-toggle[aria-pressed="true"] {
  background: #fff7ed;
  border-color: rgba(245, 130, 32, .45);
  color: #111827;
}

.tof-tsp-bulk-toggle:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.tof-tsp-tab {
  min-width: 92px;
  height: 58px;
  border: 1px solid var(--tof-border);
  border-radius: 4px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 400;
  font-size: 35px;
  letter-spacing: 0;
  line-height: 1;
}

.tof-tsp-tab:hover,
.tof-tsp-tab:focus {
  border-color: rgba(245, 130, 32, .6);
  box-shadow: 0 0 0 2px rgba(245, 130, 32, .14);
}

.tof-tsp-tab.is-active {
  background: var(--tof-accent);
  border-color: var(--tof-accent);
  color: #fff;
}

.tof-tsp-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--tof-border);
  background: #fff;
  box-shadow: 0 1px 6px rgba(15, 23, 42, .06);
}

.tof-tsp-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.tof-directory[data-type="tsp"] .tof-tsp-table .text-center,
.tof-directory[data-type="tsp"] .tof-tsp-detail-table .text-center {
  text-align: center !important;
}

.tof-directory[data-type="tsp"] .tof-tsp-table > thead > tr > th {
  background: var(--tof-bar);
  color: #fff;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 22px !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  border-bottom: 1px solid var(--tof-border);
  padding: 18px 16px;
  white-space: nowrap;
}

.tof-tsp-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  vertical-align: middle;
}

.tof-tsp-row {
  cursor: pointer;
  background: #fff;
  transition: background .18s ease, box-shadow .18s ease;
}

.tof-tsp-row:hover {
  background: #fff7ed;
}

.tof-tsp-row.is-open {
  background: #fff7ed;
  box-shadow: inset 4px 0 0 var(--tof-accent), 0 2px 10px rgba(15, 23, 42, .05);
}

.tof-tsp-row.is-open + .tof-tsp-detail-row {
  background: #fff7ed;
}

.tof-tsp-row.is-open .tof-tsp-rank span {
  background: var(--tof-accent);
  color: #fff;
}

.tof-tsp-rank-head,
.tof-tsp-rank {
  width: 76px;
  text-align: center;
}

.tof-tsp-rank span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  font-weight: 900;
  font-size: 16px;
}

.tof-tsp-athlete-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.tof-tsp-athlete-link:hover strong {
  color: var(--tof-accent);
}

.tof-tsp-athlete-link img {
  width: 85px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 3px;
  border: 1px solid var(--tof-soft);
  background: #fff;
}

.tof-tsp-athlete-link strong {
  display: block;
  color: #111827;
  font-size: 17px;
  line-height: 1.2;
  text-transform: uppercase;
}

.tof-tsp-athlete-link small,
.tof-tsp-score small {
  display: block;
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}

.tof-tsp-club {
  color: #4b5563;
  font-size: 16px;
  font-weight: 600;
}

.tof-tsp-score strong {
  color: #111827;
  font-size: 28px;
  line-height: 1;
}

.tof-tsp-detail-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--tof-border);
  border-radius: 4px;
  background: #fff;
  color: var(--tof-bar);
  cursor: pointer;
}

.tof-tsp-detail-toggle:hover,
.tof-tsp-detail-toggle:focus {
  color: var(--tof-accent);
  border-color: rgba(245, 130, 32, .6);
  box-shadow: 0 0 0 2px rgba(245, 130, 32, .14);
}

.tof-tsp-detail-toggle[aria-expanded="true"] .fa {
  transform: rotate(180deg);
}

.tof-tsp-detail-cell {
  padding: 16px 18px 26px !important;
  background: #fff7ed !important;
  border-top: 1px solid rgba(15, 23, 42, .06);
  border-bottom: 12px solid #f4f6f8;
}

.tof-tsp-detail-loading,
.tof-tsp-detail-cell .tof-dir-empty__text {
  padding: 18px;
  color: #6b7280;
  font-weight: 600;
}

.tof-tsp-detail-scroll {
  width: 100%;
  overflow-x: auto;
}

.tof-tsp-detail-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .07);
}

.tof-directory[data-type="tsp"] .tof-tsp-detail-table th,
.tof-directory[data-type="tsp"] .tof-tsp-detail-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  font-size: 16px;
}

.tof-directory[data-type="tsp"] .tof-tsp-detail-table > thead > tr > th {
  background: #d7e4ee !important;
  color: #2f3f4d !important;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 18px !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(47, 63, 77, .16) !important;
}

@media (max-width: 700px) {
  .tof-tsp-header {
    margin-bottom: 12px;
  }

  .tof-tsp-titlebar {
    padding: 12px 14px;
    border-top-width: 8px;
  }

  .tof-tsp-titlebar h2 {
    font-size: 22px;
  }

  .tof-tsp-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tof-tsp-tab {
    width: 100%;
    min-width: 0;
    height: 48px;
    font-size: 24px;
  }

  .tof-tsp-actions-bar {
    justify-content: stretch;
  }

  .tof-tsp-bulk-toggle {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 18px;
  }

  .tof-tsp-table-wrap {
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .tof-tsp-table,
  .tof-tsp-table thead,
  .tof-tsp-table tbody,
  .tof-tsp-table tr,
  .tof-tsp-table td {
    display: block;
    width: 100%;
  }

  .tof-tsp-table thead {
    display: none;
  }

  .tof-tsp-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .tof-tsp-table tbody {
    display: block;
  }

  .tof-tsp-row {
    position: relative;
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) 86px;
    grid-template-areas:
      "name name name"
      "rank photo score"
      "rank category score"
      "club club club"
      "action action action";
    gap: 10px 12px;
    align-items: center;
    padding: 14px 12px;
    margin: 0 0 12px;
    border: 1px solid rgba(15, 23, 42, .10);
    border-left: 4px solid transparent;
    border-radius: 6px;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
  }

  .tof-tsp-row:hover {
    background: #fff !important;
  }

  .tof-tsp-row.is-open {
    border-left-color: var(--tof-accent);
    background: #fff7ed !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
  }

  .tof-tsp-table td {
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .tof-tsp-rank {
    grid-area: rank;
    width: 58px !important;
    height: 136px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    align-self: center;
  }

  .tof-tsp-rank span {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex: 0 0 40px;
    font-size: 17px;
    line-height: 40px;
  }

  .tof-tsp-athlete {
    display: contents !important;
  }

  .tof-tsp-athlete-link {
    display: contents;
  }

  .tof-tsp-athlete-photo {
    grid-area: photo;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .tof-tsp-athlete-link img {
    justify-self: center;
    display: block;
    width: 100px;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
  }

  .tof-tsp-athlete-meta {
    display: contents;
  }

  .tof-tsp-athlete-link strong {
    grid-area: name;
    justify-self: center;
    font-size: 18px;
    line-height: 1.15;
    text-align: center;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: none;
  }

  .tof-tsp-athlete-link small {
    grid-area: category;
    justify-self: center;
    text-align: center;
    font-size: 14px;
    line-height: 1.25;
  }

  .tof-tsp-score small {
    font-size: 13px;
    line-height: 1.25;
  }

  .tof-tsp-club {
    grid-area: club;
    align-self: stretch;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
    color: #334155;
    padding-left: 0 !important;
    padding-top: 4px !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .tof-tsp-score {
    grid-area: score;
    align-self: stretch;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 10px 6px !important;
    border: 1px solid rgba(15, 23, 42, .08) !important;
    border-radius: 4px;
    background: #f8fafc !important;
  }

  .tof-tsp-score strong {
    font-size: 34px;
  }

  .tof-tsp-actions {
    grid-area: action;
    display: flex !important;
    align-self: auto;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(15, 23, 42, .08) !important;
    border-radius: 0;
    background: transparent !important;
    text-align: center;
  }

  .tof-tsp-detail-toggle {
    width: 100%;
    height: 36px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 17px;
  }

  .tof-tsp-detail-toggle:hover,
  .tof-tsp-detail-toggle:focus {
    background: #fff7ed;
    box-shadow: none;
  }

  .tof-tsp-detail-row {
    display: block;
    margin: -12px 0 12px;
    border: 1px solid rgba(15, 23, 42, .10);
    border-top: 0;
    border-radius: 0 0 6px 6px;
    background: #fff7ed !important;
  }

  .tof-tsp-detail-cell {
    padding: 12px 10px 14px !important;
    background: transparent !important;
    border: 0;
  }

  .tof-tsp-detail-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .tof-tsp-detail-table {
    display: table;
    width: 760px;
    min-width: 760px;
    border-collapse: collapse;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
  }

  .tof-tsp-detail-table thead {
    display: table-header-group;
  }

  .tof-tsp-detail-table tbody {
    display: table-row-group;
  }

  .tof-tsp-detail-table tr {
    display: table-row;
    border: 0;
    border-radius: 0;
    background: #fff !important;
    box-shadow: none;
  }

  .tof-directory[data-type="tsp"] .tof-tsp-detail-table td {
    display: table-cell !important;
    width: auto !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid rgba(15, 23, 42, .07) !important;
    color: #334155;
    font-size: 14px;
    line-height: 1.35;
  }

  .tof-directory[data-type="tsp"] .tof-tsp-detail-table th {
    padding: 10px 12px !important;
    font-size: 16px !important;
    line-height: 1.15;
  }

  .tof-directory[data-type="tsp"] .tof-tsp-detail-table td::before {
    content: none;
  }

  .tof-directory[data-type="tsp"] .tof-tsp-detail-table td strong {
    color: #111827;
    font-size: 16px;
  }
}

/* -------------------------------------------------------
   FOTOĞRAF ONAY BEKLENİYOR — Sporcu Kartı (Dizin Listesi)
   tof-directory.js: photoApproved === false durumu
-------------------------------------------------------- */

/* Avatar blur durumunda boyutu tam kapsasın */
.tof-dir__avatar--has-pending {
  position: relative;
}

/* Blur fotoğraf inner wrapper: avatar ile aynı boyutlarda */
.tof-dir__photo-pending-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.22)),
    #e2e8f0;
}

/* Blur uygulanan sporcu fotoğrafı */
.tof-dir__photo--blur {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  filter: blur(10px) !important;
  transform: scale(1.08) !important; /* blur kenar beyazlığını gizler */
  opacity: 0.5 !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1) !important;
}

/* Üst katman: glassmorphism overlay (kart boyutuna uyar) */
.tof-dir__photo-pending-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: rgba(15, 23, 42, 0.52) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  border-radius: 6px !important;
  color: #f8fafc !important;
  text-align: center !important;
  padding: 8px !important;
  pointer-events: none !important;
}

.tof-dir__photo-pending-overlay .fa {
  font-size: 20px !important;
  color: #fbbf24 !important; /* Amber/uyarı sarısı */
  display: block !important;
  line-height: 1 !important;
}

.tof-dir__photo-pending-overlay .fa-ban {
  color: #f97316 !important;
}

.tof-dir__photo-pending-overlay span {
  font-size: 9px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1.4 !important;
  color: #f8fafc !important;
  display: block !important;
}

.tof-dir__photo-pending-overlay small {
  display: block !important;
  max-width: 100% !important;
  color: #fde68a !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
}
