/*
Theme Name: Bakesim Lite v4.0
Theme URI: https://bakesim.com
Author: Bakesim
Author URI: mailto:hello@bakesim.com
Description: Lightweight, SEO-first, AdSense-ready theme with clean light UI and Tier-1 optimized layout.
Version: 4.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.2
Text Domain: bakesim
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root{
  --brand-blue:#0b57d0;
  --text:#111;
  --text-muted:#444;
  --bg:#fff;
  --border:#ececec;
  --shadow:0 4px 8px rgba(0,0,0,.06);
  --radius:14px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font:16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif}
a{color:var(--brand-blue);text-decoration:none}
a:hover{opacity:.9}

.container{max-width:1200px;margin:0 auto;padding:0 16px}

.site-header{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--border);box-shadow:var(--shadow)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px}
.brand a{font-weight:800;font-size:22px;color:#111;letter-spacing:.2px}
.nav{display:flex;align-items:center;gap:18px}
.nav a{color:#111;padding:8px 10px;border-radius:10px}
.nav a:hover{background:#f6f7f9;color:var(--brand-blue)}
.searchform input[type="search"]{padding:9px 12px;border:1px solid var(--border);border-radius:10px;width:280px}
.searchform input[type="submit"]{display:none}

.hamb{display:none}
@media(max-width:860px){
  .nav{display:none}
  .hamb{display:flex;align-items:center;gap:10px}
  .searchform input[type="search"]{width:160px}
  .brand a{font-size:20px}
}

.hero{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;margin:20px 0 8px}
.hero .card{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;min-height:240px;box-shadow:var(--shadow)}
.card .thumb{background:#eef3ff;height:140px}
.card .pad{padding:14px}
.card h3{margin:0 0 8px 0;line-height:1.25;font-size:18px}
.card p.ex{margin:0;color:var(--text-muted)}

.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:12px 0 30px}
@media(max-width:860px){
  .hero{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
}

.sidebar{border-left:1px solid var(--border);padding-left:16px}
.layout{display:grid;grid-template-columns:2fr 1fr;gap:24px}
@media(max-width:1024px){
  .layout{grid-template-columns:1fr}
  .sidebar{border:none;padding-left:0}
}

.ad-placeholder{border:1px dashed #cbd5e1;background:#f8fafc;border-radius:12px;padding:10px;text-align:center;color:#475569;font-size:14px}

.article{max-width:750px;margin:0 auto}
.article h1{font-size:34px;line-height:1.15;margin:14px 0}
.meta{color:#667085;font-size:14px;margin-bottom:14px}
.article img{max-width:100%;height:auto;border-radius:12px}

.site-footer{border-top:1px solid var(--border);margin-top:40px}
.footer-inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.footer-right a{margin-left:16px;color:#374151}
.fine{color:#6b7280}

/* Cookie banner */
#bakesim-cookie{position:fixed;left:16px;right:16px;bottom:16px;padding:14px;border-radius:12px;background:#111;color:#fff;box-shadow:var(--shadow);display:none;z-index:99}
#bakesim-cookie .row{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
#bakesim-cookie button{border:0;border-radius:10px;padding:8px 12px;cursor:pointer}
#bakesim-accept{background:var(--brand-blue);color:#fff}
#bakesim-learn{background:#374151;color:#fff}
