/* ============================================================ */
/* TOF Yarışma Modülü - Yarışmaya Özel Görünüm Stilleri */
/* ============================================================ */

/* Yarışma Özeti */
.tof-summary-wrap {
  width: 100%;
  margin: 10px auto 30px auto;
}

.tof-summary-title {
  text-align: center;
  margin: 10px 0 20px 0;
}

.tof-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 15px;
}

.tof-summary-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  text-align: center;
}

.tof-summary-label {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  color: #64748b;
}

.tof-summary-value {
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  color: #1e293b;
}

@media (max-width: 1024px) {
  .tof-summary-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 520px) {
  .tof-summary-wrap {
    margin: 8px auto 18px auto;
  }

  .tof-summary-title {
    margin: 6px 0 12px 0;
  }

  .tof-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tof-summary-card {
    padding: 10px 8px;
    border-radius: 8px;
    text-align: center;
  }

  .tof-summary-label {
    font-size: 11px;
    line-height: 1.15;
    margin-bottom: 5px;
  }

  .tof-summary-value {
    font-size: 22px;
  }
}

/* Yarışmacı Satır Vurguları */
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;
}

/* Yarışmacı Tablosu İşaret ve Durum Hücreleri */
.tof-marker-cell {
  text-align: center;
}

.tof-marker-value {
  color: #006400;
  font-size: 18px;
}

.tof-competition-status {
  font-weight: 400;
}

.tof-status-kesin-kayit {
  color: #008000;
}

.tof-status-on-kayit {
  color: #ff0000;
}

.tof-status-bilinmiyor {
  color: #808080;
}

.tof-competition-widget .tof-competition-table td.tof-status-kesin-kayit {
  color: #008000 !important;
}

.tof-competition-widget .tof-competition-table td.tof-status-on-kayit {
  color: #ff0000 !important;
}

.tof-competition-widget .tof-competition-table td.tof-status-bilinmiyor {
  color: #808080 !important;
}

/* Yarışma kayıt tabloları: eski responsive kart kırılımı yerine yatay scroll */
.tof-competition-table-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  position: relative;
}

.tof-competition-table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.tof-competition-widget .tof-competition-table {
  width: 100%;
  min-width: 980px;
  max-width: none;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-family: Inter, sans-serif !important;
  font-size: 14px;
}

.tof-competition-widget .tof-competition-coaches-table {
  min-width: 720px;
}

.tof-competition-widget .tof-competition-table th {
  padding: 10px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #c2cbd5 !important;
  background: #4e5964 !important;
  color: #fff !important;
  font: 600 14px "Barlow Condensed", sans-serif !important;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.tof-competition-widget .tof-competition-table td {
  padding: 8px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  color: #1f2937;
  font: 400 14px Inter, sans-serif !important;
  line-height: 1.35;
  vertical-align: middle;
}

.tof-competition-widget .tof-competition-table tbody tr:nth-child(odd) td {
  background-color: #f8fafc;
}

.tof-competition-widget .tof-competition-table tbody tr:hover td {
  background-color: #f1f5f9;
}

.tof-competition-widget .tof-competition-table th:first-child,
.tof-competition-widget .tof-competition-table td:first-child,
.tof-competition-widget .tof-competition-table th:nth-child(3),
.tof-competition-widget .tof-competition-table td:nth-child(3),
.tof-competition-widget .tof-competition-table th:nth-child(4),
.tof-competition-widget .tof-competition-table td:nth-child(4),
.tof-competition-widget .tof-competition-table th:last-child,
.tof-competition-widget .tof-competition-table td:last-child {
  white-space: nowrap;
}

.tof-competition-widget .tof-competition-table th:first-child,
.tof-competition-widget .tof-competition-table td:first-child {
  text-align: center;
}

@media (max-width: 640px) {
  .tof-competition-widget .tof-competition-table,
  .tof-competition-widget .tof-competition-table thead,
  .tof-competition-widget .tof-competition-table tbody,
  .tof-competition-widget .tof-competition-table tr {
    display: revert !important;
  }

  .tof-competition-widget .tof-competition-table {
    display: table !important;
    border: 0 !important;
  }

  .tof-competition-widget .tof-competition-table thead {
    display: table-header-group !important;
  }

  .tof-competition-widget .tof-competition-table tbody {
    display: table-row-group !important;
  }

  .tof-competition-widget .tof-competition-table tr {
    display: table-row !important;
    border: 0 !important;
  }

  .tof-competition-widget .tof-competition-table th,
  .tof-competition-widget .tof-competition-table td {
    display: table-cell !important;
    position: static !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    text-align: left;
  }

  .tof-competition-widget .tof-competition-table td:first-child {
    border-top: 0 !important;
    font: 400 14px Inter, sans-serif !important;
    text-align: center !important;
  }

  .tof-competition-widget .tof-competition-table thead tr {
    position: static !important;
    top: auto !important;
    left: auto !important;
  }

  .tof-competition-widget .tof-competition-table td::before,
  .tof-competition-widget .tof-competition-table td::after {
    content: none !important;
  }

  .tof-competition-table-scroll {
    padding-bottom: 8px;
  }
}

/* Yarışma sayfalarında tema kaynaklı ek kutuları gizle */
.single-yarisma .td-more-articles-box {
  display: none !important;
}
