/*
Theme Name: TechnoSubh
Theme URI: https://technosubh.in
Author: TechnoSubh
Description: Dark gaming premium theme for TechnoSubh — Google Play redeem code app guides, YouTube video box in articles, AdSense slots.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: technosubh
*/

@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(assets/fonts/inter-latin-wght-normal.woff2) format('woff2-variations'), url(assets/fonts/inter-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-display: swap; font-weight: 600; src: url(assets/fonts/chakra-petch-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-display: swap; font-weight: 700; src: url(assets/fonts/chakra-petch-latin-700-normal.woff2) format('woff2'); }

:root {
	--bg: #0B0D12;
	--bg2: #0E1118;
	--card: #121620;
	--card2: #161C27;
	--line: #1E2430;
	--line2: #262D3A;
	--text: #E8ECF3;
	--muted: #A9B1C2;
	--dim: #8A93A6;
	--green: #3DFF8A;
	--green-bg: #172019;
	--amber: #FFB547;
	--red: #FF3B3B;
	--head: 'Chakra Petch', system-ui, sans-serif;
	--body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--green); }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--green); color: var(--bg); border-radius: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.head-font { font-family: var(--head); }
.accent { color: var(--green); }
.accent-red { color: var(--red); }

/* ---------- Header ---------- */
.site-header { background: var(--bg2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--green); color: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 20px; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: 1px; color: var(--text); }
.brand .custom-logo { max-height: 44px; width: auto; }
.main-nav { flex: 1 1 auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: 14px; }
.main-nav .current-menu-item > a, .main-nav .current-menu-parent > a, .main-nav .current-cat > a { background: var(--green-bg); color: var(--green); font-weight: 600; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; flex-direction: column; padding: 8px; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; z-index: 60; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.search-form { display: flex; }
.search-form .search-field { width: 200px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font-size: 14px; }
.search-form .search-field::placeholder { color: var(--dim); }
.search-form .search-submit { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 14px; border: 0; cursor: pointer; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { color: #fff; filter: brightness(1.1); }
.btn-green { background: var(--green); color: var(--bg); }
.btn-green:hover { color: var(--bg); filter: brightness(1.05); }
.btn-ghost { border: 1px solid var(--line2); color: var(--text); background: transparent; }
.btn-block { display: flex; width: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--text); display: none; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.icon-btn[aria-expanded="true"] { border-color: var(--green); color: var(--green); }
.mobile-searchbar { border-top: 1px solid var(--line); padding: 12px 0; }
.mobile-searchbar[hidden] { display: none; }
.mobile-searchbar .search-form { display: flex; }
.mobile-searchbar .search-field { width: 100%; }

@media (max-width: 1080px) {
	.header-inner { flex-wrap: wrap; }
	.icon-btn { display: inline-flex; }
	.header-actions { margin-left: auto; }
	.header-actions > .search-form { display: none; }
	.main-nav { display: none; order: 10; flex-basis: 100%; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
	.main-nav .sub-menu { position: static; display: flex; border: 0; padding: 0 0 0 14px; background: transparent; }
}
@media (min-width: 1081px) { .mobile-searchbar { display: none !important; } }
@media (max-width: 340px) { .yt-btn span { display: none; } }
@media (max-width: 400px) {
	.header-inner { gap: 10px; }
	.header-actions { gap: 8px; }
	.yt-btn { padding: 0 12px; }

	.brand .custom-logo { max-height: 40px; }
	.brand-name { font-size: 18px; }
}

/* ---------- Ads ---------- */
.ad-slot { text-align: center; overflow: hidden; }
.ad-slot .ad-label { display: block; font-size: 10px; letter-spacing: 2px; color: var(--dim); text-transform: uppercase; margin-bottom: 6px; }
.ad-top { padding-top: 16px; }
.ad-infeed { margin-top: 24px; }
.ad-inarticle { margin: 28px 0; }
.ad-sticky { position: sticky; top: 96px; }

/* ---------- Cards / common ---------- */
.card { border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.section-title { margin: 0 0 20px; font-family: var(--head); font-size: 24px; letter-spacing: 1px; text-transform: uppercase; }
.kicker { font-size: 12px; font-weight: 600; color: var(--green); letter-spacing: 1px; text-transform: uppercase; }
.meta { font-size: 12px; color: var(--dim); }
.thumb-ph { background: var(--card2); display: flex; align-items: center; justify-content: center; }
.thumb-ph svg { width: 40px; height: 40px; }

/* ---------- Home hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.hero-main { flex: 999 1 560px; min-width: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; }
.hero-media { position: relative; aspect-ratio: 16 / 9; max-height: 480px; width: 100%; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--card2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .thumb-ph { height: 100%; }
.hero-media .thumb-ph svg { width: 72px; height: 72px; }
.badge-latest { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 6px; background: var(--green); color: var(--bg); font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.hero-body { padding: 24px 28px 28px; }
.hero-body .meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.hero-title { margin: 0 0 10px; font-family: var(--head); font-size: 34px; line-height: 1.15; font-weight: 700; }
.hero-excerpt { margin: 0; color: var(--muted); }
.hero-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.trend-box { padding: 22px; }
.trend-box h2 { margin: 0 0 16px; font-family: var(--head); font-size: 18px; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.dot-amber { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); display: inline-block; }
.trend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.trend-list a { display: flex; gap: 14px; align-items: flex-start; }
.trend-num { font-family: var(--head); font-size: 26px; font-weight: 700; color: var(--green); line-height: 1; flex: none; }
.trend-title { font-weight: 600; font-size: 14px; line-height: 1.4; }
@media (max-width: 640px) { .hero-title { font-size: 26px; } .hero-body { padding: 18px 20px 22px; } }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line2); font-size: 14px; }
.chip.is-active { background: var(--green); border-color: var(--green); color: var(--bg); font-weight: 600; }

/* ---------- Main + sidebar layout ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 28px; padding-bottom: 48px; }
.content-col { flex: 999 1 640px; min-width: 0; }
.sidebar { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Post grid ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.post-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--green); transform: translateY(-2px); }
.post-card-media { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-media .thumb-ph { height: 100%; }
.post-card-body { padding: 16px 18px 18px; }
.post-card-body .kicker { font-size: 11px; display: block; margin-bottom: 8px; }
.post-card-title { margin: 0 0 10px; font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--text); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; }
.pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: var(--bg); font-weight: 700; }
.pagination .dots { border: 0; }

/* ---------- YouTube card ---------- */
.yt-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; border-color: #3A1E22; }
.yt-head { display: flex; align-items: center; gap: 12px; }
.yt-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 20px; overflow: hidden; flex: none; }
.yt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.yt-name { font-weight: 700; font-size: 17px; }
.yt-count { display: flex; align-items: baseline; gap: 8px; }
.yt-count strong { font-family: var(--head); font-weight: 700; font-size: 34px; color: var(--green); line-height: 1; }
.yt-count span { font-size: 14px; color: var(--muted); }
.goal-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.goal-bar span { display: block; height: 100%; background: var(--green); }
.goal-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: 6px; }
.yt-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Latest videos ---------- */
.videos-box { padding: 28px; background: #10141C; }
.videos-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.videos-head .section-title { margin: 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.video-item { display: flex; flex-direction: column; gap: 10px; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--card2); border: 1px solid var(--line); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 12px; background: var(--red); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.video-title { font-weight: 600; font-size: 15px; line-height: 1.4; }

/* ---------- Single article ---------- */
.breadcrumb { font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.breadcrumb a { color: var(--dim); }
.breadcrumb .current { color: var(--green); }
.entry-title { margin: 0 0 16px; font-family: var(--head); font-size: 40px; line-height: 1.15; font-weight: 700; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.byline .avatar-ts { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; overflow: hidden; }
.byline b { color: var(--text); }
.featured { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 28px; }
.featured img { width: 100%; }
.app-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; }
.fact { border-radius: 14px; border: 1px solid var(--line); background: var(--card); padding: 14px 16px; }
.fact small { display: block; font-size: 11px; letter-spacing: 1px; color: var(--dim); text-transform: uppercase; }
.fact b { font-weight: 700; }
.fact .amber { color: var(--amber); }
.fact .green { color: var(--green); }
.toc { padding: 20px 24px; margin-bottom: 28px; }
.toc-title { font-family: var(--head); font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--green); }
.single-article { max-width: 800px; }
@media (max-width: 640px) { .entry-title { font-size: 28px; } }

/* entry content typography */
.entry-content { font-size: 16px; line-height: 1.75; color: #C5CCD9; }
.entry-content > * { margin-top: 0; margin-bottom: 22px; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--head); color: var(--text); line-height: 1.25; scroll-margin-top: 90px; }
.entry-content h2 { font-size: 26px; margin-top: 36px; margin-bottom: 14px; }
.entry-content h3 { font-size: 21px; margin-top: 28px; margin-bottom: 10px; }
.entry-content a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.entry-content strong { color: var(--text); }
.entry-content img, .entry-content figure img { border-radius: 14px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 13px; color: var(--dim); text-align: center; margin-top: 8px; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote { margin-left: 0; padding: 16px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--line2); text-align: left; }
.entry-content th { background: var(--card2); color: var(--text); }
.entry-content code { background: var(--card2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.entry-content .wp-block-button__link { background: var(--green); color: var(--bg); border-radius: 12px; font-weight: 700; text-decoration: none; padding: 14px 24px; }
.entry-content iframe { max-width: 100%; }
.entry-content .wp-block-embed__wrapper iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 14px; }

/* video box */
.video-box { border-radius: 18px; border: 1px solid #3A1E22; background: var(--card); overflow: hidden; margin: 28px 0; color: var(--text); }
.video-box-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.video-box-head .dot-red { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.video-box-head b { font-family: var(--head); letter-spacing: 1px; }
.video-box-head span.sub { font-size: 13px; color: var(--dim); }
.yt-lite { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 0; padding: 0; cursor: pointer; }
.yt-lite.is-short { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-lite .play-btn { width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 14px; }
.yt-lite:hover .play-btn { filter: brightness(1.15); }
.video-box-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; }
.video-box-foot .who { display: flex; align-items: center; gap: 12px; }
.video-box-foot .who .yt-avatar { width: 40px; height: 40px; font-size: 13px; }
.video-box-foot .vt { font-weight: 700; font-size: 15px; line-height: 1.3; }
.video-box-foot .vc { font-size: 13px; color: var(--dim); }
.entry-content .video-box a.btn { text-decoration: none; color: #fff; }

.disclaimer { border-radius: 14px; border: 1px solid #4A3A1A; background: #1A1610; padding: 18px 20px; margin: 32px 0; }
.disclaimer b { color: var(--amber); display: block; margin-bottom: 6px; }
.disclaimer p { margin: 0; font-size: 14px; color: #C5CCD9; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.related-grid a { border-radius: 14px; border: 1px solid var(--line); background: var(--card); padding: 16px; font-weight: 600; font-size: 14px; line-height: 1.4; }
.related-grid a:hover { border-color: var(--green); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tags a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; color: var(--muted); }

/* archive header */
.archive-head { padding-top: 32px; }
.archive-head h1 { margin: 0 0 8px; font-family: var(--head); font-size: 34px; }
.archive-head p { margin: 0; color: var(--muted); }

/* comments */
.comments-area { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; }
.comment-list .children { list-style: none; padding-left: 20px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--text); }
.comment-form .submit { height: 44px; padding: 0 20px; border-radius: 10px; border: 0; background: var(--green); color: var(--bg); font-weight: 700; cursor: pointer; }

/* page */
.page-article { max-width: 860px; margin: 0 auto; padding-top: 36px; padding-bottom: 56px; }
.error-box { text-align: center; padding: 80px 24px; }
.error-box .big { font-family: var(--head); font-size: 96px; color: var(--green); line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg2); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding-top: 32px; padding-bottom: 32px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.copy { font-size: 13px; color: var(--dim); }

/* WP core classes */
.alignwide, .alignfull { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.wp-caption-text { font-size: 13px; color: var(--dim); }
.sticky, .bypostauthor, .gallery-caption { }
