/*
Theme Name: ImpactXI Tactical
Theme URI: https://strongimpact.net
Author: AI Assistant
Description: A modern football analysis platform with tactical field aesthetics.
Version: 2.0.0
*/

/* -------------------------------------------------------------------------- */
/*	1. VARIABLES & PALETTE
/* -------------------------------------------------------------------------- */
:root {
	/* -- PALETTE: NIGHT PITCH -- */
	--c-bg: #0b1215;         /* Deepest dark green-black */
	--c-surface: #131c21;    /* Slightly lighter panel bg */
	
	/* -- ACCENTS -- */
	--c-accent: #39ff14;     /* Neon Pitch Green */
	--c-highlight: #facc15;  /* Referee Yellow / Warning */
	--c-text: #f0fdf4;       /* White with slight green tint */
	--c-text-muted: #94a3b8;
	
	/* -- BORDERS -- */
	--border-thin: 1px solid rgba(57, 255, 20, 0.15); /* Greenish tech border */
	--border-active: 1px solid var(--c-accent);

	/* -- TYPOGRAPHY -- */
	--font-head: 'Chakra Petch', sans-serif;
	--font-body: 'Sarabun', sans-serif;
	
	/* -- SPACING -- */
	--container: 1440px;
	--gap-grid: 2rem;
	--header-h: 90px;
}

/* -------------------------------------------------------------------------- */
/*	2. RESET & BASE
/* -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
	background-color: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 600;
	text-transform: uppercase;
	margin: 0 0 1rem 0;
	line-height: 1.1;
	letter-spacing: 0.02em;
	color: #fff;
}

a { 
	color: inherit; 
	text-decoration: none; 
	transition: all 0.3s ease; 
}

img { max-width: 100%; display: block; height: auto; }

/* -------------------------------------------------------------------------- */
/*	3. UTILITIES & LAYOUT
/* -------------------------------------------------------------------------- */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 2rem;
	width: 100%;
}

.btn-pitch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 35px;
	background: var(--c-accent);
	color: #000;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	border: none;
	clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
	transition: transform 0.2s, filter 0.2s;
}

.btn-pitch:hover {
	transform: translateY(-2px);
	filter: brightness(1.1);
	box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

/* -------------------------------------------------------------------------- */
/*	4. HEADER
/* -------------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: var(--header-h);
	z-index: 999;
	display: flex;
	align-items: center;
	background: rgba(11, 18, 21, 0.95);
	backdrop-filter: blur(8px);
	border-bottom: var(--border-thin);
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	gap: 2rem;
}

.brand-logo {
	font-family: var(--font-head);
	font-size: 2.2rem;
	font-weight: 700;
	color: #fff;
	font-style: italic;
	flex-shrink: 0;
}

.brand-logo span { color: var(--c-accent); }

.main-nav ul {
	display: flex;
	gap: 2.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.main-nav a {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--c-text-muted);
	text-transform: uppercase;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
	color: var(--c-accent);
}

/* -------------------------------------------------------------------------- */
/*	5. HERO SECTION
/* -------------------------------------------------------------------------- */
.hero-section {
	padding: calc(var(--header-h) + 6rem) 0 8rem;
	position: relative;
	min-height: 85vh;
	display: flex;
	align-items: center;
	border-bottom: var(--border-thin);
	background: url('banner.jpg') no-repeat center center/cover;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(90deg, rgba(11,18,21,0.95) 0%, rgba(11,18,21,0.7) 50%, rgba(11,18,21,0.4) 100%);
	z-index: 1;
}

/* Field Markings Overlay */
.pitch-lines {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	z-index: 1;
	pointer-events: none;
	opacity: 0.1;
	background-image: 
		linear-gradient(var(--c-accent) 1px, transparent 1px),
		linear-gradient(90deg, var(--c-accent) 1px, transparent 1px);
	background-size: 150px 150px;
}

.hero-content {
	max-width: 800px;
	position: relative;
	z-index: 2;
}

.hero-label {
	display: inline-block;
	background: rgba(57, 255, 20, 0.1);
	color: var(--c-accent);
	padding: 5px 15px;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	border-left: 3px solid var(--c-accent);
}

.hero-title {
	font-size: clamp(3.5rem, 7vw, 6.5rem);
	line-height: 0.9;
	margin-bottom: 2rem;
	text-transform: uppercase;
	font-style: italic;
}

/* -------------------------------------------------------------------------- */
/*	6. SECTIONS (About & Categories)
/* -------------------------------------------------------------------------- */
.about-pitch-block {
	padding: 6rem 0;
	background: var(--c-surface);
	border-bottom: var(--border-thin);
}

.about-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 4rem;
	align-items: center;
}

.about-text h2 {
	font-size: 2.5rem;
	color: var(--c-accent);
	margin-bottom: 1.5rem;
}

.stat-row {
	display: flex;
	gap: 3rem;
	margin-top: 3rem;
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 2rem;
}

.stat-item strong {
	display: block;
	font-size: 2.5rem;
	font-family: var(--font-head);
	color: #fff;
	line-height: 1;
}

.stat-item span {
	font-size: 0.85rem;
	text-transform: uppercase;
	color: var(--c-text-muted);
}

/* Tactical Categories */
.tactics-block {
	padding: 6rem 0;
}

.tactics-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.tactic-card {
	background: var(--c-surface);
	padding: 2.5rem;
	border: var(--border-thin);
	transition: 0.3s;
	position: relative;
	overflow: hidden;
}

.tactic-card::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; width: 100%; height: 3px;
	background: var(--c-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s;
}

.tactic-card:hover {
	transform: translateY(-5px);
}

.tactic-card:hover::after {
	transform: scaleX(1);
}

.tactic-title {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.tactic-count {
	font-size: 0.9rem;
	color: var(--c-highlight);
	font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/*	7. POST GRID (Lineup Cards)
/* -------------------------------------------------------------------------- */
.feed-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 3rem;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	padding-bottom: 1rem;
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: var(--gap-grid);
	padding-bottom: 4rem;
}

.match-card {
	background: #1a2329;
	border-radius: 4px;
	overflow: hidden;
	transition: transform 0.3s;
	display: flex;
	flex-direction: column;
}

.match-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.match-thumb {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
}

.match-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.match-card:hover .match-thumb img {
	transform: scale(1.05);
}

.match-body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.match-meta {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	color: var(--c-text-muted);
	margin-bottom: 0.8rem;
}

.match-cat { color: var(--c-accent); font-weight: 600; }

.match-title {
	font-size: 1.4rem;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.match-excerpt {
	font-size: 0.95rem;
	color: #adb5bd;
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.match-link {
	align-self: flex-start;
	font-size: 0.9rem;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 5px;
}

.match-link:hover { color: var(--c-accent); }

/* -------------------------------------------------------------------------- */
/*	7.5 PAGINATION
/* -------------------------------------------------------------------------- */
.pagination-wrap {
	display: flex;
	justify-content: center;
	padding-top: 2rem;
	padding-bottom: 6rem;
}

.pagination-wrap ul {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 10px;
}

.pagination-wrap li {
	margin: 0;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	border: 1px solid rgba(57, 255, 20, 0.2);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1.1rem;
	transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
	background: var(--c-accent);
	color: #000;
	border-color: var(--c-accent);
	box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.page-numbers.dots {
	border: none;
	color: var(--c-text-muted);
}

/* -------------------------------------------------------------------------- */
/*	8. FOOTER
/* -------------------------------------------------------------------------- */
.site-footer {
	background: #080c0e;
	padding: 5rem 0;
	border-top: var(--border-thin);
}

.footer-inner {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.footer-contacts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
}

.footer-item h4 {
	font-size: 0.9rem;
	color: var(--c-text-muted);
	margin-bottom: 1rem;
}

.footer-item p {
	font-size: 1.1rem;
	color: #fff;
	font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/*	9. RESPONSIVE
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
	:root { --header-h: 80px; }
	
	.header-inner { flex-direction: column; gap: 1rem; padding: 1rem 0; }
	.site-header { height: auto; }
	.main-nav ul { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
	
	.hero-section { padding-top: 2rem; }
	.hero-title { font-size: 3rem; }
	
	.about-grid, .tactics-grid { grid-template-columns: 1fr; }
}
