/* =========================================================
 * sportify-v20.css — Trang danh sách giải đấu (archive-sf_tournament.php)
 * Giữ nguyên font/màu/variables của theme (--sf-navy, --sf-lime, ...).
 * Responsive: 1200 / 900 / 768 / 480px.
 * 2 cột -> 1 cột ở 900px (sidebar xuống dưới).
 * ========================================================= */

/* ---------- PHẦN 1 — HERO BANNER ---------- */
.sfta-hero {
	position: relative;
	min-height: 320px;
	display: flex;
	align-items: center;
	background-color: #0a1626;
	background-image: linear-gradient(135deg, #0a1626 0%, #123 55%, #0B1C2C 100%);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
.sfta-hero-overlay {
	position: absolute; inset: 0;
	background: rgba(10, 20, 40, .6);
	z-index: 1;
}
.sfta-hero-in {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding-top: 46px;
	padding-bottom: 46px;
}
.sfta-hero-left { max-width: 720px; }
.sfta-hero-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 12px;
	color: var(--sf-lime, #C8F000);
	font-family: var(--sf-head, 'Space Grotesk', sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.sfta-hero-label .sf-ic { stroke-width: 2; }
.sfta-hero-h1 {
	margin: 0 0 14px;
	color: #fff;
	font-family: var(--sf-head, 'Space Grotesk', sans-serif);
	font-size: 36px;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -.4px;
}
.sfta-hero-sub {
	margin: 0;
	color: rgba(255, 255, 255, .8);
	font-size: 15px;
	line-height: 1.6;
	max-width: 620px;
}
.sfta-hero-sub p { margin: 0 0 6px; color: inherit; }
.sfta-hero-sub p:last-child { margin-bottom: 0; }
.sfta-hero-crumb {
	margin-top: 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: rgba(255, 255, 255, .72);
}
.sfta-hero-crumb a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .18s ease; }
.sfta-hero-crumb a:hover { color: var(--sf-lime, #C8F000); }
.sfta-hero-crumb span[aria-current] { color: var(--sf-lime, #C8F000); font-weight: 600; }
.sfta-hero-deco {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	color: rgba(255, 255, 255, .4);
	font-family: var(--sf-head, 'Space Grotesk', sans-serif);
	font-size: 30px;
	font-weight: 800;
	font-style: italic;
	line-height: 1.05;
	letter-spacing: -.5px;
	transform: rotate(-7deg);
	white-space: nowrap;
	user-select: none;
	pointer-events: none;
}

/* ---------- PHẦN 2 — SPORT SELECTOR ---------- */
.sfta-sportbar {
	background: #fff;
	border-bottom: 1px solid #eef1f5;
	position: relative;
	z-index: 3;
}
.sfta-sportbar-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-top: 16px;
	padding-bottom: 16px;
}
.sfta-spill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 15px;
	border-radius: 24px;
	border: 1.5px solid var(--sp, #0B1C2C);
	background: #fff;
	color: var(--sp, #0B1C2C);
	font-family: var(--sf-body, 'Manrope', sans-serif);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
	white-space: nowrap;
}
.sfta-spill svg { flex: 0 0 auto; }
.sfta-spill:hover { background: color-mix(in srgb, var(--sp, #0B1C2C) 8%, #fff); }
.sfta-spill.is-active {
	background: var(--sp, #0B1C2C);
	color: #fff;
	border-color: var(--sp, #0B1C2C);
}
.sfta-spill.is-active[data-sport="all"] { color: #fff; }
.sfta-spill.is-active[data-sport="cau-long"] { color: #04331c; }
.sfta-spill.is-active[data-sport="tennis"] { color: #fff; }

/* ---------- PHẦN 3 — TOOLBAR ---------- */
.sfta-body { padding-top: 26px; padding-bottom: 64px; }
.sfta-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}
.sfta-search {
	position: relative;
	flex: 1 1 320px;
	min-width: 240px;
}
.sfta-search-ic {
	position: absolute; left: 14px; top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	display: inline-flex;
	pointer-events: none;
}
.sfta-search-input {
	width: 100%;
	height: 46px;
	padding: 0 16px 0 42px;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	font-family: var(--sf-body, 'Manrope', sans-serif);
	font-size: 14.5px;
	color: var(--sf-navy, #0B1C2C);
	transition: border-color .18s ease, box-shadow .18s ease;
}
.sfta-search-input::placeholder { color: #9aa8b8; }
.sfta-search-input:focus {
	outline: none;
	border-color: var(--sf-lime, #C8F000);
	box-shadow: 0 0 0 3px rgba(200, 240, 0, .22);
}
.sfta-toolbar-right { display: flex; align-items: center; gap: 12px; }
.sfta-sort {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 34px 0 14px;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
}
.sfta-sort-label { font-size: 13.5px; color: #64748b; white-space: nowrap; }
.sfta-sort-select {
	appearance: none; -webkit-appearance: none;
	border: 0; background: transparent;
	font-family: var(--sf-body, 'Manrope', sans-serif);
	font-size: 14px; font-weight: 600;
	color: var(--sf-navy, #0B1C2C);
	cursor: pointer;
	padding: 0;
	min-width: 118px;
}
.sfta-sort-select:focus { outline: none; }
.sfta-sort-chev {
	position: absolute; right: 12px; top: 50%;
	transform: translateY(-50%);
	color: #64748b;
	display: inline-flex; pointer-events: none;
}
.sfta-view {
	display: inline-flex;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}
.sfta-view-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 43px;
	border: 0; background: #fff;
	color: #94a3b8;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}
.sfta-view-btn:hover { color: var(--sf-navy, #0B1C2C); }
.sfta-view-btn.is-active { background: var(--sf-navy, #0B1C2C); color: #fff; }

/* ---------- PHẦN 4 — MAIN 2 CỘT (75/25) ---------- */
.sfta-main {
	display: grid;
	grid-template-columns: 75fr 25fr;
	gap: 28px;
	align-items: start;
}
.sfta-list-col { min-width: 0; }

/* ---- Grid view: 3 cột ---- */
.sfta-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.sfta-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #eef1f5;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
	transition: transform .2s ease, box-shadow .2s ease;
}
.sfta-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15, 23, 42, .12); }

.sfta-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: #eef1f5;
	overflow: hidden;
}
.sfta-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sfta-card-ph {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
	color: #fff;
	font-family: var(--sf-head, 'Space Grotesk', sans-serif);
	font-size: 15px; font-weight: 700;
	text-align: center; line-height: 1.3;
}
.sfta-badge {
	position: absolute; top: 10px; left: 10px;
	display: inline-flex; align-items: center; gap: 5px;
	padding: 5px 10px;
	border-radius: 20px;
	font-size: 11px; font-weight: 700;
	letter-spacing: .2px;
	background: rgba(255, 255, 255, .94);
	color: var(--sf-navy, #0B1C2C);
}
.sfta-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.sfta-badge.is-open { color: #1c8a4e; }
.sfta-badge.is-upcoming { color: #E8724A; }
.sfta-badge.is-ongoing { color: #2f6fb0; }
.sfta-badge.is-ended { color: #7c8798; }
.sfta-fav {
	position: absolute; top: 10px; right: 10px;
	width: 34px; height: 34px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	color: var(--sf-navy, #0B1C2C);
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}
.sfta-fav:hover { background: #fff; }
.sfta-fav.is-fav, .sfta-fav.is-on { color: #e2495b; }

.sfta-card-body { padding: 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.sfta-card-sport {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: 12px; font-weight: 700;
	letter-spacing: .2px;
}
.sfta-card-sport-ic {
	width: 24px; height: 24px; flex: 0 0 24px;
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	color: #fff;
}
.sfta-card-sport-ic svg { stroke: #fff; }
.sfta-card-title {
	margin: 0;
	font-family: var(--sf-head, 'Space Grotesk', sans-serif);
	font-size: 15px; font-weight: 700; line-height: 1.4;
	color: var(--sf-navy, #0B1C2C);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sfta-card-title a { color: inherit; text-decoration: none; }
.sfta-card-title a:hover { color: #1c8a4e; }
.sfta-card-meta {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: 13px; color: #64748b;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sfta-card-meta .sf-ic { flex: 0 0 auto; color: #94a3b8; }
.sfta-card-meta-one { display: flex; }
.sfta-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.sfta-cat {
	padding: 3px 9px;
	border-radius: 20px;
	background: #f1f5f9;
	color: #64748b;
	font-size: 11px; font-weight: 600;
}
.sfta-cat.is-more { background: var(--sf-navy, #0B1C2C); color: #fff; }
.sfta-card-foot {
	margin-top: auto;
	padding-top: 10px;
	display: flex; align-items: center; justify-content: space-between;
	gap: 10px;
}
.sfta-people { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sfta-avs { display: inline-flex; }
.sfta-av {
	width: 20px; height: 20px; border-radius: 50%;
	background-size: cover; background-position: center;
	border: 1.5px solid #fff;
	margin-left: -7px;
	background-color: #dbe3ec;
}
.sfta-av:first-child { margin-left: 0; }
.sfta-people-tx { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sfta-btn {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 8px 13px;
	border-radius: 10px;
	font-family: var(--sf-body, 'Manrope', sans-serif);
	font-size: 12.5px; font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.sfta-btn.is-primary { background: #1c8a4e; color: #fff; }
.sfta-btn.is-primary:hover { background: #166d3e; }
.sfta-btn.is-outline-lime { background: #fff; color: #1c8a4e; border-color: #1c8a4e; }
.sfta-btn.is-outline-lime:hover { background: #1c8a4e; color: #fff; }
.sfta-btn.is-outline-navy { background: #fff; color: var(--sf-navy, #0B1C2C); border-color: var(--sf-navy, #0B1C2C); }
.sfta-btn.is-outline-navy:hover { background: var(--sf-navy, #0B1C2C); color: #fff; }
.sfta-btn.is-outline-gray { background: #fff; color: #7c8798; border-color: #cfd8e3; }
.sfta-btn.is-outline-gray:hover { background: #7c8798; border-color: #7c8798; color: #fff; }

/* ---- List view ---- */
.sfta-grid.is-list { grid-template-columns: 1fr; gap: 14px; }
.sfta-grid.is-list .sfta-card { flex-direction: row; }
.sfta-grid.is-list .sfta-card-media {
	aspect-ratio: auto;
	width: 190px; flex: 0 0 190px;
}
.sfta-grid.is-list .sfta-card-body { padding: 14px 18px; }
.sfta-grid.is-list .sfta-card-foot { padding-top: 8px; }

/* ---- Empty state ---- */
.sfta-empty {
	padding: 48px 20px;
	text-align: center;
	background: #f9fafb;
	border: 1px dashed #dbe3ec;
	border-radius: 14px;
}
.sfta-empty[hidden] { display: none; }
.sfta-empty p { margin: 0 0 6px; color: #475569; font-size: 15px; }
.sfta-empty-sub { color: #94a3b8 !important; font-size: 14px !important; }
.sfta-empty .sfta-btn { margin-top: 12px; }

/* ---- Phân trang ---- */
.sfta-page {
	margin-top: 28px;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.sfta-page .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px;
	padding: 0 10px;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	color: var(--sf-navy, #0B1C2C);
	font-size: 14px; font-weight: 600;
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.sfta-page .page-numbers:hover { border-color: #1c8a4e; color: #1c8a4e; }
.sfta-page .page-numbers.current { background: #1c8a4e; border-color: #1c8a4e; color: #fff; }

/* ---------- SIDEBAR — Bộ lọc nhanh ---------- */
.sfta-side { min-width: 0; }
.sfta-filter-card {
	position: sticky; top: 80px;
	background: #fff;
	border: 1px solid #eef1f5;
	border-radius: 14px;
	box-shadow: 0 2px 14px rgba(15, 23, 42, .06);
	overflow: hidden;
}
.sfta-filter-head {
	padding: 16px;
	border-bottom: 1px solid #eef1f5;
	display: flex; flex-direction: column; gap: 11px;
}
.sfta-filter-ttl {
	margin: 0;
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--sf-head, 'Space Grotesk', sans-serif);
	font-size: 16px; font-weight: 700;
	color: var(--sf-navy, #0B1C2C);
}
.sfta-filter-ttl svg { color: #1c8a4e; }
.sfta-count-btn {
	width: 100%;
	padding: 10px 14px;
	border: 0; border-radius: 10px;
	background: #1c8a4e; color: #fff;
	font-family: var(--sf-body, 'Manrope', sans-serif);
	font-size: 13.5px; font-weight: 700;
	cursor: pointer;
	transition: background-color .18s ease;
}
.sfta-count-btn:hover { background: #166d3e; }
.sfta-count-btn span { font-family: var(--sf-mono, 'DM Mono', monospace); }

.sfta-acc-item { border-bottom: 1px solid #f1f5f9; }
.sfta-acc-item:last-of-type { border-bottom: 0; }
.sfta-acc-sum {
	list-style: none;
	display: flex; align-items: center; justify-content: space-between;
	gap: 8px;
	padding: 13px 16px;
	cursor: pointer;
	font-size: 14px; font-weight: 600;
	color: var(--sf-navy, #0B1C2C);
	transition: color .18s ease;
}
.sfta-acc-sum::-webkit-details-marker { display: none; }
.sfta-acc-sum:hover { color: #1c8a4e; }
.sfta-acc-chev { display: inline-flex; color: #94a3b8; transition: transform .2s ease; }
.sfta-acc-item[open] .sfta-acc-chev { transform: rotate(180deg); }
.sfta-acc-body {
	padding: 0 16px 14px;
	display: flex; flex-direction: column; gap: 9px;
}
.sfta-radio, .sfta-check {
	display: flex; align-items: center; gap: 9px;
	font-size: 13.5px; color: #475569;
	cursor: pointer;
}
.sfta-radio input, .sfta-check input {
	width: 16px; height: 16px;
	accent-color: #1c8a4e;
	cursor: pointer;
	flex: 0 0 auto;
}
.sfta-radio:hover span, .sfta-check:hover span { color: var(--sf-navy, #0B1C2C); }
.sfta-clear {
	display: block;
	width: calc(100% - 32px);
	margin: 4px 16px 16px;
	padding: 9px;
	border: 0; background: transparent;
	color: #94a3b8;
	font-family: var(--sf-body, 'Manrope', sans-serif);
	font-size: 12.5px; font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	transition: color .18s ease;
}
.sfta-clear:hover { color: #e2495b; }

/* ---------- CARD — Tổ chức giải đấu cùng Sportify ---------- */
.sfta-org {
	margin-top: 18px;
	padding: 22px 20px;
	border-radius: 14px;
	background: linear-gradient(150deg, #166d3e 0%, #0f5230 60%, #0B1C2C 100%);
	color: #fff;
	box-shadow: 0 8px 24px rgba(15, 82, 48, .28);
}
.sfta-org-ic {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .14);
	color: var(--sf-lime, #C8F000);
	margin-bottom: 13px;
}
.sfta-org-ttl {
	margin: 0 0 9px;
	font-family: var(--sf-head, 'Space Grotesk', sans-serif);
	font-size: 17px; font-weight: 700; line-height: 1.32;
	color: #fff;
}
.sfta-org-sub {
	margin: 0 0 16px;
	font-size: 13px; line-height: 1.6;
	color: rgba(255, 255, 255, .82);
}
.sfta-org-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	width: 100%;
	padding: 11px 16px;
	border: 1.5px solid rgba(255, 255, 255, .75);
	border-radius: 10px;
	background: transparent;
	color: #fff;
	font-family: var(--sf-body, 'Manrope', sans-serif);
	font-size: 13.5px; font-weight: 700;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.sfta-org-btn:hover { background: #fff; color: #0f5230; border-color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
	.sfta-grid { grid-template-columns: repeat(2, 1fr); }
	.sfta-hero-h1 { font-size: 32px; }
	.sfta-hero-deco { font-size: 25px; }
}
@media (max-width: 900px) {
	/* 2 cột -> 1 cột, sidebar xuống dưới */
	.sfta-main { grid-template-columns: 1fr; gap: 24px; }
	.sfta-filter-card { position: static; top: auto; }
	.sfta-hero { min-height: 280px; }
	.sfta-hero-deco { display: none; }
	.sfta-hero-h1 { font-size: 29px; }
}
@media (max-width: 768px) {
	.sfta-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.sfta-toolbar { flex-direction: column; align-items: stretch; }
	.sfta-toolbar-right { justify-content: space-between; }
	.sfta-search { flex: 1 1 auto; }
	.sfta-sportbar-in { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.sfta-sportbar-in::-webkit-scrollbar { display: none; }
	.sfta-grid.is-list .sfta-card-media { width: 130px; flex: 0 0 130px; }
	.sfta-grid.is-list .sfta-card-body { padding: 12px 14px; }
}
@media (max-width: 480px) {
	.sfta-hero { min-height: 200px; }
	.sfta-hero-in { padding-top: 30px; padding-bottom: 30px; }
	.sfta-hero-h1 { font-size: 24px; }
	.sfta-hero-sub { font-size: 14px; }
	.sfta-hero-label { font-size: 11px; }
	.sfta-grid { grid-template-columns: 1fr; }
	.sfta-grid.is-list .sfta-card { flex-direction: column; }
	.sfta-grid.is-list .sfta-card-media { width: 100%; flex: 0 0 auto; aspect-ratio: 16 / 9; }
	.sfta-sort-label { display: none; }
	.sfta-sort-select { min-width: 96px; }
	.sfta-filter-head { padding: 14px; }
	.sfta-body { padding-bottom: 46px; }
}
