/*
Theme Name: IceCreek Tactical
Theme URI: https://icecreek.hockey
Author: AI Assistant
Description: A high-performance, award-winning "Tactical HUD" theme for hockey intelligence.
Version: 1.0.0
*/

/* -------------------------------------------------------------------------- */
/*	1. VARIABLES & SETUP
/* -------------------------------------------------------------------------- */
:root {
	/* -- PALETTE: DEEP ICE -- */
	--c-bg: #050a14;
	--c-surface: #0f172a;
	--c-surface-glass: rgba(15, 23, 42, 0.7);
	
	/* -- ACCENTS -- */
	--c-accent: #00f0ff; /* Ice Cyan - Tech lines */
	--c-danger: #ef4444; /* Heatmap Red - CTAs */
	--c-text: #e2e8f0;   /* Off-white text */
	--c-text-muted: #94a3b8;
	
	/* -- BORDERS -- */
	--border-thin: 1px solid rgba(255, 255, 255, 0.1);
	--border-active: 1px solid var(--c-accent);

	/* -- TYPOGRAPHY -- */
	--font-head: 'Teko', sans-serif;
	--font-body: 'Roboto Mono', monospace;
	
	/* -- SPACING -- */
	--container: 1440px;
	--gap-grid: 2rem;
	--header-h: 100px;
}

/* -------------------------------------------------------------------------- */
/*	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: 500;
	text-transform: uppercase;
	margin: 0 0 1rem 0;
	line-height: 0.9;
	letter-spacing: 0.05em;
	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-tactical {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 30px;
	background: transparent;
	border: 1px solid var(--c-accent);
	color: var(--c-accent);
	font-family: var(--font-head);
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	position: relative;
	overflow: hidden;
	z-index: 1;
}

.btn-tactical::before {
	content: '';
	position: absolute;
	top: 0; left: 0; width: 0%; height: 100%;
	background: var(--c-accent);
	transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: -1;
}

.btn-tactical:hover {
	color: var(--c-bg);
}

.btn-tactical:hover::before {
	width: 100%;
}

/* -------------------------------------------------------------------------- */
/*	4. HEADER (Split & Floating)
/* -------------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: var(--header-h);
	z-index: 999;
	display: flex;
	align-items: center;
	background: linear-gradient(to bottom, rgba(5,10,20,0.9), rgba(5,10,20,0));
	backdrop-filter: blur(5px);
	border-bottom: var(--border-thin);
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	gap: 2rem; /* Safe gap between Logo and Nav */
}

.logo {
	font-family: var(--font-head);
	font-size: 2.5rem;
	font-weight: 700;
	color: #fff;
	z-index: 10;
	white-space: nowrap; /* Prevent logo breaking */
	flex-shrink: 0; /* Never shrink logo */
}

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

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

.main-nav a {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--c-text-muted);
	position: relative;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
	color: #fff;
}

.main-nav a::after {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	background: var(--c-danger);
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%) scale(0);
	transition: transform 0.2s;
}

.main-nav a:hover::after {
	transform: translateX(-50%) scale(1);
}

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

/* Add Overlay to Ensure Text Readability */
.hero-section::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(5, 10, 20, 0.85); /* Deep dark overlay */
	z-index: 1;
}

/* Background grid effect - move z-index up but below content */
.bg-grid-lines {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background-image: 
		linear-gradient(var(--border-thin) 1px, transparent 1px),
		linear-gradient(90deg, var(--border-thin) 1px, transparent 1px);
	background-size: 100px 100px;
	opacity: 0.2;
	z-index: 1; /* Above overlay */
	pointer-events: none;
}

.hero-content {
	max-width: 900px;
	position: relative;
	z-index: 2; /* Above everything */
}

.hero-subtitle {
	color: var(--c-accent);
	font-size: 1.1rem;
	letter-spacing: 4px;
	margin-bottom: 1.5rem;
	display: block;
}

.hero-title {
	font-size: clamp(3rem, 8vw, 7rem);
	line-height: 0.85;
	margin-bottom: 3rem;
	text-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

/* -------------------------------------------------------------------------- */
/*	5.5. NEW BLOCKS (Mission & Sectors)
/* -------------------------------------------------------------------------- */
.mission-block {
	padding: 6rem 0;
	background: linear-gradient(135deg, var(--c-surface) 0%, var(--c-bg) 100%);
	border-bottom: var(--border-thin);
}

.mission-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.mission-visual {
	position: relative;
	height: 400px;
	border: 1px solid var(--c-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.tech-circle {
	width: 200px; height: 200px;
	border: 2px dashed var(--c-accent);
	border-radius: 50%;
	animation: spin 10s linear infinite;
}

.tech-line {
	position: absolute;
	width: 100%;
	height: 1px;
	background: var(--c-danger);
	top: 50%;
	opacity: 0.5;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.mission-lead {
	font-size: 1.4rem;
	line-height: 1.5;
	color: #fff;
	margin-bottom: 2rem;
}

.mission-list {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 2rem;
}

.mission-list li {
	padding-left: 1.5rem;
	position: relative;
	color: var(--c-accent);
	font-family: var(--font-head);
	font-size: 1.1rem;
}

.mission-list li::before {
	content: '>';
	position: absolute;
	left: 0;
	color: var(--c-danger);
}

.sectors-block {
	padding: 6rem 0;
	border-bottom: var(--border-thin);
}

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

.sector-card {
	border: 1px solid rgba(255,255,255,0.1);
	padding: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: all 0.3s;
	background: var(--c-surface);
}

.sector-card:hover {
	border-color: var(--c-danger);
	transform: translateY(-5px);
}

.sector-icon {
	width: 50px;
	height: 50px;
	background: var(--c-accent);
	margin-bottom: 1.5rem;
	mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="black" xmlns="http://www.w3.org/2000/svg"><path d="M12 2L2 7l10 5 10-5-10-5zm0 9l2.5-1.25L12 12.25 9.5 9.75 12 11zm0 2.5l-5-2.5-5 2.5L12 22l10-8.5-5-2.5-5 2.5z"/></svg>') no-repeat center;
	-webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="black" xmlns="http://www.w3.org/2000/svg"><path d="M12 2L2 7l10 5 10-5-10-5zm0 9l2.5-1.25L12 12.25 9.5 9.75 12 11zm0 2.5l-5-2.5-5 2.5L12 22l10-8.5-5-2.5-5 2.5z"/></svg>') no-repeat center;
}

.sector-title {
	font-size: 1.8rem;
	margin-bottom: 0.5rem;
	color: #fff;
}

.sector-count {
	font-size: 0.8rem;
	color: var(--c-text-muted);
	letter-spacing: 2px;
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/*	6. POST GRID (Tactical Cards)
/* -------------------------------------------------------------------------- */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: var(--gap-grid);
	padding: 4rem 0;
}

.post-card {
	background: var(--c-surface);
	border: var(--border-thin);
	position: relative;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s, border-color 0.3s;
	overflow: hidden;
}

.post-card:hover {
	border-color: var(--c-accent);
	transform: translateY(-5px);
	box-shadow: 0 10px 30px -10px rgba(0, 240, 255, 0.15);
}

/* Image Wrapper */
.card-media {
	position: relative;
	aspect-ratio: 4/3;
	overflow: hidden;
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
	filter: grayscale(20%);
}

.post-card:hover .card-media img {
	transform: scale(1.05);
	filter: grayscale(0%);
}

.card-body {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.card-meta {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	color: var(--c-text-muted);
	margin-bottom: 1rem;
	border-bottom: 1px solid rgba(255,255,255,0.05);
	padding-bottom: 0.5rem;
}

.card-cat { color: var(--c-accent); text-transform: uppercase; }

.card-title {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.card-excerpt {
	font-size: 0.95rem;
	color: #cbd5e1;
	margin-bottom: 2rem;
	flex-grow: 1;
}

.card-footer {
	margin-top: auto;
}

.read-more {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--c-text);
	text-transform: uppercase;
	letter-spacing: 1px;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.read-more:hover { color: var(--c-danger); }

/* Placeholder Pattern */
.placeholder-img {
	width: 100%;
	height: 100%;
	background-color: var(--c-surface);
	background-image: 
		repeating-linear-gradient(45deg, 
			rgba(255,255,255,0.03) 0, 
			rgba(255,255,255,0.03) 1px, 
			transparent 0, 
			transparent 50%
		);
	background-size: 20px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--c-text-muted);
	font-family: var(--font-head);
	font-size: 2rem;
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/*	7. PAGINATION (Solid Rock)
/* -------------------------------------------------------------------------- */
.pagination-wrap {
	padding: 4rem 0;
	border-top: var(--border-thin);
	display: flex;
	justify-content: center;
}

.pagination-wrap ul {
	display: flex;
	padding: 0;
	margin: 0;
	list-style: none; /* Removed dots */
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin: 0 5px;
	border: 1px solid rgba(255,255,255,0.2);
	color: var(--c-text);
	font-family: var(--font-body);
	font-weight: 700;
	transition: all 0.2s;
	text-decoration: none; /* Ensure no underline */
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--c-text);
	color: var(--c-bg);
	border-color: var(--c-text);
}

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

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

.footer-contacts h4 {
	color: var(--c-text-muted);
	font-size: 0.85rem;
	margin-bottom: 2rem;
}

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

.contact-item span {
	display: block;
	font-size: 0.8rem;
	color: var(--c-text-muted);
	margin-bottom: 0.5rem;
	text-transform: uppercase;
}

.contact-item strong {
	display: block;
	font-size: 1.2rem;
	font-family: var(--font-body);
	color: #fff;
}

/* -------------------------------------------------------------------------- */
/*	9. RESPONSIVE
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
	:root { --header-h: 80px; }
	
	.header-inner {
		flex-direction: column;
		gap: 1rem;
		padding: 1rem 0;
	}
	
	.site-header { height: auto; position: relative; }
	
	.main-nav ul { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
	
	/* Reset Hero padding because header is relative now */
	.hero-section {
		padding-top: 4rem; 
		min-height: 60vh;
	}
	
	.hero-title { font-size: 3.5rem; }
	
	.contact-grid { grid-template-columns: 1fr; }

	/* New Blocks Responsive */
	.mission-grid, .sectors-grid {
		grid-template-columns: 1fr;
	}

	.mission-visual {
		height: 250px;
	}
}
