/* -------------------------------------------------------
   TOF Directory - Athlete Profile Styles (v1.0.8 - Clean Layout)
   Bootstrap'a bağımlılık yok — CSS Grid/Flex ile kendi layout'umuz.
-------------------------------------------------------- */

/* === WRAPPER === */
.tof-profile {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 6px solid var(--tof-accent);
  padding: 40px;
  margin-top: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: #334155;
  clear: both;
  position: relative;
  z-index: 1 !important; /* Sticky menünün (genelde 9999+) altında kalmasını sağlar */
}

/* === ÜST YARDIMCI ARAÇLAR (Utility Bar) === */
.tof-upper-utility-bar {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid #f8fafc;
  padding-bottom: 8px;
}

.tof-back-utility-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
  padding: 4px 10px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 5px !important;
  background: #fdfdfd !important;
  transition: all 0.2s !important;
  line-height: normal !important;
}

.tof-back-utility-btn:hover {
  color: var(--tof-accent) !important;
  border-color: var(--tof-accent) !important;
  background: #fff !important;
}

.tof-print-utility-btn {
  color: #cbd5e1 !important;
  font-size: 20px !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
  display: flex !important;
  align-items: center !important;
  height: 28px; /* Dizin butonu yüksekliğiyle eşitlemek için */
}

.tof-print-utility-btn:hover {
  color: #4e5964 !important;
}

/* === ÜSTÜN BAŞLIĞI === */
.tof-profile__top-header {
  text-align: center;
  margin-bottom: 40px;
}

.tof-profile__name {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 5.5em !important; /* Boyut artırıldı */
  line-height: 1.1 !important;
  margin: 0 0 20px 0 !important;
  color: #4e5964 !important;
  text-align: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0 0.25em !important;
  letter-spacing: -1px !important;
}

.tof-profile__name .fname {
  font-weight: 400 !important; /* Ad Normal */
}

.tof-profile__name .lname {
  font-weight: 500 !important; /* Soyad 500 */
}

.tof-profile__divider-main {
  width: 60px;
  height: 5px;
  background: var(--tof-accent);
  margin: 0 auto;
  border-radius: 3px;
}

/* === DASHBOARD LAYOUT (CSS Grid — Bootstrap yoktur) === */
.tof-profile__dashboard {
  display: grid !important;
  grid-template-columns: 260px 1fr !important;
  gap: 30px !important;
  align-items: start !important;
}

/* === SİDEBAR === */
.tof-profile__sidebar-card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  text-align: center;
}

.tof-profile__avatar-container {
  position: relative;
  width: 100%;
  margin-bottom: 35px; /* Olimpiyat rozeti taşması için artırıldı */
}

.tof-profile__avatar {
  width: 100% !important;
  max-width: 220px !important;
  height: auto !important;
  border-radius: 6px !important;
  border: 3px solid #fff !important;
  outline: 1px solid #e2e8f0 !important;
  display: block !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 1;
}

/* Olimpiyat rozeti ölçü/konum stili tof-directory.css ortak bileşeninden gelir. */

/* === DURUM İKONLARI ===
   Tüm ikonların görünümü, arka planı, dikey ortalaması vb.
   tof-directory.css'teki ortak bileşen (.tof-dir__badges--icons) içerisinden alınmaktadır.
*/
.tof-profile__sidebar-icons {
  margin: 16px 0 !important;
  line-height: 1 !important; /* Theme line-height reset */
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
}

.tof-profile__sidebar-icons .tof-dir__badge {
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.tof-profile__sidebar-icons i,
.tof-profile__sidebar-icons svg {
  line-height: 1 !important;
}

/* === META BİLGİLER === */
.tof-profile__sidebar-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 0 0 16px 0;
}

.tof-profile__sidebar-meta {
  text-align: left;
}

.tof-profile__sidebar-meta .meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.tof-profile__sidebar-meta .meta-icon {
  color: #334155;
  font-size: 16px;
  width: 20px;
  margin-top: 4px;
  flex-shrink: 0;
}

.tof-profile__sidebar-meta .meta-label {
  display: block;
  font-size: 18px; /* Daha okunaklı bir font boyutu (Bölge/Kulüp) */
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
  line-height: 1.2;
}

.tof-profile__sidebar-meta .meta-value {
  display: block;
  font-size: 16px; /* İçerik fontu arttırıldı (Antalya Bölgesi) */
  font-weight: 400;
  color: #64748b;
  line-height: 1.4;
}

/* === ANA İÇERİK === */
.tof-profile__content {
  min-width: 0; /* grid overflow fix */
}

/* Utility Bar yukarı taşındığından eski seçiciler kaldırıldı */

/* === METRİK KARTLAR (FLEX — col-* yoktur) === */
.tof-profile__metrics {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-bottom: 32px !important;
}

.tof-metric-col {
  flex: 1 1 calc(25% - 16px) !important;
  min-width: 130px !important;
}

.tof-metric-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.tof-metric-card--button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.tof-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.tof-metric-card--button:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 3px;
}

.metric-card-header {
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-card-header i {
  font-size: 26px;
  color: #fff;
}

.metric-card-body {
  padding: 16px 10px 18px;
  background: #fff;
}

.metric-card-value {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  font-family: 'Barlow Condensed', sans-serif;
}

.metric-card-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: #334155;
  line-height: 1.3;
}

.metric-card-subtext {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Renk Teması */
.card-red .metric-card-header    { background: #ff6b6b; }
.card-red .metric-card-value     { color: #e74c3c; }

.card-green .metric-card-header  { background: #51cf66; }
.card-green .metric-card-value   { color: #2ecc71; }

.card-yellow .metric-card-header { background: #fcc419; }
.card-yellow .metric-card-value  { color: #f39c12; }

.card-purple .metric-card-header { background: #9775fa; }
.card-purple .metric-card-value  { color: #7950f2; }

.card-orange .metric-card-header { background: #ff7c0a; }
.card-orange .metric-card-value  { color: #e8690a; }

.card-gold .metric-card-header   { background: #e8a908; }
.card-gold .metric-card-value    { color: #c78a00; }

.card-blue .metric-card-header   { background: #0ea5e9; }
.card-blue .metric-card-value    { color: #0284c7; }

/* === OK ORTALAMASI MODALI === */
.tof-performance-modal {
  background: rgba(0, 0, 0, 0.92) !important;
}

.tof-performance-modal__panel {
  display: flex;
  flex-direction: column;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}

.tof-performance-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.tof-performance-modal__eyebrow {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.tof-performance-modal__header h2 {
  margin: 0;
  color: #334155;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

.tof-performance-modal__header p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.tof-performance-modal__close {
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
}

.tof-performance-modal__close:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 2px;
}

.tof-performance-modal__body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 24px;
}

.tof-performance-section + .tof-performance-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.tof-performance-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tof-performance-section__header h3 {
  margin: 0;
  color: #334155;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  line-height: 1.15;
}

.tof-performance-section__header span {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.tof-performance-section__desc {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.tof-performance-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tof-performance-context {
  border: 1px solid #e2e8f0;
  border-top: 3px solid #94a3b8;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.tof-performance-context.tof-performance-context--outdoor {
  border-top-color: var(--tof-accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tof-accent) 7%, #fff) 0%, #fff 72%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--tof-accent) 18%, transparent);
}

.tof-performance-context.tof-performance-context--indoor {
  border-top-color: #4e5964;
  background: linear-gradient(180deg, rgba(78, 89, 100, 0.08) 0%, #fff 72%);
  box-shadow: inset 0 1px 0 rgba(78, 89, 100, 0.16);
}

.tof-performance-context h4 {
  margin: 0 0 14px;
  color: #334155;
  font-size: 18px;
  line-height: 1.25;
}

.tof-performance-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tof-performance-stat {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f8fafc;
}

.tof-performance-stat__label {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.tof-performance-stat__value {
  display: block;
  margin-top: 4px;
  color: #334155;
  font-size: 20px;
  line-height: 1.1;
}

.tof-performance-source-breakdown {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.tof-performance-source-breakdown__title {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.tof-performance-source-breakdown__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tof-performance-source-breakdown__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1 1 160px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: rgba(248, 250, 252, 0.82);
  color: #334155;
  font-size: 13px;
}

.tof-performance-source-breakdown__row span {
  color: #64748b;
  font-weight: 700;
}

.tof-performance-source-breakdown__row strong {
  color: #334155;
  font-weight: 700;
  white-space: nowrap;
}

.tof-performance-since-list,
.tof-performance-competition-list {
  display: grid;
  gap: 8px;
}

.tof-performance-since-row,
.tof-performance-competition-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.8fr) repeat(4, minmax(70px, 1fr));
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 14px;
}

.tof-performance-since-row {
  border-left: 3px solid #94a3b8;
}

.tof-performance-since-row.tof-performance-context--outdoor {
  border-left-color: var(--tof-accent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--tof-accent) 6%, #fff) 0%, #fff 26%);
}

.tof-performance-since-row.tof-performance-context--indoor {
  border-left-color: #4e5964;
  background: linear-gradient(90deg, rgba(78, 89, 100, 0.07) 0%, #fff 26%);
}

.tof-performance-competition-row {
  grid-template-columns: minmax(220px, 2fr) minmax(80px, 0.8fr) minmax(70px, 0.7fr) minmax(60px, 0.6fr);
}

.tof-performance-since-row strong,
.tof-performance-competition-row strong {
  color: #334155;
}

.tof-performance-competition-row div {
  min-width: 0;
}

.tof-performance-competition-row div strong,
.tof-performance-competition-row div span {
  display: block;
}

.tof-performance-competition-row div strong {
  overflow-wrap: anywhere;
}

.tof-performance-competition-row div span {
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
}

.tof-performance-competition-meta {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tof-performance-competition-meta span {
  display: inline-flex !important;
  margin-top: 0 !important;
}

.tof-performance-source-badge {
  align-items: center;
  padding: 2px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.2;
}

/* === SEKMELER (TABS) === */
.tof-profile__tabs {
  margin-top: 10px;
}

.tof-profile__tabs-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin-bottom: 20px !important;
}

.tof-profile__tabs .nav-tabs {
  border-bottom: none !important;
  display: flex !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.tof-profile__tabs .nav-tabs .nav-item {
  margin: 0 !important;
}

/* Sekme Linki (Varsayılan: Pasif ama Okunabilir) */
.tof-profile__tabs .nav-tabs .nav-link {
  display: block !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 30px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  color: #94a3b8 !important; /* Standart pasif gri */
  padding: 12px 24px !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -1px !important;
  opacity: 0.5 !important; /* Okunabilirlik için 0.2'den 0.5'e çıkarıldı */
  transition: all 0.2s ease !important;
}

/* Aktif Durum (Sadece parent LI aktifse uygula - En güvenilir yöntem) */
.tof-profile__tabs .nav-tabs .nav-item.active .nav-link {
  color: #4e5964 !important;
  opacity: 1 !important;
  border-bottom-color: var(--tof-accent) !important;
}

/* Hover Durumu */
.tof-profile__tabs .nav-link:hover {
  color: #4e5964 !important;
  opacity: 1 !important;
}

/* Sağ Panel: Kayıt Sayıları */
.tof-profile__tabs-counts {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  font-family: var(--tof-font-family, inherit) !important;
  font-size: 15px !important;
  color: #64748b !important; /* Biraz daha belirgin bir gri */
  text-transform: none !important;
  font-weight: 400 !important;
  padding-right: 15px;
}

.tof-profile__tabs-counts b {
  color: #4e5964 !important;
  font-weight: 600 !important;
  margin-left: 4px;
}

.count-divider {
  margin: 0 12px !important;
  color: #e2e8f0 !important;
}

/* === TABLOLAR === */
.tof-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}

.tof-table thead th {
  background: #4e5964 !important;
  color: #fff !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 12px 14px !important;
  border: none !important;
}

.tof-table tbody td {
  padding: 13px 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #334155 !important;
  font-size: 15px !important;
  vertical-align: middle !important;
}

.tof-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.tof-table tbody tr:hover td {
  background: #f0f9ff;
}

/* === MOBİL === */
@media (max-width: 900px) {
  .tof-profile__dashboard {
    grid-template-columns: 1fr !important;
  }
  .tof-profile__name {
    font-size: 36px !important;
  }
  .tof-metric-col {
    flex: 1 1 calc(50% - 16px) !important;
  }
  .tof-performance-context-grid {
    grid-template-columns: 1fr;
  }
  .tof-performance-since-row,
  .tof-performance-competition-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .tof-profile { padding: 16px; }
  .tof-metric-col {
    flex: 1 1 100% !important;
  }
  .tof-performance-modal {
    padding: 10px;
  }
  .tof-performance-modal__panel {
    width: 100%;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }
  .tof-performance-modal__header,
  .tof-performance-modal__body {
    padding: 16px;
  }
  .tof-performance-modal__header h2 {
    font-size: 28px;
  }
  .tof-performance-section__header {
    align-items: flex-start;
    flex-direction: column;
  }
  .tof-performance-stat-grid,
  .tof-performance-since-row,
  .tof-performance-competition-row {
    grid-template-columns: 1fr;
  }
}
/* === MADALYA VE KUPA İKONLARI === */
.tof-medal-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
}

.medal-gold, .medal-silver, .medal-bronze,
.kupa-gold, .kupa-silver, .kupa-bronze {
  display: inline-block !important;
  width: 28px !important;
  height: 28px !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  vertical-align: middle !important;
}

/* Madalya Görselleri */
.medal-gold   { background-image: url('../../../images/mypage/gold.png') !important; }
.medal-silver { background-image: url('../../../images/mypage/silver.png') !important; }
.medal-bronze { background-image: url('../../../images/mypage/bronz.png') !important; }

/* Kupa Görselleri */
.kupa-gold   { background-image: url('../../../images/mypage/kaltin.png') !important; }
.kupa-silver { background-image: url('../../../images/mypage/kgumus.png') !important; }
.kupa-bronze { background-image: url('../../../images/mypage/kbronz.png') !important; }

/* Print yönetimi: Ekranda gizle, yazıcıda göster (PHP tarafındaki spanlar için) */
.tof-print-only-text {
  display: none !important;
}

@media print {
  .tof-ui-only { display: none !important; }
  .tof-print-only-text { display: inline !important; }
}

/* === MODERN TOOLTIP (Dizin Sayfası Uyumu) === */
.tof-tooltip {
  position: relative !important;
  cursor: pointer !important;
  display: inline-flex !important;
}

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

.tof-tooltiptext {
  visibility: hidden !important;
  position: absolute !important;
  width: max-content !important;
  max-width: 250px !important;
  background-color: #1e293b !important;
  color: #f8fafc !important;
  text-align: center !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  z-index: 2147483000 !important;
  bottom: calc(100% + 12px) !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(5px) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2) !important;
  pointer-events: none !important;
  white-space: normal !important;
}

.tof-tooltiptext strong {
  display: block !important;
  font-size: 13px !important;
  color: var(--tof-accent) !important;
  margin-bottom: 4px !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  padding-bottom: 4px !important;
}

.tof-tooltiptext span {
  display: block !important;
  opacity: 0.9 !important;
}

.tof-tooltiptext::after {
  content: "" !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  margin-left: -6px !important;
  border-width: 6px !important;
  border-style: solid !important;
  border-color: #1e293b transparent transparent transparent !important;
}

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

.tof-profile__sidebar-card:has(.tof-tooltip:hover),
.tof-profile__content:has(.tof-tooltip:hover) {
  position: relative;
  z-index: 2147482000;
}

/* -------------------------------------------------------
   TABLO SCROLL + TOOLTIP ÇAKIŞMASI ÇÖZÜMÜ
   Sorun: overflow:visible tooltip için gerekli ama scroll'u iptal eder.
   Çözüm: İki katman — dış div tooltip için visible, iç div scroll için auto.
   HTML: <div class="table-responsive"><div class="tof-table-scroll"><table>...
-------------------------------------------------------- */

/* DIŞ KATMAN: Tooltip taşması için - overflow visible kalır */
.table-responsive {
  overflow: visible !important;
  position: relative;
}

/* İÇ KATMAN: Yatay scroll — sadece bu katman scroll eder */
.tof-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* iOS momentum scroll */
  width: 100%;
}

/* Desktop profilde tablolar alanına sığmalı; yatay scroll sadece mobilde kalır. */
@media (min-width: 769px) {
  .tof-profile__tabs .tof-table-scroll {
    overflow-x: visible;
  }

  .tof-profile__tabs .tof-table {
    table-layout: fixed;
  }

  .tof-profile__tabs .tof-table th,
  .tof-profile__tabs .tof-table td {
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* Mobilde scroll ipucu: tablonun sağa uzadığını hissettir */
@media (max-width: 768px) {
  .tof-table-scroll {
    /* Sağ kenarda hafif bir shadow gradient — kaydırılabilir olduğunu ima eder */
    background:
      linear-gradient(to right, white 30%, rgba(255,255,255,0)),
      linear-gradient(to right, rgba(255,255,255,0), white 70%) 0 100%,
      radial-gradient(farthest-side at 0% 50%, rgba(0,0,0,0.08), rgba(0,0,0,0)),
      radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.08), rgba(0,0,0,0)) 0 100%;
    background-repeat: no-repeat;
    background-color: white;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
  }
}

.tof-table tbody td {
  position: relative !important;
}

/* -------------------------------------------------------
   FOTOĞRAF ONAY BEKLENİYOR — Profil Sayfası
   athlete-template.php: $photoApproved === false durumu
-------------------------------------------------------- */

/* Wrapper: fotoğrafın boyut ve konumunu miras alır */
.tof-profile__avatar-pending {
  position: relative !important;
  width: 100% !important;
  max-width: 220px !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 auto !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.22)),
    #e2e8f0 !important;
}

/* Blur uygulanan fotoğraf: orijinal boyutu korur */
.tof-profile__avatar--blur {
  filter: blur(14px) !important;
  transform: scale(1.08) !important; /* blur kenar beyazlığını gizler */
  opacity: 0.55 !important;
  max-width: 100% !important; /* parent'ın sınırına uy */
}

/* Üst katman: glassmorphism overlay */
.tof-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: 8px !important;
  background: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  border-radius: 6px !important;
  color: #f8fafc !important;
  text-align: center !important;
  padding: 12px !important;
  pointer-events: none !important;
}

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

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

.tof-photo-pending-overlay span {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  line-height: 1.35 !important;
  color: #f8fafc !important;
  display: block !important;
}

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

/* EOF */
