/*
Theme Name: TechBoom
Theme URI: https://thetechboom.com
Author: The Tech Boom
Author URI: https://thetechboom.com
Description: A lightweight editorial WordPress theme for AI, technology news, explainers and how-to content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: techboom
Tags: blog, news, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root{
  --tb-bg:#ffffff;
  --tb-surface:#f5f7fb;
  --tb-text:#131722;
  --tb-muted:#677084;
  --tb-line:#e4e8f0;
  --tb-accent:#1769ff;
  --tb-accent-dark:#0d4fd1;
  --tb-max:1180px;
  --tb-radius:18px;
  --tb-shadow:0 10px 30px rgba(18, 28, 45, .08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--tb-bg);
  color:var(--tb-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.65;
}
a{color:inherit;text-decoration:none}
a:hover{color:var(--tb-accent)}
img{max-width:100%;height:auto;display:block}
.container{width:min(calc(100% - 32px),var(--tb-max));margin-inline:auto}
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--tb-line);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:76px}
.brand{display:flex;align-items:center;gap:14px}
.brand-text{font-size:1.4rem;font-weight:850;letter-spacing:-.03em}
.site-tagline{font-size:.78rem;color:var(--tb-muted);margin-top:-2px}
.custom-logo{max-height:44px;width:auto}
.primary-nav ul{display:flex;gap:22px;list-style:none;margin:0;padding:0;align-items:center}
.primary-nav a{font-size:.92rem;font-weight:700}
.menu-toggle{
  display:none;border:1px solid var(--tb-line);background:#fff;border-radius:12px;
  padding:10px 12px;font:inherit;font-weight:700;
}
.hero{padding:42px 0 26px}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.85fr);gap:28px}
.hero-main,.hero-side{border-radius:var(--tb-radius);overflow:hidden;background:var(--tb-surface)}
.hero-main{position:relative;min-height:470px}
.hero-main img{width:100%;height:470px;object-fit:cover}
.hero-overlay{
  position:absolute;inset:auto 0 0 0;padding:36px;
  background:linear-gradient(transparent,rgba(8,13,24,.94));
  color:white;
}
.kicker{
  display:inline-flex;align-items:center;gap:7px;
  color:var(--tb-accent);font-size:.78rem;text-transform:uppercase;
  letter-spacing:.09em;font-weight:850;
}
.hero-overlay .kicker{color:#9fc2ff}
.hero-title{font-size:clamp(2rem,4vw,3.6rem);line-height:1.02;letter-spacing:-.04em;margin:10px 0 12px}
.meta{font-size:.84rem;color:var(--tb-muted)}
.hero-overlay .meta{color:#d9deea}
.hero-side{padding:24px;display:flex;flex-direction:column;gap:20px}
.side-story{display:grid;grid-template-columns:110px 1fr;gap:15px;padding-bottom:20px;border-bottom:1px solid var(--tb-line)}
.side-story:last-child{border-bottom:0;padding-bottom:0}
.side-story img{width:110px;height:90px;object-fit:cover;border-radius:12px}
.side-story h3{font-size:1.04rem;line-height:1.25;margin:5px 0 0}
.section{padding:34px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}
.section-title{font-size:1.7rem;letter-spacing:-.03em;margin:0}
.section-link{color:var(--tb-accent);font-weight:800;font-size:.9rem}
.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.card{
  border:1px solid var(--tb-line);border-radius:var(--tb-radius);overflow:hidden;background:#fff;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{transform:translateY(-3px);box-shadow:var(--tb-shadow);border-color:#d6deed}
.card-thumb{aspect-ratio:16/9;background:var(--tb-surface);overflow:hidden}
.card-thumb img{width:100%;height:100%;object-fit:cover}
.card-body{padding:20px}
.card h3{margin:8px 0 9px;font-size:1.23rem;line-height:1.23;letter-spacing:-.02em}
.card p{margin:0;color:var(--tb-muted);font-size:.94rem}
.split-section{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:28px}
.news-list{display:flex;flex-direction:column;border-top:1px solid var(--tb-line)}
.news-item{display:grid;grid-template-columns:150px 1fr;gap:18px;padding:18px 0;border-bottom:1px solid var(--tb-line)}
.news-item img{width:150px;height:95px;object-fit:cover;border-radius:12px}
.news-item h3{margin:5px 0;font-size:1.12rem;line-height:1.28}
.aside-box{background:var(--tb-surface);padding:24px;border-radius:var(--tb-radius);align-self:start}
.aside-box h3{margin-top:0}
.newsletter{
  margin:32px 0 60px;padding:34px;border-radius:24px;
  background:linear-gradient(135deg,#101827,#203860);color:white;
}
.newsletter h2{margin:0 0 8px;font-size:2rem;letter-spacing:-.03em}
.newsletter p{color:#d8dfec;max-width:700px;margin:0}
.content-wrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:40px;padding:42px 0}
.article-header{margin-bottom:24px}
.article-title{font-size:clamp(2.2rem,5vw,4.3rem);line-height:1.02;letter-spacing:-.045em;margin:10px 0 16px}
.article-featured{border-radius:22px;overflow:hidden;margin:20px 0 30px}
.entry-content{font-size:1.06rem}
.entry-content p{margin:0 0 1.4em}
.entry-content h2{font-size:1.8rem;line-height:1.2;margin-top:1.8em}
.entry-content h3{font-size:1.4rem}
.entry-content a{color:var(--tb-accent);text-decoration:underline}
.entry-content blockquote{margin:28px 0;padding:20px 24px;border-left:4px solid var(--tb-accent);background:var(--tb-surface)}
.entry-content pre{overflow:auto;padding:18px;background:#101827;color:#f3f5f8;border-radius:14px}
.sidebar-box{border:1px solid var(--tb-line);border-radius:16px;padding:20px;margin-bottom:20px}
.sidebar-box h3{margin-top:0}
.archive-head{padding:42px 0 8px}
.archive-head h1{font-size:2.5rem;margin:0;letter-spacing:-.04em}
.archive-head p{color:var(--tb-muted)}
.pagination{margin:32px 0}
.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}
.pagination .page-numbers{padding:9px 13px;border:1px solid var(--tb-line);border-radius:10px}
.pagination .current{background:var(--tb-accent);color:white;border-color:var(--tb-accent)}
.site-footer{border-top:1px solid var(--tb-line);padding:40px 0;color:var(--tb-muted);background:#fbfcfe}
.footer-inner{display:grid;grid-template-columns:1.3fr .7fr;gap:30px}
.footer-brand{font-size:1.2rem;font-weight:850;color:var(--tb-text)}
.footer-menu ul{list-style:none;padding:0;margin:0;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:16px}
.empty-state{padding:70px 0;text-align:center}
.search-form{display:flex;gap:8px}
.search-field{width:100%;padding:11px 12px;border:1px solid var(--tb-line);border-radius:10px}
.search-submit{border:0;background:var(--tb-accent);color:#fff;border-radius:10px;padding:11px 15px;font-weight:800;cursor:pointer}
@media (max-width:900px){
  .hero-grid,.split-section,.content-wrap{grid-template-columns:1fr}
  .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sidebar{display:none}
  .menu-toggle{display:block}
  .primary-nav{display:none;position:absolute;left:0;right:0;top:76px;background:#fff;border-bottom:1px solid var(--tb-line);padding:12px 16px}
  .primary-nav.is-open{display:block}
  .primary-nav ul{flex-direction:column;align-items:flex-start;gap:6px}
  .primary-nav a{display:block;padding:8px 0}
}
@media (max-width:620px){
  .post-grid{grid-template-columns:1fr}
  .hero-main,.hero-main img{min-height:390px;height:390px}
  .hero-overlay{padding:24px}
  .side-story{grid-template-columns:90px 1fr}
  .side-story img{width:90px;height:76px}
  .news-item{grid-template-columns:110px 1fr}
  .news-item img{width:110px;height:82px}
  .footer-inner{grid-template-columns:1fr}
  .footer-menu ul{justify-content:flex-start}
  .site-tagline{display:none}
}
