/*
Theme Name: Helix Box
Theme URI: https://helixbox.net
Author: Helix Box
Author URI: https://helixbox.net
Description: A dark, green-accented Xbox news portal theme — featured stories, latest news, reviews with scores, videos, Game Pass, a release calendar, deals and a community hub. Self-contained: custom content types, an automatic view counter (Most Read), an AJAX poll and a newsletter capture, no plugins required.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: helixbox
Tags: news, magazine, blog, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* =========================================================================
   1. Tokens
   ========================================================================= */
:root {
	/* Accent (overridden by the Customizer in wp_head). */
	--hb-accent: #6fbf1a;
	--hb-accent-2: #4e9e0e;
	--hb-accent-glow: rgba(111, 191, 26, .45);
	--hb-accent-soft: rgba(111, 191, 26, .14);

	/* Chrome — header & footer stay dark in both schemes. */
	--hb-chrome-bg: #0a0b0d;
	--hb-chrome-2: #131519;
	--hb-chrome-3: #1a1d22;
	--hb-chrome-border: #25282e;
	--hb-chrome-text: #e9ebee;
	--hb-chrome-muted: #9aa0a8;

	/* Content surfaces (dark scheme defaults). */
	--hb-bg: #0c0d10;
	--hb-bg-grad: radial-gradient(1200px 600px at 70% -5%, rgba(111, 191, 26, .07), transparent 60%);
	--hb-surface: #15171b;
	--hb-surface-2: #1b1e23;
	--hb-border: #25282e;
	--hb-border-2: #30343b;
	--hb-text: #e9ebee;
	--hb-muted: #9aa0a8;
	--hb-faint: #6c727a;

	--hb-warn: #f0a808;
	--hb-bad: #e0473b;

	--hb-radius: 12px;
	--hb-radius-sm: 9px;
	--hb-maxw: 1200px;
	--hb-gap: 22px;
	--hb-font: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="light"] {
	--hb-bg: #eef0f3;
	--hb-bg-grad: radial-gradient(1200px 600px at 70% -5%, rgba(111, 191, 26, .10), transparent 55%);
	--hb-surface: #ffffff;
	--hb-surface-2: #f3f5f7;
	--hb-border: #e2e5ea;
	--hb-border-2: #d3d8df;
	--hb-text: #14171b;
	--hb-muted: #586069;
	--hb-faint: #8b929b;
}

/* =========================================================================
   2. Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--hb-font);
	background-color: var(--hb-bg);
	background-image: var(--hb-bg-grad);
	background-repeat: no-repeat;
	color: var(--hb-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--hb-accent); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

.hb-container { max-width: var(--hb-maxw); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
	left: 8px; top: 8px; z-index: 1000; background: var(--hb-accent); color: #06210a;
	padding: 10px 16px; border-radius: 8px; font-weight: 700;
}

.hb-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Placeholder media */
.hb-ph {
	display: grid; place-items: center; width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--hb-surface-2), var(--hb-surface));
	color: var(--hb-faint);
}
.hb-ph svg { width: 38%; max-width: 60px; opacity: .5; }
.hb-ph--hero svg { max-width: 90px; }

/* =========================================================================
   3. Buttons & atoms
   ========================================================================= */
.hb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: linear-gradient(180deg, var(--hb-accent), var(--hb-accent-2));
	color: #06210a; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: 13px;
	border: 0; border-radius: 8px; padding: 11px 18px; cursor: pointer; transition: filter .15s, transform .15s;
}
.hb-btn:hover { filter: brightness(1.08); color: #06210a; }
.hb-btn:active { transform: translateY(1px); }
.hb-btn--block { width: 100%; }
.hb-btn--outline {
	background: transparent; color: var(--hb-accent);
	border: 1px solid var(--hb-accent); box-shadow: inset 0 0 0 1px transparent;
}
.hb-btn--outline:hover { background: var(--hb-accent-soft); color: var(--hb-accent); filter: none; }

.hb-badge {
	display: inline-block; background: var(--hb-accent); color: #06210a;
	font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	padding: 4px 9px; border-radius: 5px; line-height: 1;
}
.hb-badge--feature { box-shadow: 0 6px 18px var(--hb-accent-glow); }
.hb-badge--status.is-available { background: var(--hb-accent); }
.hb-badge--status.is-coming { background: #2b8fe0; color: #03121f; }
.hb-badge--status.is-leaving { background: var(--hb-warn); color: #2a1d00; }

.hb-platform {
	display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 6px;
	background: var(--hb-accent-soft); color: var(--hb-accent); border: 1px solid var(--hb-accent);
	border-radius: 5px; font-size: 11px; font-weight: 800; letter-spacing: .04em;
}

.hb-i { width: 15px; height: 15px; flex: 0 0 auto; }

/* =========================================================================
   4. Top bar
   ========================================================================= */
.hb-topbar { background: var(--hb-chrome-bg); border-bottom: 1px solid var(--hb-chrome-border); font-size: 12.5px; }
.hb-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }

.hb-ticker { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: var(--hb-chrome-muted); }
.hb-ticker__label { color: var(--hb-accent); font-weight: 800; letter-spacing: .06em; flex: 0 0 auto; }
.hb-ticker__viewport { position: relative; height: 20px; overflow: hidden; flex: 1; min-width: 0; }
.hb-ticker__track { list-style: none; margin: 0; padding: 0; }
.hb-ticker__track li {
	position: absolute; inset: 0; opacity: 0; transform: translateY(100%);
	transition: opacity .4s, transform .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hb-ticker__track li.is-active { opacity: 1; transform: translateY(0); }
.hb-ticker__track a { color: var(--hb-chrome-text); }
.hb-ticker__track a:hover { color: var(--hb-accent); }

.hb-topbar__actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.hb-social { display: flex; align-items: center; gap: 4px; }
.hb-social__link {
	display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: var(--hb-chrome-muted);
	transition: background .15s, color .15s;
}
.hb-social__link svg { width: 16px; height: 16px; fill: currentColor; }
.hb-social__link:hover { background: var(--hb-chrome-3); color: var(--hb-accent); }

.hb-icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: none; color: var(--hb-chrome-muted); border-radius: 7px; cursor: pointer; }
.hb-icon-btn svg { width: 17px; height: 17px; }
.hb-icon-btn:hover { background: var(--hb-chrome-3); color: var(--hb-accent); }

.hb-search-panel { background: var(--hb-chrome-2); border-bottom: 1px solid var(--hb-chrome-border); padding: 14px 0; }
.hb-searchform { display: flex; gap: 8px; max-width: 620px; margin: 0 auto; }
.hb-searchform__input {
	flex: 1; background: var(--hb-chrome-bg); border: 1px solid var(--hb-chrome-border); color: var(--hb-chrome-text);
	border-radius: 8px; padding: 11px 14px; font-size: 15px;
}
.hb-searchform__input:focus { outline: none; border-color: var(--hb-accent); }
.hb-searchform__btn { display: grid; place-items: center; width: 46px; border: 0; border-radius: 8px; background: var(--hb-accent); color: #06210a; cursor: pointer; }
.hb-searchform__btn svg { width: 18px; height: 18px; }

/* =========================================================================
   5. Masthead & logo
   ========================================================================= */
.hb-masthead { background: var(--hb-chrome-bg); padding: 18px 0; position: relative; }
.hb-masthead::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: linear-gradient(90deg, transparent, var(--hb-accent-glow), transparent);
}
.hb-masthead__inner { display: flex; justify-content: center; }
.hb-logo { display: inline-flex; align-items: center; gap: 12px; }
.hb-logo__mark { width: 50px; height: 50px; filter: drop-shadow(0 0 14px var(--hb-accent-glow)); }
.hb-logo__mark svg { width: 100%; height: 100%; }
.hb-logo__text { font-size: 30px; font-weight: 900; letter-spacing: .02em; line-height: 1; }
.hb-logo__first { color: var(--hb-chrome-text); }
.hb-logo__last { color: var(--hb-accent); }
.custom-logo { max-height: 56px; width: auto; }

/* =========================================================================
   6. Primary navigation
   ========================================================================= */
.hb-nav { background: var(--hb-chrome-2); border-top: 1px solid var(--hb-chrome-border); border-bottom: 1px solid var(--hb-chrome-border); position: sticky; top: 0; z-index: 50; }
.hb-nav__inner { display: flex; align-items: center; gap: 10px; }

.hb-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; flex: 1; flex-wrap: wrap; }
.hb-menu > li { position: relative; }
.hb-menu > li > a {
	display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 16px;
	color: var(--hb-chrome-text); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	border-bottom: 3px solid transparent; transition: color .15s, background .15s, border-color .15s;
}
.hb-menu > li > a:hover { color: var(--hb-accent); }
.hb-menu > li.current-menu-item > a,
.hb-menu > li.current-menu-parent > a { color: var(--hb-accent); border-bottom-color: var(--hb-accent); }

.hb-nav__home > a { background: linear-gradient(180deg, var(--hb-accent), var(--hb-accent-2)); color: #06210a !important; border-bottom-color: transparent !important; }
.hb-nav__home > a:hover { filter: brightness(1.08); }
.hb-nav__home-icon { width: 19px; height: 19px; }

.hb-nav__caret { width: 11px; height: 11px; opacity: .8; }
.hb-submenu {
	list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 190px;
	background: var(--hb-chrome-3); border: 1px solid var(--hb-chrome-border); border-radius: 10px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .15s, transform .15s, visibility .15s; z-index: 60;
}
.hb-menu > li:hover > .hb-submenu, .hb-menu > li:focus-within > .hb-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.hb-submenu a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--hb-chrome-text); font-size: 13px; }
.hb-submenu a:hover { background: var(--hb-chrome-2); color: var(--hb-accent); }

.hb-theme-toggle { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; color: var(--hb-chrome-muted); cursor: pointer; padding: 0 4px; flex: 0 0 auto; }
.hb-icon-sun, .hb-icon-moon { width: 18px; height: 18px; color: var(--hb-accent); }
.hb-icon-moon { display: none; }
html[data-theme="light"] .hb-icon-sun { display: none; }
html[data-theme="light"] .hb-icon-moon { display: inline-block; }
.hb-toggle-track { position: relative; width: 42px; height: 22px; border-radius: 999px; background: var(--hb-accent); transition: background .2s; }
.hb-toggle-thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; }
html[data-theme="light"] .hb-toggle-thumb { left: 22px; }

.hb-burger { display: none; flex-direction: column; gap: 4px; width: 38px; height: 38px; border: 0; background: none; cursor: pointer; padding: 8px; }
.hb-burger span { display: block; height: 2px; background: var(--hb-chrome-text); border-radius: 2px; transition: .2s; }
.hb-nav.is-open .hb-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hb-nav.is-open .hb-burger span:nth-child(2) { opacity: 0; }
.hb-nav.is-open .hb-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================================
   7. Layout primitives
   ========================================================================= */
.hb-main { padding: 28px 0 50px; }
.hb-home > .hb-container > * + * { margin-top: 34px; }

.hb-row { display: grid; gap: var(--hb-gap); }
.hb-row--hero { grid-template-columns: 2fr 1fr; align-items: start; }
.hb-row--rv { grid-template-columns: 1.08fr .92fr; }
.hb-row--gpd { grid-template-columns: 1.3fr 1fr 1.05fr; }
.hb-row--community { grid-template-columns: repeat(4, 1fr); }

.hb-grid { display: grid; gap: var(--hb-gap); }
.hb-grid--5 { grid-template-columns: repeat(5, 1fr); }
.hb-grid--4 { grid-template-columns: repeat(4, 1fr); }
.hb-grid--3 { grid-template-columns: repeat(3, 1fr); }

.hb-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hb-section__title { position: relative; margin: 0; font-size: 17px; text-transform: uppercase; letter-spacing: .06em; padding-left: 14px; }
.hb-section__title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 20px; border-radius: 3px; background: var(--hb-accent); box-shadow: 0 0 12px var(--hb-accent-glow); }
.hb-section__more { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hb-muted); }
.hb-section__more:hover { color: var(--hb-accent); }

.hb-panel { background: var(--hb-surface); border: 1px solid var(--hb-border); border-radius: var(--hb-radius); }
.hb-panel__head { padding: 14px 16px; border-bottom: 1px solid var(--hb-border); }
.hb-panel__title { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; position: relative; padding-left: 12px; }
.hb-panel__title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 16px; border-radius: 3px; background: var(--hb-accent); }

/* =========================================================================
   8. Cards
   ========================================================================= */
.hb-card { background: var(--hb-surface); border: 1px solid var(--hb-border); border-radius: var(--hb-radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.hb-card:hover { border-color: var(--hb-border-2); transform: translateY(-2px); }
.hb-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--hb-surface-2); }
.hb-card__media--tall { aspect-ratio: 3 / 4; }
.hb-card__media--poster { aspect-ratio: 3 / 4; }
.hb-card__media .hb-badge { position: absolute; top: 10px; left: 10px; }
.hb-card__dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.78); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.hb-card__body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.hb-card__body--center { align-items: center; text-align: center; }
.hb-card__title { margin: 0; font-size: 15px; line-height: 1.35; }
.hb-card__title--sm { font-size: 13.5px; }
.hb-card__meta { display: flex; align-items: center; gap: 14px; margin-top: auto; color: var(--hb-faint); font-size: 12px; }
.hb-card__meta--center { justify-content: center; }
.hb-meta-item { display: inline-flex; align-items: center; gap: 5px; color: var(--hb-faint); }
a.hb-meta-item:hover { color: var(--hb-accent); }

/* Hero */
.hb-hero__card { background: var(--hb-surface); border: 1px solid var(--hb-border); border-radius: var(--hb-radius); overflow: hidden; position: relative; }
.hb-hero__media { display: block; aspect-ratio: 16 / 8.4; background: var(--hb-surface-2); position: relative; }
.hb-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(7,8,10,.92)); }
.hb-hero__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; z-index: 1; }
.hb-hero__title { margin: 12px 0 10px; font-size: 30px; max-width: 80%; color: #fff; }
.hb-hero__title a { color: #fff; }
.hb-hero__title a:hover { color: var(--hb-accent); }
.hb-hero__excerpt { color: #c7ccd2; margin: 0 0 14px; max-width: 70%; }
.hb-hero__body .hb-card__meta { color: #aeb4bb; }
.hb-hero__card--empty { padding: 40px; aspect-ratio: 16 / 8.4; display: grid; place-items: center; }

/* Most read */
.hb-mostread { list-style: none; margin: 0; padding: 8px; }
.hb-mostread__item { display: grid; grid-template-columns: 26px 64px 1fr; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 9px; }
.hb-mostread__item + .hb-mostread__item { border-top: 1px solid var(--hb-border); }
.hb-mostread__item:hover { background: var(--hb-surface-2); }
.hb-mostread__rank { font-size: 22px; font-weight: 900; color: var(--hb-accent); text-align: center; opacity: .85; }
.hb-mostread__thumb { display: block; width: 64px; aspect-ratio: 16/11; border-radius: 7px; overflow: hidden; background: var(--hb-surface-2); }
.hb-mostread__title { font-size: 13.5px; font-weight: 700; line-height: 1.3; display: block; }
.hb-mostread__meta { font-size: 11.5px; color: var(--hb-faint); }

/* Score hexagon */
.hb-score { position: relative; display: grid; place-items: center; width: 54px; height: 60px; }
.hb-score::before, .hb-score::after { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hb-score::before { background: var(--hb-accent); }
.hb-score::after { inset: 2.5px; background: var(--hb-surface); }
.hb-score.is-mid::before { background: var(--hb-warn); }
.hb-score.is-low::before { background: var(--hb-bad); }
.hb-score__num { position: relative; z-index: 1; font-size: 20px; font-weight: 900; color: var(--hb-text); }
.hb-card--review .hb-score { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
.hb-card--review .hb-card__body { padding-top: 30px; }
.hb-verdict { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--hb-accent); }
.hb-verdict.is-mid { color: var(--hb-warn); }
.hb-verdict.is-low { color: var(--hb-bad); }

/* Videos */
.hb-videos { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.hb-video-hero { background: var(--hb-surface); border: 1px solid var(--hb-border); border-radius: var(--hb-radius); overflow: hidden; }
.hb-video-hero__media { position: relative; display: block; aspect-ratio: 16/9; background: var(--hb-surface-2); }
.hb-video-hero__cap { padding: 12px 14px; }
.hb-video-hero__title { margin: 0 0 4px; font-size: 15px; }
.hb-video-hero__meta { font-size: 12px; color: var(--hb-faint); }
.hb-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(0,0,0,.55); border: 2px solid #fff; display: grid; place-items: center; transition: background .15s, transform .15s; }
.hb-play svg { width: 26px; height: 26px; color: #fff; margin-left: 2px; }
.hb-video-hero__media:hover .hb-play { background: var(--hb-accent); border-color: var(--hb-accent); transform: translate(-50%, -50%) scale(1.06); }
.hb-play svg path { fill: #fff; }
.hb-play--sm { width: 34px; height: 34px; }
.hb-play--sm svg { width: 15px; height: 15px; }
.hb-video-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hb-video-item { display: grid; grid-template-columns: 96px 1fr; gap: 11px; align-items: center; }
.hb-video-item__thumb { position: relative; width: 96px; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: var(--hb-surface-2); }
.hb-video-item__title { font-size: 13px; font-weight: 700; line-height: 1.3; display: block; }
.hb-video-item__dur { font-size: 11.5px; color: var(--hb-faint); }

/* Game Pass posters */
.hb-grid--posters .hb-card__title { font-size: 13px; }

/* Releases */
.hb-release-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hb-release { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; background: var(--hb-surface); border: 1px solid var(--hb-border); border-radius: var(--hb-radius-sm); padding: 10px 12px; }
.hb-release__date { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 9px; background: var(--hb-surface-2); border: 1px solid var(--hb-border); text-align: center; line-height: 1; }
.hb-release__date strong { font-size: 19px; font-weight: 900; color: var(--hb-text); }
.hb-release__date span { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--hb-accent); margin-top: 3px; }
.hb-release__info { min-width: 0; }
.hb-release__title { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; }
.hb-release__genre { font-size: 12px; color: var(--hb-faint); }

/* Deals */
.hb-deal-list { display: flex; flex-direction: column; gap: 12px; }
.hb-deal { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--hb-surface); border: 1px solid var(--hb-border); border-radius: var(--hb-radius-sm); padding: 10px 12px; }
.hb-deal__media { width: 64px; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: var(--hb-surface-2); }
.hb-deal__body { min-width: 0; }
.hb-deal__title { margin: 0 0 5px; font-size: 13.5px; line-height: 1.3; }
.hb-deal__pricing { display: flex; align-items: baseline; gap: 8px; }
.hb-deal__price { font-size: 16px; font-weight: 900; color: var(--hb-accent); }
.hb-deal__old { font-size: 12px; color: var(--hb-faint); text-decoration: line-through; }
.hb-deal__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hb-deal__discount { background: var(--hb-accent); color: #06210a; font-size: 12px; font-weight: 900; padding: 3px 8px; border-radius: 6px; }

/* =========================================================================
   9. Community
   ========================================================================= */
.hb-community__box { padding: 16px; }
.hb-community__title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--hb-accent); margin: 0 0 14px; }
.hb-community__more { display: inline-block; margin-top: 12px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--hb-muted); }
.hb-community__more:hover { color: var(--hb-accent); }

.hb-minilist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hb-minilist__item { display: grid; grid-template-columns: 56px 1fr; gap: 11px; align-items: center; }
.hb-minilist--text .hb-minilist__item { grid-template-columns: 1fr; }
.hb-minilist--text .hb-minilist__item { padding-left: 14px; position: relative; }
.hb-minilist--text .hb-minilist__item::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--hb-accent); }
.hb-minilist__thumb { width: 56px; aspect-ratio: 16/11; border-radius: 7px; overflow: hidden; background: var(--hb-surface-2); }
.hb-minilist__title { font-size: 13px; font-weight: 700; line-height: 1.3; display: block; }
.hb-minilist__meta { font-size: 11.5px; color: var(--hb-faint); }

/* Poll */
.hb-poll__question { font-size: 14px; font-weight: 700; margin: 0 0 14px; }
.hb-poll__form { display: flex; flex-direction: column; gap: 9px; }
.hb-poll__option { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--hb-border); border-radius: 8px; cursor: pointer; overflow: hidden; transition: border-color .15s; }
.hb-poll__option:hover { border-color: var(--hb-border-2); }
.hb-poll__option input { position: absolute; opacity: 0; }
.hb-poll__mark { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--hb-faint); flex: 0 0 auto; }
.hb-poll__option input:checked ~ .hb-poll__mark { border-color: var(--hb-accent); box-shadow: inset 0 0 0 3px var(--hb-accent); }
.hb-poll__label { font-size: 13px; z-index: 1; }
.hb-poll__bar { position: absolute; inset: 0; z-index: 0; display: none; }
.hb-poll__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--hb-accent-soft); transition: width .5s; }
.hb-poll__pct { font-size: 12px; font-weight: 800; color: var(--hb-accent); z-index: 1; display: none; }
.hb-poll.show-results .hb-poll__bar { display: block; }
.hb-poll.show-results .hb-poll__pct { display: block; }
.hb-poll.show-results .hb-poll__mark { display: none; }
.hb-poll.is-voted .hb-poll__submit { display: none; }
.hb-poll__submit { margin-top: 5px; }
.hb-poll__results-toggle { display: block; width: 100%; margin-top: 10px; background: none; border: 0; color: var(--hb-muted); font-size: 12px; cursor: pointer; }
.hb-poll__results-toggle:hover { color: var(--hb-accent); }

/* =========================================================================
   10. Single / archive / pages
   ========================================================================= */
.hb-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.hb-layout__content { min-width: 0; }
.hb-sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 64px; }

.hb-page-head { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--hb-border); }
.hb-page-head__title { margin: 0; font-size: 26px; }
.hb-page-head__desc { color: var(--hb-muted); margin-top: 8px; }

.hb-single__head { margin-bottom: 18px; }
.hb-single__title { font-size: 33px; margin: 12px 0 14px; }
.hb-single__meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--hb-faint); font-size: 13px; }
.hb-single__media { margin: 0 0 24px; border-radius: var(--hb-radius); overflow: hidden; border: 1px solid var(--hb-border); }
.hb-single__media img { width: 100%; }

.hb-prose { font-size: 16.5px; color: var(--hb-text); }
.hb-prose p { margin: 0 0 1.2em; }
.hb-prose h2 { font-size: 24px; margin: 1.4em 0 .5em; }
.hb-prose h3 { font-size: 20px; margin: 1.3em 0 .5em; }
.hb-prose a { color: var(--hb-accent); text-decoration: underline; text-underline-offset: 3px; }
.hb-prose img { border-radius: 10px; margin: 1em 0; }
.hb-prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 4px solid var(--hb-accent); color: var(--hb-muted); }
.hb-prose ul, .hb-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.hb-prose code { background: var(--hb-surface-2); padding: 2px 6px; border-radius: 5px; font-size: .9em; }

.hb-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 22px; padding: 14px 16px; background: var(--hb-surface); border: 1px solid var(--hb-border); border-radius: var(--hb-radius); }
.hb-facts__price { font-size: 22px; font-weight: 900; color: var(--hb-accent); }
.hb-facts__item { display: inline-flex; align-items: center; gap: 6px; color: var(--hb-muted); font-size: 14px; }

.hb-review-hero { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-bottom: 26px; align-items: center; }
.hb-review-hero__cover { border-radius: var(--hb-radius); overflow: hidden; border: 1px solid var(--hb-border); aspect-ratio: 3/4; }
.hb-review-hero__score { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.hb-score--lg { width: 78px; height: 88px; }
.hb-score--lg .hb-score__num { font-size: 30px; }
.hb-verdict--lg { font-size: 16px; }

.hb-embed { position: relative; aspect-ratio: 16/9; margin-bottom: 22px; border-radius: var(--hb-radius); overflow: hidden; background: #000; }
.hb-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.hb-tags { margin: 22px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hb-tags a { background: var(--hb-surface-2); border: 1px solid var(--hb-border); padding: 5px 11px; border-radius: 999px; font-size: 12px; color: var(--hb-muted); }
.hb-tags a:hover { border-color: var(--hb-accent); color: var(--hb-accent); }

.hb-share { display: flex; align-items: center; gap: 8px; margin: 24px 0; padding-top: 18px; border-top: 1px solid var(--hb-border); }
.hb-share__label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--hb-muted); margin-right: 4px; }
.hb-share__btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--hb-surface-2); border: 1px solid var(--hb-border); color: var(--hb-muted); cursor: pointer; }
.hb-share__btn svg { width: 17px; height: 17px; fill: currentColor; }
.hb-share__btn:hover { color: var(--hb-accent); border-color: var(--hb-accent); }
.hb-share__copy.is-copied { color: var(--hb-accent); border-color: var(--hb-accent); }

.hb-related { margin-top: 36px; }

/* Comments */
.hb-comments { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--hb-border); }
.hb-comments__title { font-size: 20px; }
.hb-comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.hb-comment-list ol { list-style: none; padding-left: 26px; }
.hb-comment-list .comment-body { background: var(--hb-surface); border: 1px solid var(--hb-border); border-radius: var(--hb-radius-sm); padding: 14px 16px; margin-bottom: 14px; }
.hb-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.hb-comment-list .comment-author .avatar { border-radius: 50%; }
.hb-comment-list .comment-meta { font-size: 12px; color: var(--hb-faint); margin: 4px 0 8px; }
.hb-commentform input[type=text], .hb-commentform input[type=email], .hb-commentform input[type=url], .hb-commentform textarea {
	width: 100%; background: var(--hb-surface); border: 1px solid var(--hb-border); color: var(--hb-text); border-radius: 8px; padding: 11px 13px; font-size: 15px; margin-bottom: 12px;
}
.hb-commentform input:focus, .hb-commentform textarea:focus { outline: none; border-color: var(--hb-accent); }
.hb-commentform .submit { background: linear-gradient(180deg, var(--hb-accent), var(--hb-accent-2)); color: #06210a; font-weight: 800; border: 0; border-radius: 8px; padding: 11px 22px; cursor: pointer; text-transform: uppercase; letter-spacing: .03em; }

/* Pagination */
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; justify-content: center; }
.pagination .page-numbers, .nav-links .page-numbers, .nav-links a {
	display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px;
	background: var(--hb-surface); border: 1px solid var(--hb-border); color: var(--hb-text); font-weight: 700; font-size: 14px;
}
.pagination .current, .nav-links .current { background: var(--hb-accent); color: #06210a; border-color: var(--hb-accent); }
.pagination a:hover, .nav-links a:hover { border-color: var(--hb-accent); color: var(--hb-accent); }

/* Page / 404 */
.hb-page { max-width: 820px; margin: 0 auto; }
.hb-404 { max-width: 560px; margin: 0 auto; text-align: center; padding: 40px 0; }
.hb-404__code { font-size: 96px; font-weight: 900; color: var(--hb-accent); line-height: 1; margin: 0; opacity: .5; }
.hb-404__title { font-size: 28px; margin: 10px 0; }
.hb-404__text { color: var(--hb-muted); margin-bottom: 20px; }
.hb-404 .hb-searchform { margin-bottom: 20px; }

/* Empty state */
.hb-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 34px 20px; color: var(--hb-faint); background: var(--hb-surface); border: 1px dashed var(--hb-border-2); border-radius: var(--hb-radius); }
.hb-empty__icon { width: 40px; height: 40px; opacity: .55; }
.hb-empty p { margin: 0; font-size: 14px; }
.hb-empty__cta { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--hb-accent); border: 1px solid var(--hb-accent); padding: 8px 14px; border-radius: 7px; }
.hb-empty__cta:hover { background: var(--hb-accent-soft); color: var(--hb-accent); }

/* =========================================================================
   11. Footer
   ========================================================================= */
.hb-footer { background: var(--hb-chrome-bg); border-top: 1px solid var(--hb-chrome-border); color: var(--hb-chrome-muted); margin-top: 40px; }
.hb-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.5fr; gap: 32px; padding: 46px 20px 38px; }
.hb-footer .hb-logo__text { font-size: 24px; }
.hb-footer .hb-logo__mark { width: 40px; height: 40px; }
.hb-footer__about { font-size: 13.5px; line-height: 1.7; margin: 16px 0; max-width: 34ch; }
.hb-social--footer .hb-social__link { background: var(--hb-chrome-2); }
.hb-footer__title { color: var(--hb-chrome-text); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 16px; }
.hb-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hb-footer__list a { color: var(--hb-chrome-muted); font-size: 13.5px; }
.hb-footer__list a:hover { color: var(--hb-accent); }
.hb-footer__hint { font-size: 12px; color: var(--hb-faint); }
.hb-footer__newsletter .hb-newsletter-form__input { width: 100%; background: var(--hb-chrome-2); border: 1px solid var(--hb-chrome-border); color: var(--hb-chrome-text); border-radius: 8px; padding: 11px 13px; font-size: 14px; margin-bottom: 10px; }
.hb-footer__newsletter .hb-newsletter-form__input:focus { outline: none; border-color: var(--hb-accent); }
.hb-newsletter-form__msg { font-size: 12.5px; margin: 8px 0 0; min-height: 1em; }
.hb-newsletter-form__msg.is-ok { color: var(--hb-accent); }
.hb-newsletter-form__msg.is-err { color: var(--hb-bad); }
.hb-footer__bottom { border-top: 1px solid var(--hb-chrome-border); padding: 18px 0; text-align: center; font-size: 12.5px; color: var(--hb-faint); }

.hb-totop { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--hb-accent); background: var(--hb-chrome-2); color: var(--hb-accent); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.hb-totop svg { width: 22px; height: 22px; }
.hb-totop:hover { background: var(--hb-accent); color: #06210a; }

/* =========================================================================
   12. Responsive
   ========================================================================= */
@media (max-width: 1080px) {
	.hb-row--gpd { grid-template-columns: 1fr 1fr; }
	.hb-grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
	.hb-row--hero, .hb-row--rv { grid-template-columns: 1fr; }
	.hb-layout { grid-template-columns: 1fr; }
	.hb-sidebar { position: static; }
	.hb-hero__title { max-width: 100%; font-size: 24px; }
	.hb-hero__excerpt { max-width: 100%; }
	.hb-row--community { grid-template-columns: repeat(2, 1fr); }
	.hb-review-hero { grid-template-columns: 150px 1fr; }
}
@media (max-width: 900px) {
	.hb-burger { display: flex; }
	.hb-nav__inner { position: relative; }
	.hb-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--hb-chrome-2); border-bottom: 1px solid var(--hb-chrome-border); padding: 6px; max-height: 75vh; overflow: auto; }
	.hb-nav.is-open .hb-menu { display: flex; }
	.hb-menu > li > a { height: 46px; border-bottom: 0; border-radius: 8px; }
	.hb-nav__home > a { border-radius: 8px; }
	.hb-submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 18px; display: none; }
	.hb-menu > li.is-expanded > .hb-submenu { display: block; }
	.hb-theme-toggle { margin-left: auto; }
	.hb-videos { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
	.hb-grid--5, .hb-grid--3, .hb-grid--4, .hb-row--gpd, .hb-row--community { grid-template-columns: repeat(2, 1fr); }
	.hb-footer__grid { grid-template-columns: 1fr 1fr; }
	.hb-footer__brand, .hb-footer__newsletter { grid-column: 1 / -1; }
	.hb-single__title { font-size: 26px; }
	.hb-hero__body { padding: 18px; }
	.hb-ticker__label { display: none; }
}
@media (max-width: 480px) {
	.hb-grid--5, .hb-grid--3, .hb-grid--4, .hb-row--gpd, .hb-row--community, .hb-footer__grid { grid-template-columns: 1fr; }
	.hb-review-hero { grid-template-columns: 1fr; }
	.hb-topbar__actions .hb-social { display: none; }
}
