/* TFF Puan Durumu - ön yüz ve admin ortak stiller */

.tffpd-wrapper {
	max-width: 100%;
	margin: 0 0 1em;
}

/* ÖNEMLİ: "font-family: inherit" kısa kodun sayfada tam olarak NEREYE
   yerleştirildiğine bağımlı kalıyor — örneğin kısa kod bir <code> etiketi
   (ya da "kod" biçimli bir metin bloğu) içine konursa, tarayıcı o etikete
   varsayılan olarak monospace uyguluyor ve "inherit" bunu olduğu gibi
   aşağı taşıyor. Bunu tamamen ortadan kaldırmak için sitenin gerçek
   yazı tipini (gemlikspor.com.tr → Fira Sans) doğrudan burada sabitliyoruz;
   böylece kısa kod nereye yerleştirilirse yerleştirilsin tablo her zaman
   doğru fontla görünür. Sınıf ismini iki kez yazan (.tffpd-wrapper.tffpd-wrapper)
   klasik teknikle özgüllüğü de yükseltiyoruz ki tema/Elementor kuralları
   üzerine yazamasın. */
.tffpd-wrapper.tffpd-wrapper,
.tffpd-wrapper.tffpd-wrapper .tffpd-title,
.tffpd-wrapper.tffpd-wrapper .tffpd-table,
.tffpd-wrapper.tffpd-wrapper .tffpd-table th,
.tffpd-wrapper.tffpd-wrapper .tffpd-table td {
	font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.tffpd-title {
	margin: 0 0 0.6em;
	font-size: 1.25em;
	font-weight: 700;
}

.tffpd-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tffpd-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: #fff;
}

.tffpd-table th,
.tffpd-table td {
	padding: 8px 10px;
	text-align: center;
	border-bottom: 1px solid #e2e2e2;
	white-space: nowrap;
}

.tffpd-table thead th {
	background: #1d2327;
	color: #fff;
	font-weight: 600;
	font-size: 12px;
}

.tffpd-col-sira {
	width: 36px;
	font-weight: 700;
	color: #555;
}

.tffpd-col-takim {
	text-align: left;
	white-space: normal;
	min-width: 180px;
	font-weight: 600;
}

.tffpd-table tbody tr:nth-child(even) {
	background: #f7f7f7;
}

.tffpd-table tbody tr:hover {
	background: #eef4ff;
}

.tffpd-row-promotion {
	box-shadow: inset 4px 0 0 0 #2fa84f;
}

.tffpd-row-playoff {
	box-shadow: inset 4px 0 0 0 #e8a33d;
}

.tffpd-row-relegation {
	box-shadow: inset 4px 0 0 0 #d63638;
}

.tffpd-legend {
	margin-top: 10px;
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: #444;
}

.tffpd-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tffpd-swatch {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 2px;
}

.tffpd-swatch-promotion {
	background: #2fa84f;
}

.tffpd-swatch-playoff {
	background: #e8a33d;
}

.tffpd-swatch-relegation {
	background: #d63638;
}

.tffpd-updated {
	margin-top: 8px;
	font-size: 12px;
	color: #777;
}

.tffpd-empty {
	padding: 14px;
	background: #fff8e5;
	border: 1px solid #f0c33c;
	border-radius: 4px;
}

/* Admin sayfası */
.tffpd-admin-columns {
	display: flex;
	gap: 24px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.tffpd-admin-main {
	flex: 2;
	min-width: 340px;
	background: #fff;
	border: 1px solid #dcdcde;
	padding: 20px;
	border-radius: 4px;
}

.tffpd-admin-sidebar {
	flex: 1;
	min-width: 320px;
	background: #fff;
	border: 1px solid #dcdcde;
	padding: 20px;
	border-radius: 4px;
}

.tffpd-success {
	color: #2fa84f;
	font-weight: 600;
}

.tffpd-error {
	color: #d63638;
	font-weight: 600;
}

.tffpd-edit-table input[type="text"] {
	width: 100%;
	min-width: 160px;
}

.tffpd-edit-table input[type="number"] {
	width: 64px;
}

.tffpd-edit-table .tffpd-row-index {
	text-align: center;
	font-weight: 600;
	color: #666;
}

.tffpd-edit-table .tffpd-row-actions {
	white-space: nowrap;
}

.tffpd-edit-table .tffpd-row-actions .button {
	padding: 0 6px;
	min-width: 28px;
}

#tffpd-row-template {
	display: none;
}
