/*
Theme Name: TechByTeddy
Author: TechByTeddy
Description: A dark, glassy theme for tech and gadget reviews. Transparent header that turns to frosted glass on scroll, a featured hero for the newest review, card grid with score badges, reading progress bar, and a [review] shortcode for score, verdict, pros and cons.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techbyteddy
Tags: blog, news, dark, custom-logo, custom-menu, featured-images, threaded-comments, wide-blocks
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #0a0c12;
	--bg-2: #11141d;
	--text: #e9ebf3;
	--muted: #9aa1b5;
	--line: rgba(255, 255, 255, .08);
	--line-strong: rgba(255, 255, 255, .14);
	--glass: rgba(255, 255, 255, .035);
	--glass-strong: rgba(255, 255, 255, .07);
	--accent: #8b5cf6;
	--accent-2: #22d3ee;
	--good: #34d399;
	--bad: #fb7185;
	--radius: 20px;
	--radius-lg: 28px;
	--container: 1200px;
	--header-h: 76px;
	--font: "Inter", "SF Pro Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
	--accent-soft: rgba(139, 92, 246, .16);
	--accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
	--accent-line: rgba(139, 92, 246, .4);
	--accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
	--grad: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.7 var(--font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, video, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; letter-spacing: -.02em; font-weight: 750; margin: 0 0 .6em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.site-main { flex: 1; padding: calc(var(--header-h) + 36px) 0 96px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	top: 12px; left: 12px; z-index: 1000; padding: 10px 16px;
	background: var(--text); color: var(--bg); border-radius: 10px;
}

/* ---------- Background ---------- */
.bg-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-glow span { position: absolute; border-radius: 50%; filter: blur(100px); }
.bg-glow span:nth-child(1) { width: 560px; height: 560px; background: var(--accent); top: -220px; left: -160px; opacity: .32; }
.bg-glow span:nth-child(2) { width: 480px; height: 480px; background: var(--accent-2); top: 18%; right: -200px; opacity: .18; }
.bg-glow span:nth-child(3) { width: 640px; height: 640px; background: #ec4899; bottom: -380px; left: 28%; opacity: .1; }
.bg-glow::after {
	content: ""; position: absolute; inset: 0;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
	opacity: .55;
}

/* ---------- Header (transparent → frosted glass) ---------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	border-bottom: 1px solid transparent;
	transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.site-header.is-scrolled,
.site-header.search-open {
	background: rgba(10, 12, 18, .55);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
	border-bottom-color: var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.brand-link { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 52px; height: 52px; flex: none; image-rendering: pixelated; transition: transform .4s cubic-bezier(.2, .8, .2, 1.4); }
.brand-link:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-name { font-weight: 800; font-size: 1.28rem; letter-spacing: -.03em; line-height: 1; }
.brand-name .by { color: var(--muted); font-weight: 500; }
.brand-name .teddy { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 48px; width: auto; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul {
	display: flex; gap: 2px; padding: 5px;
	background: var(--glass); border: 1px solid var(--line); border-radius: 999px;
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.primary-nav li { position: relative; }
.primary-nav a {
	display: block; padding: 8px 16px; border-radius: 999px;
	font-size: .93rem; font-weight: 500; color: var(--muted);
	transition: color .2s, background-color .2s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current-category-ancestor > a { color: var(--text); background: var(--glass-strong); }
.primary-nav .sub-menu {
	position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px; padding: 6px;
	display: flex; flex-direction: column; gap: 2px;
	background: rgba(17, 20, 29, .92); border: 1px solid var(--line); border-radius: 16px;
	-webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.primary-nav .sub-menu a { border-radius: 10px; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px;
	border-radius: 50%; border: 1px solid var(--line); background: var(--glass);
	color: var(--text); cursor: pointer;
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--glass-strong); border-color: var(--line-strong); }
.menu-toggle { display: none; }
.burger { display: grid; gap: 5px; width: 18px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s; }
.menu-toggle[aria-expanded="true"] .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.search-panel { padding: 0 0 18px; }
.search-panel .search-form { max-width: 640px; margin-left: auto; }

@media (max-width: 900px) {
	.menu-toggle { display: inline-grid; }
	.primary-nav {
		position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 4px);
		padding: 10px; border-radius: 22px;
		background: rgba(17, 20, 29, .94); border: 1px solid var(--line);
		-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
		box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s, transform .25s, visibility .25s;
		max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto;
	}
	.admin-bar .primary-nav { top: calc(var(--header-h) + 50px); }
	.primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.primary-nav > ul { flex-direction: column; background: none; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
	.primary-nav a { padding: 12px 16px; border-radius: 12px; font-size: 1rem; }
	.primary-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		background: none; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0;
		backdrop-filter: none; -webkit-backdrop-filter: none;
	}
}

/* ---------- Shared bits ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); }

.pill {
	position: relative; z-index: 2;
	display: inline-flex; align-self: flex-start; align-items: center;
	padding: 4px 12px; border-radius: 999px;
	font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: #d6ccff; background: var(--accent-soft); border: 1px solid var(--accent-line);
	transition: background-color .2s;
}
.pill:hover { background: var(--accent-line); }

.btn, .wp-block-button__link, input[type="submit"].btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--grad); color: #fff; font: 600 .95rem/1.2 var(--font);
	box-shadow: 0 10px 30px -10px var(--accent);
	transition: transform .2s, box-shadow .2s;
}
.btn:hover, .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px var(--accent); color: #fff; }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: .85rem; }
.meta > * + *::before { content: "•"; margin-right: 16px; opacity: .5; }
.meta-author { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.meta-author img { border-radius: 50%; }

.section-head { display: flex; align-items: end; justify-content: space-between; margin: 0 0 22px; }
.section-title { font-size: 1.5rem; margin: 0; }

/* ---------- Hero ---------- */
.hero {
	position: relative; display: grid; grid-template-columns: 1.2fr 1fr;
	min-height: 460px; margin-bottom: 64px;
	border-radius: var(--radius-lg); overflow: hidden;
	background: var(--glass); border: 1px solid var(--line);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.hero::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
	background: linear-gradient(135deg, var(--accent-line), transparent 40%, transparent 60%, rgba(34, 211, 238, .35));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
}
.hero-media { position: relative; display: block; overflow: hidden; background: var(--bg-2); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.hero:hover .hero-media img { transform: scale(1.04); }
.hero-media.no-image,
.media-fallback {
	background:
		radial-gradient(circle at 25% 30%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 55%),
		radial-gradient(circle at 75% 75%, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent 50%),
		var(--bg-2);
}
.hero-body { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-title { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin: 0; }
.hero-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s; }
.hero-title a:hover { background-size: 100% 2px; }
.hero-excerpt { color: var(--muted); margin: 0; font-size: 1.05rem; }
.hero-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.hero-score { color: var(--muted); font-size: .92rem; }
.hero-score strong { font-size: 1.5rem; color: var(--text); margin-right: 2px; }
@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; min-height: 0; }
	.hero-media { aspect-ratio: 16 / 9; }
	.hero-body { padding: 28px 24px 30px; }
}

/* ---------- Cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; }
.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent-line); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--accent) 60%, transparent); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.card-media img, .media-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.05); }
.score-badge {
	position: absolute; top: 14px; right: 14px; z-index: 1;
	min-width: 48px; padding: 6px 10px; border-radius: 12px; text-align: center;
	font-weight: 800; font-size: 1rem; line-height: 1.2;
	background: rgba(10, 12, 18, .6); border: 1px solid var(--line-strong);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.card-title { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.015em; margin: 0; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-excerpt {
	color: var(--muted); font-size: .94rem; line-height: 1.6; margin: 0;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card .meta { margin-top: auto; padding-top: 6px; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--muted);
	transition: all .2s;
}
.pagination .page-numbers:hover { color: var(--text); border-color: var(--line-strong); }
.pagination .page-numbers.current { background: var(--grad); border-color: transparent; color: #fff; }

/* ---------- Page heads / empty states ---------- */
.page-head { margin-bottom: 40px; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; margin: 12px 0 8px; }
.page-desc { color: var(--muted); max-width: 640px; }
.empty-state {
	max-width: 620px; margin: 40px auto; padding: 48px 32px; text-align: center;
	background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.empty-state p { color: var(--muted); }
.empty-state .search-form { margin: 24px 0; }
.big-404 {
	font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; line-height: 1; letter-spacing: -.06em;
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px;
}

/* ---------- Search form ---------- */
.search-form { position: relative; display: flex; }
.search-field {
	width: 100%; height: 50px; padding: 0 54px 0 20px;
	border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05);
	color: var(--text); font: inherit; font-size: .98rem;
	transition: border-color .2s, background-color .2s;
}
.search-field::placeholder { color: var(--muted); }
.search-field:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .08); }
.search-field::-webkit-search-cancel-button { display: none; }
.search-submit {
	position: absolute; right: 5px; top: 5px; width: 40px; height: 40px;
	display: grid; place-items: center; border: 0; border-radius: 50%;
	background: var(--grad); color: #fff; cursor: pointer;
}

/* ---------- Single ---------- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.admin-bar .reading-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .reading-progress { top: 46px; } }
.reading-progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

.single-header { max-width: 880px; text-align: center; margin-bottom: 36px; display: flex; flex-direction: column; align-items: center; }
.single-header .pill { align-self: center; }
.single-title { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin: 18px 0 14px; }
.single-lede { color: var(--muted); font-size: 1.15rem; max-width: 680px; margin: 0 0 20px; }
.single-meta { justify-content: center; }
.single-thumb { margin: 0 auto 52px; max-width: 1100px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.single-thumb img { width: 100%; }

/* ---------- Entry content ---------- */
.entry-content { max-width: 740px; margin: 0 auto; font-size: 1.07rem; }
.entry-content > * { margin-top: 0; margin-bottom: 1.3em; }
.entry-content h2 { font-size: 1.85rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.4rem; margin-top: 1.7em; }
.entry-content h4 { font-size: 1.15rem; margin-top: 1.5em; }
.entry-content a:not(.wp-block-button__link):not(.btn) {
	color: var(--accent-2); text-decoration: underline; text-decoration-thickness: 1px;
	text-decoration-color: rgba(34, 211, 238, .4); text-underline-offset: 3px; transition: text-decoration-color .2s;
}
.entry-content a:not(.wp-block-button__link):not(.btn):hover { text-decoration-color: currentColor; }
.entry-content strong { color: #fff; font-weight: 700; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--accent); }
.entry-content img { border-radius: 16px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-caption-text { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 10px; }
.entry-content blockquote, .wp-block-quote {
	margin: 2em 0; padding: 6px 0 6px 24px; border-left: 3px solid; border-image: var(--grad) 1;
	font-size: 1.2rem; line-height: 1.55; color: #d7dae6;
}
.entry-content blockquote cite { display: block; margin-top: 10px; font-size: .85rem; color: var(--muted); font-style: normal; }
.wp-block-pullquote { border: 0; padding: 32px; background: var(--glass); border-radius: var(--radius); text-align: center; }
.entry-content code { font-family: var(--mono); font-size: .88em; padding: .15em .4em; border-radius: 6px; background: var(--glass-strong); }
.entry-content pre { font-family: var(--mono); font-size: .88rem; padding: 20px; border-radius: 14px; background: #05060a; border: 1px solid var(--line); overflow-x: auto; }
.entry-content pre code { padding: 0; background: none; }
.entry-content hr, .wp-block-separator { border: 0; height: 1px; background: var(--line-strong); margin: 3em auto; }

/* Spec tables */
.entry-content table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.wp-block-table { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); }
.entry-content > table { border-radius: 16px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); }
.entry-content th, .entry-content td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content th, .entry-content thead td { background: var(--glass-strong); color: var(--text); font-weight: 600; }
.entry-content tbody td:first-child { color: var(--muted); white-space: nowrap; }
.wp-block-table.is-style-stripes { border-bottom: 1px solid var(--line); }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .025); }

/* Alignments */
.entry-content > .alignwide { width: min(1040px, 100vw - 40px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content > .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content > .alignfull img { border-radius: 0; }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.gallery-caption, .sticky, .bypostauthor { }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 0 0 1.3em; } }

.wp-block-embed iframe { border-radius: 16px; }
.wp-block-image img { border-radius: 16px; }
.wp-block-gallery img { border-radius: 12px; }

/* ---------- Review box ---------- */
.tbt-review {
	position: relative; margin: 2.4em 0; padding: 28px; overflow: hidden;
	border-radius: 24px; border: 1px solid var(--line);
	background:
		radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 50%),
		radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 50%),
		var(--glass);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.tbt-review-top { display: flex; gap: 26px; align-items: center; }
.tbt-score { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tbt-score small { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.tbt-score-ring {
	position: relative; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
	background: conic-gradient(var(--accent) 0deg, var(--accent-2) calc(var(--score) * 36deg), rgba(255, 255, 255, .08) 0);
}
.tbt-score-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--bg-2); }
.tbt-score-ring span { position: relative; font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.tbt-review-text h3 { font-size: 1.45rem; margin: 6px 0 6px; }
.tbt-review-text p { margin: 0; color: #cfd3e0; }
.tbt-procon { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.tbt-procon > div { padding: 18px 20px; border-radius: 16px; background: rgba(10, 12, 18, .45); border: 1px solid var(--line); }
.tbt-procon h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.tbt-pros h4 { color: var(--good); }
.tbt-cons h4 { color: var(--bad); }
.tbt-procon ul { list-style: none; margin: 0; padding: 0; }
.tbt-procon li { position: relative; padding-left: 26px; margin: 0 0 8px; font-size: .96rem; }
.tbt-procon li:last-child { margin-bottom: 0; }
.tbt-procon li::before {
	position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
	display: grid; place-items: center; font-size: .7rem; font-weight: 800;
}
.tbt-pros li::before { content: "✓"; color: var(--good); background: rgba(52, 211, 153, .14); }
.tbt-cons li::before { content: "✕"; color: var(--bad); background: rgba(251, 113, 133, .14); }
@media (max-width: 640px) {
	.tbt-review { padding: 22px; }
	.tbt-review-top { flex-direction: column; text-align: center; }
	.tbt-procon { grid-template-columns: 1fr; }
}

/* ---------- Post footer ---------- */
.entry-footer { max-width: 740px; margin: 48px auto 0; display: grid; gap: 28px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { padding: 6px 14px; border-radius: 999px; font-size: .85rem; color: var(--muted); background: var(--glass); border: 1px solid var(--line); transition: all .2s; }
.tag-list a::before { content: "#"; opacity: .6; }
.tag-list a:hover { color: var(--text); border-color: var(--line-strong); }
.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.author-box img { border-radius: 50%; flex: none; }
.author-box h3 { font-size: 1.15rem; margin: 4px 0; }
.author-box p { margin: 0; color: var(--muted); font-size: .94rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; height: 100%; padding: 18px 20px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); transition: border-color .2s; }
.post-navigation a:hover { border-color: var(--accent-line); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.nav-label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.nav-title { font-weight: 650; line-height: 1.35; }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: auto; } }

.related { margin-top: 80px; }
.page-links { margin-top: 2em; display: flex; gap: 8px; }

/* ---------- Comments ---------- */
.comments-area { max-width: 740px; margin: 72px auto 0; }
.comments-title, .comment-reply-title { font-size: 1.4rem; }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { padding-left: 28px; }
.comment-body { padding: 18px 20px; margin-bottom: 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .8rem; color: var(--muted); margin: 2px 0 8px 54px; }
.comment-content { font-size: .98rem; }
.reply a { font-size: .85rem; color: var(--accent-2); }
.comment-respond { margin-top: 32px; padding: 26px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.comment-form label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
	background: rgba(255, 255, 255, .04); color: var(--text); font: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: rgba(10, 12, 18, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 56px 0 32px; }
.footer-brand p { color: var(--muted); margin: 14px 0 0; max-width: 360px; font-size: .95rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--muted); font-size: .93rem; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-bottom: 32px; color: var(--muted); font-size: .93rem; }
.widget-title { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.footer-widgets ul { list-style: none; padding: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.to-top:hover { color: var(--text); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Menu always visible (v1.2) ---------- */
/* Keep the header still while moving between pages (supported browsers). */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation: none; }

/* Phones and narrow windows: no hamburger, the menu stays on screen as a scrollable row. */
@media (max-width: 900px) {
	:root { --header-h: 118px; }
	.site-header {
		background: rgba(10, 12, 18, .72);
		-webkit-backdrop-filter: blur(18px) saturate(160%);
		backdrop-filter: blur(18px) saturate(160%);
		border-bottom-color: var(--line);
	}
	.header-inner { height: auto; flex-wrap: wrap; gap: 8px 12px; padding: 10px 0; }
	.header-actions { width: 100%; }
	.menu-toggle { display: none !important; }
	.primary-nav {
		position: static; flex: 1; min-width: 0; padding: 0; max-height: none; overflow: visible;
		opacity: 1; visibility: visible; transform: none;
		background: none; border: 0; box-shadow: none; border-radius: 0;
		-webkit-backdrop-filter: none; backdrop-filter: none;
	}
	.primary-nav > ul {
		flex-direction: row; overflow-x: auto; scrollbar-width: none;
		padding: 4px; background: var(--glass); border: 1px solid var(--line); border-radius: 999px;
	}
	.primary-nav > ul::-webkit-scrollbar { display: none; }
	.primary-nav a { padding: 7px 14px; font-size: .9rem; white-space: nowrap; border-radius: 999px; }
	.primary-nav .sub-menu { display: none; }
}
/* Logged-in phones: the admin bar scrolls away, so pin the header to the very top once scrolled. */
@media (max-width: 600px) { .admin-bar .site-header.is-scrolled { top: 0; } }

/* ---------- YouTube (v1.3) ---------- */
.tbt-video { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.tbt-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-link:hover { color: #ff4e45; border-color: rgba(255, 78, 69, .5); }
.footer-yt { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: .93rem; transition: color .2s; }
.footer-yt:hover { color: #ff4e45; }

/* ---------- Video posts (v1.4) ---------- */
.card-media img.yt-letterbox, .hero-media img.yt-letterbox { transform: scale(1.34); }
.card:hover .card-media img.yt-letterbox { transform: scale(1.4); }
.play-badge {
	position: absolute; left: 14px; bottom: 14px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; color: #fff; background: rgba(10, 12, 18, .6); border: 1px solid var(--line-strong);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .2s;
}
.play-badge svg { margin-left: 2px; }
.card:hover .play-badge, .hero:hover .play-badge { background: #ff0033; border-color: transparent; }
.play-badge-lg { left: 50%; top: 50%; bottom: auto; width: 72px; height: 72px; transform: translate(-50%, -50%); }

/* ---------- Support box (v1.5) ---------- */
.support-box {
	display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: var(--radius);
	background: radial-gradient(circle at 0% 0%, color-mix(in srgb, #c0755a 22%, transparent), transparent 55%), var(--glass);
	border: 1px solid var(--line);
}
.support-mark { flex: none; width: 64px; height: 64px; }
.support-mark svg { width: 100%; height: 100%; image-rendering: pixelated; }
.support-text { flex: 1; min-width: 0; }
.support-text h3 { font-size: 1.15rem; margin: 0 0 4px; }
.support-text p { margin: 0; color: var(--muted); font-size: .94rem; }
.support-btn { flex: none; white-space: nowrap; }
@media (max-width: 640px) { .support-box { flex-direction: column; text-align: center; } }
