/*
Theme Name: Headlines
Description: Bold, high-energy news/headlines theme: big featured story, card grid, category badges, dark header and footer.
Version: 2.3
Requires at least: 5.0
Requires PHP: 5.6
Author: You
License: GPL-2.0-or-later
Text Domain: headlines
*/

:root {
	--ink: #0b1220;
	--ink-2: #141d2e;
	--accent: #00c2ff;
	--accent-2: #6a5cff;
	--hot: #ff3d71;
	--bg: #f3f6fb;
	--card: #ffffff;
	--text: #1d2433;
	--muted: #6b7489;
	--radius: 14px;
	--display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
	--body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
	position: relative;
	background:
		radial-gradient(900px 300px at 85% -40%, rgba(0,194,255,.35), transparent 60%),
		radial-gradient(700px 300px at 10% 140%, rgba(106,92,255,.35), transparent 60%),
		var(--ink);
	color: #fff;
	padding: 34px 0 30px;
	overflow: hidden;
}
.site-header::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
	background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--hot));
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-title {
	margin: 0;
	font-family: var(--display);
	font-weight: 400;
	font-size: 52px;
	line-height: 1;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.site-title a:hover { color: var(--accent); }
.site-description {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: #b9c6dd;
}
.site-description::before {
	content: ""; width: 9px; height: 9px; border-radius: 50%;
	background: var(--hot);
	box-shadow: 0 0 0 4px rgba(255,61,113,.25);
	animation: pulse 1.8s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,61,113,0); } }

/* Menu (shows only if a menu is assigned under Appearance → Menus) */
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.site-nav a {
	display: block;
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 14px; font-weight: 600;
	color: #dfe7f5;
	border: 1px solid rgba(255,255,255,.14);
	transition: .2s;
}
.site-nav a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ---------- Main ---------- */
.site-main { padding: 40px 0 20px; }

.section-label {
	display: flex; align-items: center; gap: 14px;
	margin: 46px 0 22px;
	font-family: var(--display);
	font-size: 28px; font-weight: 400;
	letter-spacing: 1px; text-transform: uppercase;
	color: var(--ink);
}
.section-label::after { content: ""; flex: 1; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); border-radius: 3px; }

/* Category badges */
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cats a {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 11px; font-weight: 800;
	letter-spacing: 1.2px; text-transform: uppercase;
	background: rgba(0,194,255,.12);
	color: #0077a8;
	transition: .2s;
}
.cats a:hover { background: var(--accent); color: var(--ink); }

.date { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Featured story ---------- */
.featured {
	position: relative;
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	min-height: 400px;
	border-radius: 20px;
	overflow: hidden;
	background: var(--ink);
	color: #fff;
	box-shadow: 0 25px 60px -25px rgba(11,18,32,.55);
}
.featured-media { position: relative; overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.featured:hover .featured-media img { transform: scale(1.05); }
.featured-body { padding: 44px 42px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.featured .tag-hot {
	align-self: flex-start;
	padding: 5px 12px; border-radius: 6px;
	background: var(--hot); color: #fff;
	font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}
.featured .entry-title {
	margin: 0;
	font-family: var(--display);
	font-weight: 400;
	font-size: 46px; line-height: 1.05;
	text-transform: uppercase; letter-spacing: .5px;
}
.featured .entry-title a:hover { color: var(--accent); }
.featured .date { color: #9fb0cc; }
.featured .cats a { background: rgba(255,255,255,.1); color: #fff; }
.featured .cats a:hover { background: var(--accent); color: var(--ink); }
.featured .entry-summary { color: #c9d4e6; font-size: 17px; }
.featured .entry-summary p { margin: 0; }

/* ---------- Card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card {
	display: flex; flex-direction: column;
	background: var(--card);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px -12px rgba(16,24,40,.18);
	transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -18px rgba(16,24,40,.35); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.06); }

/* When a post has no featured image, show a colorful block with its first letter */
.placeholder {
	width: 100%; height: 100%;
	display: grid; place-items: center;
	font-family: var(--display);
	text-transform: uppercase;
	font-size: 96px; color: rgba(255,255,255,.9);
	background: #000;
}
.featured .placeholder { font-size: 180px; }

.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .entry-title { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: -.3px; color: var(--ink); }
.card .entry-title a:hover { color: #0077a8; }
.card .entry-summary { color: #4a5368; font-size: 15px; }
.card .entry-summary p { margin: 0; }

.read-more {
	margin-top: auto;
	align-self: flex-start;
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 14px; font-weight: 800;
	color: var(--ink);
	padding-top: 6px;
}
.read-more span { transition: transform .2s; }
.read-more:hover { color: #0077a8; }
.read-more:hover span { transform: translateX(5px); }
.featured .read-more {
	margin-top: 6px;
	padding: 13px 24px; border-radius: 999px;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	color: #fff;
	box-shadow: 0 10px 24px -10px rgba(0,194,255,.8);
}
.featured .read-more:hover { color: #fff; filter: brightness(1.1); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: space-between; gap: 12px; margin: 44px 0 10px; }
.pagination a {
	display: inline-block;
	padding: 14px 26px;
	border-radius: 999px;
	background: var(--ink); color: #fff;
	font-weight: 800; font-size: 14px; letter-spacing: .5px;
	transition: .2s;
}
.pagination a:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); }

/* ---------- Single post / page ---------- */
.single-wrap {
	max-width: 780px; margin: 0 auto;
	background: var(--card);
	border-radius: 20px;
	padding: 48px 52px;
	box-shadow: 0 8px 30px -14px rgba(16,24,40,.25);
}
.single-wrap .entry-title {
	margin: 12px 0 8px;
	font-family: var(--display); font-weight: 400;
	font-size: 48px; line-height: 1.05; text-transform: uppercase;
	color: var(--ink);
}
.single-hero { border-radius: 14px; overflow: hidden; margin: 24px 0; }
.entry-content { font-size: 18px; }
.entry-content h2, .entry-content h3 { color: var(--ink); line-height: 1.25; }
.entry-content a { color: #0077a8; text-decoration: underline; }
.entry-content blockquote { margin: 24px 0; padding: 6px 22px; border-left: 4px solid var(--accent); color: #3b4458; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer {
	margin-top: 60px;
	background: var(--ink);
	color: #8fa0bd;
	text-align: center;
	padding: 40px 0;
	font-size: 14px;
	position: relative;
}
.site-footer::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
	background: linear-gradient(90deg, var(--hot), var(--accent-2), var(--accent));
}
.footer-title { font-family: var(--display); font-size: 26px; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.grid { grid-template-columns: repeat(2, 1fr); }
	.featured { grid-template-columns: 1fr; }
	.featured-media { aspect-ratio: 16 / 9; }
	.featured .entry-title { font-size: 38px; }
}
@media (max-width: 620px) {
	.wrap { padding: 0 16px; }
	.site-title { font-size: 38px; }
	.grid { grid-template-columns: 1fr; }
	.featured-body { padding: 28px 24px; }
	.featured .entry-title { font-size: 32px; }
	.single-wrap { padding: 28px 22px; }
	.single-wrap .entry-title { font-size: 36px; }
}
