/*
Theme Name: HitzBaze
Theme URI: https://www.hitzbaze.com
Author: Postboss
Description: SEO-optimized, mobile-first theme for HitzBaze — African music charts, trends and entertainment. Built to pair with the HitzBaze Core plugin (required for chart/song/artist data); works with either live API data or manually-entered data.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hitzbaze
*/

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #111;
	background: #fff;
	line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1a56db; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; }
.hb-container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- Header ---------- */
.hb-site-header {
	background: #0a0a0a;
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 50;
}
.hb-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
}
.hb-logo {
	font-size: 22px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
}
.hb-logo span { color: #1a56db; }
.hb-main-nav ul {
	list-style: none;
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
}
.hb-main-nav a {
	color: #eee;
	font-weight: 600;
	font-size: 14px;
}
.hb-mobile-toggle {
	display: none;
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}
@media (max-width: 720px) {
	.hb-main-nav { display: none; width: 100%; }
	.hb-main-nav.hb-open { display: block; }
	.hb-main-nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
	.hb-main-nav li { border-top: 1px solid #222; }
	.hb-main-nav a { display: block; padding: 12px 16px; }
	.hb-mobile-toggle { display: block; }
	.hb-header-inner { flex-wrap: wrap; }
}

/* ---------- Hero / homepage sections ---------- */
.hb-hero {
	background: linear-gradient(135deg, #0a0a0a, #131b33);
	color: #fff;
	padding: 48px 16px;
	text-align: center;
}
.hb-hero h1 { font-size: 32px; margin-bottom: 4px; }
.hb-hero-tagline { color: #fff; font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.hb-hero p { color: #ccc; max-width: 600px; margin: 0 auto; }
.hb-section { padding: 32px 0; border-bottom: 1px solid #eee; }
.hb-section-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.hb-section-title h2 { font-size: 20px; }
.hb-see-all { font-size: 13px; font-weight: 600; }

/* ---------- Chart list (shared across homepage, chart pages) ---------- */
.hb-chart-list { list-style: none; margin: 0; padding: 0; }
.hb-chart-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}
.hb-rank { font-weight: 800; min-width: 32px; color: #1a56db; font-size: 16px; }
.hb-artwork { border-radius: 6px; object-fit: cover; flex-shrink: 0; width: 52px; height: 52px; }
.hb-meta { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.hb-title { font-weight: 700; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-artist-name { color: #666; font-size: 13px; }
.hb-movement { font-weight: 700; font-size: 13px; white-space: nowrap; min-width: 40px; text-align: right; }
.hb-movement-new { color: #1a56db; }
.hb-movement-same { color: #999; }
.hb-chart-meta-footer { margin-top: 10px; font-size: 12px; color: #888; }
.hb-empty-state { padding: 24px; background: #f7f7f8; border-radius: 8px; text-align: center; color: #555; }
.hb-coming-soon { border: 1px dashed #ccc; background: #fafafa; }
.hb-market-tag {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 8px;
	background: #eef2ff;
	color: #1a56db;
	font-size: 11px;
	font-weight: 700;
	vertical-align: middle;
}

/* ---------- Explore Charts grid ---------- */
.hb-explore-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}
.hb-explore-card {
	display: block;
	padding: 16px;
	background: #f7f7f8;
	border-radius: 8px;
	font-weight: 700;
	color: #111;
	text-align: center;
}
.hb-explore-card:hover { background: #eef2ff; color: #1a56db; text-decoration: none; }

/* ---------- Follow / Stay Updated ---------- */
.hb-follow-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hb-follow-link {
	padding: 10px 16px;
	border-radius: 20px;
	background: #0a0a0a;
	color: #fff;
	font-weight: 600;
	font-size: 13px;
}
.hb-follow-link:hover { background: #1a56db; text-decoration: none; }

/* ---------- Story / DJ Mix single content ---------- */
.hb-entry-content { line-height: 1.7; margin: 16px 0; }
.hb-entry-content p { margin-bottom: 14px; }
.hb-tracklist { padding-left: 20px; line-height: 1.8; }
.hb-mix-list .hb-artwork { border-radius: 4px; }
.hb-pagination { margin: 24px 0; text-align: center; }
.hb-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 3px;
	border-radius: 6px;
	background: #f7f7f8;
	color: #111;
}
.hb-pagination .page-numbers.current { background: #1a56db; color: #fff; }

/* ---------- Song / artist detail ---------- */
.hb-detail-header { display: flex; gap: 20px; align-items: flex-start; margin: 20px 0; flex-wrap: wrap; }
.hb-detail-art { border-radius: 10px; width: 180px; height: 180px; object-fit: cover; }
.hb-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: #eef2ff; color: #1a56db; margin-right: 6px; }
.hb-position-grid { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.hb-position-card { background: #f7f7f8; border-radius: 8px; padding: 12px 18px; text-align: center; min-width: 100px; }
.hb-position-card strong { display: block; font-size: 22px; color: #1a56db; }
.hb-history-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.hb-history-table th, .hb-history-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; font-size: 14px; }
.hb-analysis-box { background: #f0f6ff; border-left: 4px solid #1a56db; padding: 14px 18px; border-radius: 4px; margin: 16px 0; }

/* ---------- Breadcrumbs ---------- */
.hb-breadcrumbs { font-size: 13px; color: #777; margin: 12px 0; }
.hb-breadcrumbs a { color: #777; }

/* ---------- Footer ---------- */
.hb-site-footer { background: #0a0a0a; color: #ccc; margin-top: 40px; padding: 30px 0 20px; font-size: 14px; }
.hb-footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.hb-footer-links a { color: #ccc; }
.hb-footer-copy { color: #777; font-size: 12px; }

/* ---------- Ad slot spacing ---------- */
.hb-ad-slot { margin: 20px 0; text-align: center; overflow: hidden; }

/* ---------- 404 / search ---------- */
.hb-404 { text-align: center; padding: 60px 16px; }
.hb-search-form { display: flex; gap: 8px; max-width: 480px; margin: 20px auto; }
.hb-search-form input[type="search"] { flex-grow: 1; padding: 10px 14px; border: 1px solid #ddd; border-radius: 6px; }
.hb-search-form button { padding: 10px 18px; background: #1a56db; color: #fff; border: none; border-radius: 6px; cursor: pointer; }

@media (max-width: 480px) {
	.hb-detail-header { flex-direction: column; align-items: center; text-align: center; }
}
