/* ═══════════════════════════════════════════
   SELLYMART v2.0 — SellySell Multi-Niche Theme
   Logo-matched navy + teal palette
   Optimized fonts for traffic readability
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── LIGHT MODE (Default) ─────────────── */
:root, [data-theme="light"] {
  /* Backgrounds */
  --bg:#FAFAF8;
  --surface:#FFFFFF;
  --surface2:#F2F1ED;
  --surface3:#E5E3DD;
  /* Brand from logo */
  --accent:#1B2C5E;          /* Navy from logo */
  --accent-lt:#2D4282;       /* Lighter navy for hovers */
  --accent-dk:#0F1B40;       /* Deeper navy */
  --accent-soft:#EDF0F9;     /* Very light navy tint */
  --secondary:#0EA5A5;       /* Teal from logo */
  --secondary-soft:#E0F5F5;
  /* Text - high contrast */
  --text:#0A0F1E;            /* Near black with navy tint */
  --text-2:#404659;
  --text-3:#7A7E8A;
  --border:rgba(15,27,64,0.08);
  --border2:rgba(15,27,64,0.14);
  /* Post content */
  --post-text:#0F141F;
  --post-heading:#000814;
  --post-link:#1B2C5E;
  --post-link-h:#0EA5A5;
  --post-meta:#525767;
  --post-code-bg:#F2F1ED;
  --post-quote-bg:#FAFAF8;
  --post-quote-border:#0EA5A5;
  /* Typography */
  --font-head:'Fraunces',Georgia,'Times New Roman',serif;
  --font-body:'DM Sans',-apple-system,BlinkMacSystemFont,sans-serif;
  --font-post:'DM Sans',-apple-system,BlinkMacSystemFont,sans-serif;
  --radius:10px;
  --radius-lg:16px;
  --radius-xl:20px;
  /* Reading-optimized post sizes */
  --fs-post-body:18px;
  --fs-post-h2:30px;
  --fs-post-h3:23px;
  --fs-post-lh:1.78;
  /* Shadows */
  --shadow-sm:0 1px 2px rgba(15,27,64,0.04);
  --shadow:0 2px 12px rgba(15,27,64,0.06);
  --shadow-lg:0 12px 36px rgba(15,27,64,0.10);
}

/* ─── DARK MODE ──────────────────────── */
[data-theme="dark"] {
  --bg:#0B1220;              /* Deep navy-black */
  --surface:#131B2E;
  --surface2:#1B2540;
  --surface3:#243152;
  --accent:#5C7AC2;          /* Brighter navy for dark mode */
  --accent-lt:#7791D0;
  --accent-dk:#1B2C5E;
  --accent-soft:rgba(92,122,194,0.15);
  --secondary:#22D5D5;       /* Brighter teal for dark */
  --secondary-soft:rgba(34,213,213,0.15);
  --text:#F5F5F0;
  --text-2:#C8CAD0;
  --text-3:#7C8294;
  --border:rgba(255,255,255,0.07);
  --border2:rgba(255,255,255,0.13);
  --post-text:#E8E9E4;        /* Soft warm white - reduces eye strain */
  --post-heading:#FFFFFF;
  --post-link:#7791D0;
  --post-link-h:#22D5D5;
  --post-meta:#A8ABB7;
  --post-code-bg:#1B2540;
  --post-quote-bg:#131B2E;
  --post-quote-border:#22D5D5;
  --shadow-sm:0 1px 2px rgba(0,0,0,0.4);
  --shadow:0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg:0 12px 36px rgba(0,0,0,0.6);
}
[data-theme="dark"] .badge-tech     { background:rgba(92,122,194,0.18); color:#9EAEDA; }
[data-theme="dark"] .badge-business { background:rgba(34,213,213,0.18); color:#5DD9D9; }
[data-theme="dark"] .badge-finance  { background:rgba(245,158,11,0.18); color:#FBBF24; }
[data-theme="dark"] .badge-health   { background:rgba(239,68,68,0.18); color:#F87171; }
[data-theme="dark"] .badge-travel   { background:rgba(14,165,233,0.18); color:#38BDF8; }
[data-theme="dark"] .badge-home     { background:rgba(168,85,247,0.18); color:#C084FC; }
[data-theme="dark"] .badge-auto     { background:rgba(249,115,22,0.18); color:#FB923C; }
[data-theme="dark"] .badge-lifestyle{ background:rgba(236,72,153,0.18); color:#F472B6; }
[data-theme="dark"] .badge-default  { background:rgba(115,115,128,0.18); color:#A0A4B0; }
/* Logo color adjustment for dark mode - subtle brightness */
[data-theme="dark"] .site-logo img { filter:brightness(1.15); }

/* ─── FONT SIZE PRESETS ──────────────── */
[data-fontsize="small"]  { --fs-post-body:16px; --fs-post-h2:26px; --fs-post-h3:20px; --fs-post-lh:1.7; }
[data-fontsize="medium"] { --fs-post-body:18px; --fs-post-h2:30px; --fs-post-h3:23px; --fs-post-lh:1.78; }
[data-fontsize="large"]  { --fs-post-body:20px; --fs-post-h2:34px; --fs-post-h3:26px; --fs-post-lh:1.85; }
[data-fontsize="xlarge"] { --fs-post-body:22px; --fs-post-h2:38px; --fs-post-h3:28px; --fs-post-lh:1.9; }

html { scroll-behavior:smooth; }
body {
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; height:auto; }

/* ═══ HEADER ═══ */
.site-header { position:sticky; top:0; z-index:100; background:var(--surface); border-bottom:1px solid var(--border); backdrop-filter:saturate(180%) blur(8px); }
.header-inner { max-width:1320px; margin:0 auto; padding:0 28px; display:flex; align-items:center; gap:32px; height:74px; }
.site-logo { flex-shrink:0; display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-weight:700; font-size:24px; letter-spacing:-0.02em; color:var(--text); font-variation-settings:'opsz' 96; }
.site-logo img { height:42px; width:auto; }
.site-logo .logo-text { color:var(--text); font-weight:700; }
.site-logo .logo-text span { color:var(--secondary); }
.main-navigation { flex:1; }
.main-navigation ul { list-style:none; display:flex; gap:2px; margin:0; padding:0; }
.main-navigation li { position:relative; }
.main-navigation a { display:block; font-size:14px; font-weight:500; color:var(--text-2); padding:8px 14px; border-radius:8px; transition:all 0.15s; font-family:var(--font-body); }
.main-navigation a:hover { color:var(--accent); background:var(--accent-soft); }
.main-navigation .current-menu-item > a { color:var(--accent); background:var(--accent-soft); font-weight:600; }
.main-navigation ul ul { display:none; position:absolute; top:100%; left:0; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); min-width:200px; padding:8px; flex-direction:column; z-index:10; box-shadow:var(--shadow); }
.main-navigation li:hover > ul { display:flex; }
.main-navigation ul ul a { padding:10px 14px; }

.header-search { display:flex; align-items:center; gap:8px; background:var(--surface2); border:1px solid var(--border); border-radius:100px; padding:8px 14px; min-width:220px; transition:all 0.15s; }
.header-search:focus-within { background:var(--surface); border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.header-search svg { color:var(--text-3); flex-shrink:0; }
.header-search input { background:none; border:none; outline:none; color:var(--text); font-family:var(--font-body); font-size:13px; width:100%; }
.header-search input::placeholder { color:var(--text-3); }

.menu-toggle { display:none; background:none; border:1px solid var(--border2); border-radius:8px; color:var(--text); padding:8px 12px; cursor:pointer; font-size:18px; }
.topbar { background:var(--accent); color:#fff; text-align:center; padding:9px 20px; font-size:12px; font-weight:600; letter-spacing:0.04em; }
[data-theme="dark"] .topbar { background:var(--accent-dk); color:var(--text); }

/* ═══ HERO ═══ */
.hero { background:var(--surface); border-bottom:1px solid var(--border); padding:88px 28px 76px; text-align:center; position:relative; overflow:hidden; }
.hero::before { content:''; position:absolute; top:-50%; left:50%; transform:translateX(-50%); width:900px; height:900px; background:radial-gradient(circle, var(--secondary-soft) 0%, transparent 70%); opacity:0.5; pointer-events:none; }
.hero::after { content:''; position:absolute; top:-30%; right:-10%; width:500px; height:500px; background:radial-gradient(circle, var(--accent-soft) 0%, transparent 65%); opacity:0.5; pointer-events:none; }
.hero-inner { position:relative; max-width:920px; margin:0 auto; }
.hero-eyebrow { display:inline-flex; align-items:center; gap:8px; background:var(--surface); border:1px solid var(--border2); color:var(--text-2); font-size:12px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; padding:7px 16px; border-radius:100px; margin-bottom:28px; box-shadow:var(--shadow-sm); }
.hero-eyebrow::before { content:''; width:6px; height:6px; background:var(--secondary); border-radius:50%; animation:pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.3); } }
.hero h1 { font-family:var(--font-head); font-size:clamp(42px, 6.5vw, 80px); font-weight:600; line-height:1.02; letter-spacing:-0.035em; color:var(--text); margin-bottom:26px; font-variation-settings:'opsz' 144, 'SOFT' 50, 'WONK' 0; }
.hero h1 em { font-style:italic; font-weight:500; background:linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.hero-sub { font-family:var(--font-body); font-size:18px; color:var(--text-2); max-width:580px; margin:0 auto 38px; line-height:1.6; font-weight:400; }
.hero-search { display:flex; align-items:center; max-width:600px; margin:0 auto; background:var(--surface); border:1.5px solid var(--border2); border-radius:100px; overflow:hidden; transition:all 0.2s; box-shadow:var(--shadow); }
.hero-search:focus-within { border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-soft), var(--shadow); }
.hero-search svg { margin-left:24px; color:var(--text-3); flex-shrink:0; }
.hero-search input { flex:1; background:none; border:none; outline:none; padding:18px 16px; font-family:var(--font-body); font-size:15px; color:var(--text); font-weight:500; }
.hero-search input::placeholder { color:var(--text-3); font-weight:400; }
.hero-search button { background:var(--accent); border:none; color:#fff; font-family:var(--font-body); font-size:14px; font-weight:600; padding:0 30px; height:54px; cursor:pointer; transition:background 0.15s; flex-shrink:0; border-radius:100px; margin-right:5px; letter-spacing:0.02em; }
.hero-search button:hover { background:var(--secondary); }
.hero-tags { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:30px; }
.hero-tag { font-family:var(--font-body); font-size:12.5px; color:var(--text-2); padding:6px 14px; border-radius:100px; background:var(--surface2); border:1px solid var(--border); transition:all 0.15s; cursor:pointer; font-weight:500; }
.hero-tag:hover { color:var(--accent); border-color:var(--accent); background:var(--accent-soft); }

/* ═══ SECTION ═══ */
.section { max-width:1320px; margin:0 auto; padding:72px 28px; }
.section-sm { padding:48px 28px; }
.section-header { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:36px; gap:20px; flex-wrap:wrap; }
.section-title { font-family:var(--font-head); font-size:38px; font-weight:600; letter-spacing:-0.02em; color:var(--text); line-height:1.1; font-variation-settings:'opsz' 96, 'SOFT' 30; }
.section-subtitle { font-family:var(--font-body); font-size:14px; color:var(--text-3); margin-top:8px; font-weight:400; }
.section-link { font-family:var(--font-body); font-size:14px; font-weight:600; color:var(--accent); display:flex; align-items:center; gap:6px; padding:10px 18px; border-radius:100px; border:1px solid var(--border2); transition:all 0.15s; }
.section-link:hover { background:var(--accent-soft); border-color:var(--accent); gap:10px; }

/* ═══ FEATURED POSTS GRID ═══ */
.featured-grid { display:grid; grid-template-columns:1.5fr 1fr; gap:24px; }
.featured-grid .featured-main { grid-row:span 2; }
.featured-secondary { display:grid; grid-template-columns:1fr; gap:20px; grid-row:span 2; }

.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-xl); overflow:hidden; display:flex; flex-direction:column; transition:all 0.25s ease; box-shadow:var(--shadow-sm); }
.card:hover { border-color:var(--border2); transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.card-img { aspect-ratio:16/10; overflow:hidden; background:var(--surface2); }
.card-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s; }
.card:hover .card-img img { transform:scale(1.05); }
.card-body { padding:24px; flex:1; display:flex; flex-direction:column; gap:12px; }
.card-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.card-title { font-family:var(--font-head); font-size:22px; font-weight:600; line-height:1.25; letter-spacing:-0.015em; color:var(--text); flex:1; transition:color 0.15s; font-variation-settings:'opsz' 96, 'SOFT' 30; }
.card:hover .card-title { color:var(--accent); }
.card-excerpt { font-family:var(--font-body); font-size:14.5px; color:var(--text-2); line-height:1.6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-weight:400; }
.card-footer { display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:16px; border-top:1px solid var(--border); font-size:12px; color:var(--text-3); font-family:var(--font-body); }
.card-date { display:flex; align-items:center; gap:6px; }
.card-read-more { font-weight:600; color:var(--accent); display:flex; align-items:center; gap:4px; transition:gap 0.15s; }
.card:hover .card-read-more { gap:8px; color:var(--secondary); }

.featured-main .card-img { aspect-ratio:16/10; }
.featured-main .card-title { font-size:32px; line-height:1.15; }
.featured-main .card-excerpt { font-size:16px; -webkit-line-clamp:3; }

.featured-secondary .card { flex-direction:row; align-items:stretch; }
.featured-secondary .card-img { aspect-ratio:unset; width:160px; flex-shrink:0; }
.featured-secondary .card-body { padding:16px 18px; }
.featured-secondary .card-title { font-size:16px; line-height:1.3; font-weight:600; }
.featured-secondary .card-excerpt { display:none; }
.featured-secondary .card-footer { padding-top:10px; margin-top:8px; }

/* ═══ BADGES (8 categories) ═══ */
.badge { display:inline-block; font-family:var(--font-body); font-size:11px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; padding:5px 11px; border-radius:6px; text-decoration:none; }
.badge-tech     { background:rgba(27,44,94,0.1);   color:#1B2C5E; }
.badge-business { background:rgba(14,165,165,0.12); color:#0E7A7A; }
.badge-finance  { background:rgba(245,158,11,0.12); color:#B45309; }
.badge-health   { background:rgba(239,68,68,0.1);   color:#DC2626; }
.badge-travel   { background:rgba(14,165,233,0.12); color:#0284C7; }
.badge-home     { background:rgba(168,85,247,0.12); color:#7E22CE; }
.badge-auto     { background:rgba(249,115,22,0.12); color:#C2410C; }
.badge-lifestyle{ background:rgba(236,72,153,0.12); color:#BE185D; }
.badge-default  { background:var(--surface2); color:var(--text-2); }
.read-time { font-family:var(--font-body); font-size:12px; color:var(--text-3); font-weight:500; display:inline-flex; align-items:center; gap:4px; }

/* ═══ CATEGORIES GRID ═══ */
.categories-bg { background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.cat-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:18px; }
.cat-card { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg); padding:28px 22px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; transition:all 0.25s; text-decoration:none; position:relative; overflow:hidden; }
.cat-card::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:var(--cat-color, var(--accent)); transform:scaleX(0); transform-origin:left; transition:transform 0.3s; }
.cat-card:hover { border-color:var(--cat-color, var(--accent)); transform:translateY(-3px); box-shadow:var(--shadow); }
.cat-card:hover::after { transform:scaleX(1); }
.cat-icon { font-size:32px; line-height:1; display:inline-flex; width:54px; height:54px; background:var(--surface); border-radius:14px; align-items:center; justify-content:center; border:1px solid var(--border); margin-bottom:6px; }
.cat-name { font-family:var(--font-head); font-size:19px; font-weight:600; letter-spacing:-0.01em; color:var(--text); font-variation-settings:'opsz' 60, 'SOFT' 30; }
.cat-count { font-family:var(--font-body); font-size:13px; color:var(--text-3); font-weight:500; }
.cat-explore { margin-top:8px; font-family:var(--font-body); font-size:13px; color:var(--accent); font-weight:600; display:flex; align-items:center; gap:4px; transition:gap 0.15s; }
.cat-card:hover .cat-explore { gap:8px; color:var(--secondary); }

/* ═══ RECENT POSTS GRID ═══ */
.recent-grid { display:grid; grid-template-columns:1fr 320px; gap:48px; align-items:start; }
.recent-list { display:flex; flex-direction:column; gap:24px; }
.recent-card { display:grid; grid-template-columns:200px 1fr; gap:24px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; transition:all 0.2s; box-shadow:var(--shadow-sm); }
.recent-card:hover { border-color:var(--border2); transform:translateY(-2px); box-shadow:var(--shadow); }
.recent-card-img { aspect-ratio:1; overflow:hidden; background:var(--surface2); }
.recent-card-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s; }
.recent-card:hover .recent-card-img img { transform:scale(1.05); }
.recent-card-body { padding:20px 24px 20px 0; display:flex; flex-direction:column; gap:10px; }
.recent-card-title { font-family:var(--font-head); font-size:21px; font-weight:600; line-height:1.25; letter-spacing:-0.015em; color:var(--text); transition:color 0.15s; font-variation-settings:'opsz' 72; }
.recent-card:hover .recent-card-title { color:var(--accent); }
.recent-card-excerpt { font-family:var(--font-body); font-size:14.5px; color:var(--text-2); line-height:1.6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.recent-card-footer { display:flex; align-items:center; gap:14px; margin-top:auto; padding-top:8px; font-family:var(--font-body); font-size:12px; color:var(--text-3); }

/* ═══ SIDEBAR ═══ */
.sidebar { display:flex; flex-direction:column; gap:24px; position:sticky; top:100px; }
.widget { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; }
.widget-title { font-family:var(--font-head); font-size:17px; font-weight:600; letter-spacing:-0.01em; color:var(--text); padding:18px 20px 14px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:8px; font-variation-settings:'opsz' 60; }
.widget-title::before { content:''; width:3px; height:18px; background:var(--secondary); border-radius:2px; }
.widget-body { padding:18px 20px; }

.widget-search { display:flex; background:var(--bg); border:1px solid var(--border2); border-radius:100px; overflow:hidden; }
.widget-search input { flex:1; background:none; border:none; outline:none; padding:11px 16px; font-family:var(--font-body); font-size:13px; color:var(--text); }
.widget-search input::placeholder { color:var(--text-3); }
.widget-search button { background:var(--accent); border:none; color:#fff; padding:0 20px; cursor:pointer; font-size:13px; font-weight:600; font-family:var(--font-body); transition:background 0.15s; }
.widget-search button:hover { background:var(--secondary); }

.recent-post-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:14px; }
.recent-post-link { display:flex; gap:12px; align-items:flex-start; text-decoration:none; }
.recent-post-thumb { width:64px; height:64px; border-radius:10px; overflow:hidden; flex-shrink:0; background:var(--surface2); }
.recent-post-thumb img { width:100%; height:100%; object-fit:cover; transition:transform 0.3s; }
.recent-post-link:hover .recent-post-thumb img { transform:scale(1.08); }
.recent-post-thumb-placeholder { display:flex; align-items:center; justify-content:center; font-size:24px; color:var(--text-3); width:100%; height:100%; }
.recent-post-info { flex:1; min-width:0; }
.recent-post-title { font-family:var(--font-body); font-size:13.5px; font-weight:600; line-height:1.4; color:var(--text); margin:0 0 4px; transition:color 0.15s; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.recent-post-link:hover .recent-post-title { color:var(--accent); }
.recent-post-date { font-family:var(--font-body); font-size:11px; color:var(--text-3); font-weight:500; }

.cat-list { list-style:none; display:flex; flex-direction:column; gap:2px; padding:0; margin:0; }
.cat-list-item a { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:8px; color:var(--text-2); text-decoration:none; transition:all 0.15s; font-family:var(--font-body); }
.cat-list-item a:hover { background:var(--accent-soft); color:var(--accent); }
.cat-list-item.active a { background:var(--accent-soft); color:var(--accent); font-weight:600; }
.cat-list-icon { font-size:16px; flex-shrink:0; width:24px; text-align:center; }
.cat-list-name { flex:1; font-size:13.5px; font-weight:500; }
.cat-list-count { font-size:11px; color:var(--text-3); background:var(--surface2); padding:2px 8px; border-radius:100px; font-weight:600; min-width:30px; text-align:center; }

.newsletter { background:linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 60%, #0EA5A5 200%); color:#fff; padding:26px; border-radius:var(--radius-lg); position:relative; overflow:hidden; }
.newsletter::before { content:''; position:absolute; top:-50%; right:-30%; width:200px; height:200px; background:radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); pointer-events:none; }
.newsletter h4 { font-family:var(--font-head); font-size:19px; font-weight:600; margin-bottom:8px; letter-spacing:-0.01em; position:relative; }
.newsletter p { font-family:var(--font-body); font-size:13px; opacity:0.9; margin-bottom:16px; line-height:1.5; position:relative; }
.newsletter-form { display:flex; flex-direction:column; gap:8px; position:relative; }
.newsletter input { background:rgba(255,255,255,0.15); border:1px solid rgba(255,255,255,0.25); border-radius:8px; padding:11px 14px; font-family:var(--font-body); font-size:13px; color:#fff; outline:none; transition:all 0.15s; }
.newsletter input::placeholder { color:rgba(255,255,255,0.6); }
.newsletter input:focus { background:rgba(255,255,255,0.22); border-color:rgba(255,255,255,0.4); }
.newsletter button { background:#fff; color:var(--accent); border:none; border-radius:8px; padding:12px; font-family:var(--font-body); font-size:13px; font-weight:700; cursor:pointer; transition:all 0.15s; letter-spacing:0.02em; }
.newsletter button:hover { background:var(--secondary); color:#fff; transform:translateY(-1px); }

.tag-cloud { display:flex; flex-wrap:wrap; gap:6px; }
.tag-cloud a { font-family:var(--font-body); font-size:11.5px; font-weight:500; padding:5px 11px; border-radius:100px; background:var(--surface2); border:1px solid var(--border); color:var(--text-2); text-decoration:none; transition:all 0.15s; }
.tag-cloud a:hover { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }

.toc-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:4px; }
.toc-list li a { display:block; padding:8px 12px; color:var(--text-2); font-family:var(--font-body); font-size:13px; line-height:1.5; border-left:2px solid var(--border); transition:all 0.15s; }
.toc-list li a:hover { color:var(--accent); border-left-color:var(--accent); background:var(--accent-soft); }
.toc-list li.toc-active a { color:var(--accent); border-left-color:var(--secondary); background:var(--accent-soft); font-weight:600; }

/* ═══ PAGINATION ═══ */
.pagination { display:flex; justify-content:center; align-items:center; gap:6px; margin-top:48px; flex-wrap:wrap; }
.pagination .page-numbers, .page-btn { min-width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center; padding:0 10px; font-family:var(--font-body); font-size:14px; font-weight:600; border-radius:8px; border:1px solid var(--border); background:var(--surface); color:var(--text-2); text-decoration:none; transition:all 0.15s; }
.pagination .page-numbers:hover, .page-btn:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-soft); }
.pagination .page-numbers.current, .page-btn.active { background:var(--accent); border-color:var(--accent); color:#fff; }
.pagination .dots { border:none; background:none; }

/* ═══ FOOTER ═══ */
.site-footer { background:var(--surface); border-top:1px solid var(--border); padding:64px 28px 32px; margin-top:64px; }
.footer-inner { max-width:1320px; margin:0 auto; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1.5fr; gap:48px; margin-bottom:48px; }
.footer-brand .site-logo { font-size:22px; margin-bottom:18px; }
.footer-brand .site-logo img { height:38px; }
.footer-desc { font-family:var(--font-body); font-size:14px; color:var(--text-2); line-height:1.7; max-width:340px; margin-bottom:20px; font-weight:400; }
.footer-social { display:flex; gap:10px; }
.footer-social a { width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:var(--surface2); border:1px solid var(--border); color:var(--text-2); transition:all 0.15s; }
.footer-social a:hover { background:var(--accent); border-color:var(--accent); color:#fff; }
.footer-col-title { font-family:var(--font-head); font-size:14px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:var(--text); margin-bottom:18px; }
.footer-links { list-style:none; display:flex; flex-direction:column; gap:10px; padding:0; margin:0; }
.footer-links a { font-family:var(--font-body); font-size:14px; color:var(--text-2); transition:color 0.15s; }
.footer-links a:hover { color:var(--accent); }
.footer-newsletter input { width:100%; background:var(--surface2); border:1px solid var(--border2); border-radius:8px; padding:11px 14px; font-family:var(--font-body); font-size:13px; color:var(--text); outline:none; margin-bottom:8px; }
.footer-newsletter input:focus { border-color:var(--accent); }
.footer-newsletter button { width:100%; background:var(--accent); border:none; border-radius:8px; padding:12px; color:#fff; font-family:var(--font-body); font-size:13px; font-weight:600; cursor:pointer; transition:all 0.15s; }
.footer-newsletter button:hover { background:var(--secondary); }
.footer-bottom { border-top:1px solid var(--border); padding-top:24px; display:flex; justify-content:space-between; align-items:center; font-family:var(--font-body); font-size:13px; color:var(--text-3); flex-wrap:wrap; gap:12px; }

/* ═══ SINGLE POST ═══ */
.single-post-header { background:var(--surface); border-bottom:1px solid var(--border); padding:52px 24px 40px; text-align:center; }
.single-post-header .badge { margin-bottom:16px; }
.single-post-header h1 { font-family:var(--font-head); font-size:clamp(28px, 4.2vw, 46px); font-weight:600; line-height:1.15; letter-spacing:-0.025em; color:var(--post-heading); max-width:840px; margin:0 auto 18px; font-variation-settings:'opsz' 144, 'SOFT' 30; }
.post-meta-bar { display:flex; justify-content:center; gap:18px; font-family:var(--font-body); font-size:13px; color:var(--post-meta); flex-wrap:wrap; font-weight:500; }
.post-meta-bar span { display:flex; align-items:center; gap:6px; }

.single-wrap { max-width:1320px; margin:0 auto; padding:0 28px; }
.single-grid { display:grid; grid-template-columns:minmax(0, 1fr) 320px; gap:56px; align-items:start; padding:40px 0 64px; }
.single-main { min-width:0; }

.post-featured-image { margin:0 0 32px; }
.post-featured-image img { border-radius:var(--radius-xl); border:1px solid var(--border); width:100%; max-height:440px; object-fit:cover; display:block; }

.affiliate-disclosure { background:var(--secondary-soft); border:1px solid var(--secondary); border-left:4px solid var(--secondary); border-radius:var(--radius); padding:14px 18px; margin-bottom:32px; font-family:var(--font-body); font-size:13.5px; color:var(--text-2); line-height:1.6; }
.affiliate-disclosure strong { color:var(--secondary); font-weight:700; }
[data-theme="dark"] .affiliate-disclosure { background:var(--secondary-soft); }
[data-theme="dark"] .affiliate-disclosure strong { color:var(--secondary); }

/* Post Content - OPTIMIZED FOR READING */
.post-content-wrap { max-width:820px; margin:0 auto; padding:48px 24px 64px; }
.single-main .post-content-wrap { max-width:100%; margin:0; padding:0; }
.post-content-wrap p { font-family:var(--font-post); font-size:var(--fs-post-body); line-height:var(--fs-post-lh); color:var(--post-text); margin-bottom:24px; font-weight:400; letter-spacing:-0.005em; }
.post-content-wrap h2 { font-family:var(--font-head); font-size:var(--fs-post-h2); font-weight:600; letter-spacing:-0.025em; color:var(--post-heading); margin:52px 0 20px; padding-bottom:14px; border-bottom:2px solid var(--secondary); line-height:1.2; font-variation-settings:'opsz' 96, 'SOFT' 30; }
.post-content-wrap h3 { font-family:var(--font-head); font-size:var(--fs-post-h3); font-weight:600; letter-spacing:-0.02em; color:var(--post-heading); margin:38px 0 14px; line-height:1.3; font-variation-settings:'opsz' 60; }
.post-content-wrap h4 { font-family:var(--font-body); font-size:calc(var(--fs-post-body) + 2px); font-weight:700; color:var(--post-heading); margin:28px 0 10px; }
.post-content-wrap ul, .post-content-wrap ol { padding-left:28px; margin-bottom:26px; color:var(--post-text); font-family:var(--font-post); font-size:var(--fs-post-body); line-height:var(--fs-post-lh); }
.post-content-wrap li { margin-bottom:12px; padding-left:6px; }
.post-content-wrap ul li::marker { color:var(--secondary); }
.post-content-wrap ol li::marker { color:var(--secondary); font-weight:700; }
.post-content-wrap a { color:var(--post-link); text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:3px; font-weight:500; transition:color 0.15s; }
.post-content-wrap a:hover { color:var(--post-link-h); }
.post-content-wrap strong { color:var(--post-heading); font-weight:700; }
.post-content-wrap em { font-family:var(--font-head); font-style:italic; color:var(--post-heading); }
.post-content-wrap blockquote { border-left:4px solid var(--post-quote-border); padding:20px 28px; margin:32px 0; background:var(--post-quote-bg); border-radius:0 var(--radius) var(--radius) 0; font-family:var(--font-head); font-style:italic; font-weight:500; font-size:calc(var(--fs-post-body) + 2px); color:var(--post-text); line-height:1.55; }
.post-content-wrap code { background:var(--post-code-bg); padding:2px 8px; border-radius:4px; font-size:0.88em; color:var(--accent); font-family:'SF Mono', Menlo, Monaco, monospace; }
.post-content-wrap pre { background:var(--post-code-bg); border:1px solid var(--border); border-radius:var(--radius); padding:20px; overflow-x:auto; margin:24px 0; }
.post-content-wrap pre code { background:none; padding:0; font-size:14px; color:var(--post-text); }

.post-content-wrap img, .post-content-wrap figure img, .post-content-wrap .wp-block-image img { width:100%; max-width:100%; height:auto; border-radius:var(--radius-lg); border:1px solid var(--border); margin:32px 0; display:block; max-height:440px; object-fit:cover; }
.post-content-wrap figure { margin:32px 0; }
.post-content-wrap figure img { margin:0; }
.post-content-wrap figcaption { font-family:var(--font-body); font-size:13px; color:var(--text-3); text-align:center; margin-top:10px; font-style:italic; }

.post-content-wrap table { width:100%; border-collapse:collapse; margin:32px 0; font-family:var(--font-body); font-size:14px; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; display:table; }
.post-content-wrap th, .post-content-wrap td { padding:12px 14px; border:1px solid var(--border); text-align:left; color:var(--post-text); vertical-align:top; line-height:1.5; }
.post-content-wrap th { background:var(--accent-soft); font-weight:700; color:var(--accent); font-family:var(--font-body); text-transform:uppercase; font-size:11px; letter-spacing:0.06em; }
.post-content-wrap tr:nth-child(even) { background:var(--surface); }

.post-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:40px; padding-top:24px; border-top:1px solid var(--border); }
.post-tags a { font-family:var(--font-body); font-size:12px; font-weight:500; padding:6px 14px; border-radius:100px; background:var(--surface); border:1px solid var(--border2); color:var(--text-2); text-decoration:none; transition:all 0.15s; }
.post-tags a:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-soft); }

.author-box { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-xl); padding:24px; margin-top:40px; display:flex; gap:18px; align-items:flex-start; }
.author-avatar { width:64px; height:64px; border-radius:50%; background:var(--surface2); flex-shrink:0; overflow:hidden; border:2px solid var(--secondary-soft); }
.author-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.author-name { font-family:var(--font-head); font-size:18px; font-weight:600; color:var(--text); margin-bottom:4px; letter-spacing:-0.01em; }
.author-role { font-family:var(--font-body); font-size:11px; color:var(--secondary); font-weight:700; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:8px; }
.author-bio { font-family:var(--font-body); font-size:14px; color:var(--text-2); line-height:1.6; }

.related-posts { margin-top:56px; padding-top:40px; border-top:1px solid var(--border); }
.related-posts h3 { font-family:var(--font-head); font-size:26px; font-weight:600; letter-spacing:-0.02em; color:var(--text); margin-bottom:24px; font-variation-settings:'opsz' 96; }
.related-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:20px; }

/* ═══ ARCHIVE / SEARCH ═══ */
.archive-header { background:var(--surface); border-bottom:1px solid var(--border); padding:56px 28px; text-align:center; }
.archive-header h1 { font-family:var(--font-head); font-size:44px; font-weight:600; letter-spacing:-0.025em; color:var(--text); margin-bottom:8px; line-height:1.1; font-variation-settings:'opsz' 144, 'SOFT' 30; }
.archive-header p { font-family:var(--font-body); color:var(--text-3); font-size:15px; }
.archive-header .badge { margin-bottom:14px; display:inline-block; }

/* ═══ COMMENTS ═══ */
.comments-area { margin-top:48px; padding-top:40px; border-top:1px solid var(--border); }
.comments-title { font-family:var(--font-head); font-size:26px; font-weight:600; color:var(--text); margin-bottom:24px; letter-spacing:-0.02em; }
.comment-list { list-style:none; padding:0; }
.comment-body { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:20px; margin-bottom:14px; }
.comment-author { font-family:var(--font-body); font-weight:600; color:var(--text); margin-bottom:4px; }
.comment-meta { font-family:var(--font-body); font-size:12px; color:var(--text-3); margin-bottom:12px; }
.comment-content { font-family:var(--font-body); font-size:14px; color:var(--text-2); line-height:1.7; }
.comment-content p { margin-bottom:8px; }
.comment-reply-link { font-family:var(--font-body); font-size:12px; font-weight:600; color:var(--accent); text-transform:uppercase; letter-spacing:0.06em; }
.comment-form label { display:block; font-family:var(--font-body); font-size:13px; font-weight:600; color:var(--text); margin-bottom:6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width:100%; background:var(--surface); border:1px solid var(--border2); border-radius:10px; padding:12px 14px; font-family:var(--font-body); font-size:14px; color:var(--text); outline:none; margin-bottom:16px; transition:all 0.15s; }
.comment-form input:focus, .comment-form textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.comment-form .submit { background:var(--accent); border:none; border-radius:10px; padding:12px 28px; font-family:var(--font-body); font-size:14px; font-weight:600; color:#fff; cursor:pointer; transition:all 0.15s; }
.comment-form .submit:hover { background:var(--secondary); }

/* ═══ 404 ═══ */
.error-404 { text-align:center; padding:120px 28px; }
.error-404 h1 { font-family:var(--font-head); font-size:160px; font-weight:600; background:linear-gradient(135deg, var(--accent), var(--secondary)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; line-height:1; margin-bottom:8px; letter-spacing:-0.05em; font-variation-settings:'opsz' 144, 'SOFT' 50; }
.error-404 h2 { font-family:var(--font-head); font-size:34px; font-weight:600; color:var(--text); margin-bottom:12px; letter-spacing:-0.02em; }
.error-404 p { font-family:var(--font-body); color:var(--text-2); font-size:17px; margin-bottom:32px; max-width:480px; margin-left:auto; margin-right:auto; }

/* ═══ PAGE TEMPLATE ═══ */
.page-wrap { max-width:820px; margin:0 auto; padding:0 28px; }
.page-content.post-content-wrap { max-width:100%; margin:0; padding:48px 0 64px; }
.page-featured-image { max-width:1080px; margin:32px auto 0; padding:0 28px; }
.page-featured-image img { border-radius:var(--radius-xl); border:1px solid var(--border); width:100%; max-height:420px; object-fit:cover; }

/* ═══ SEARCH FORM ═══ */
.search-form { display:flex; background:var(--surface); border:1.5px solid var(--border2); border-radius:100px; overflow:hidden; box-shadow:var(--shadow-sm); }
.search-form .search-field { flex:1; background:none; border:none; outline:none; padding:14px 22px; font-family:var(--font-body); font-size:15px; color:var(--text); font-weight:500; }
.search-form .search-field::placeholder { color:var(--text-3); font-weight:400; }
.search-form .search-submit { background:var(--accent); border:none; color:#fff; font-family:var(--font-body); font-size:14px; font-weight:600; padding:0 28px; cursor:pointer; transition:background 0.15s; letter-spacing:0.02em; }
.search-form .search-submit:hover { background:var(--secondary); }

/* ═══ WP DEFAULTS ═══ */
.alignleft { float:left; margin:0 20px 20px 0; }
.alignright { float:right; margin:0 0 20px 20px; }
.aligncenter { display:block; margin:0 auto 20px; }
.wp-caption { max-width:100%; }
.wp-caption-text { font-family:var(--font-body); font-size:12px; color:var(--text-3); text-align:center; margin-top:8px; }
.screen-reader-text { clip:rect(1px,1px,1px,1px); position:absolute !important; height:1px; width:1px; overflow:hidden; }
.sticky .card { border-color:var(--secondary); }

/* ═══ RESPONSIVE ═══ */
@media (max-width:1024px) {
  .featured-grid { grid-template-columns:1fr; }
  .featured-grid .featured-main { grid-row:auto; }
  .featured-secondary { grid-template-columns:1fr 1fr; grid-row:auto; }
  .recent-grid { grid-template-columns:1fr; }
  .single-grid { grid-template-columns:1fr; gap:32px; }
  .sidebar { position:static; }
  .cat-grid { grid-template-columns:repeat(3, 1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .related-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:768px) {
  .header-inner { gap:16px; height:64px; padding:0 20px; }
  .main-navigation ul { display:none; }
  .main-navigation.toggled ul { display:flex; flex-direction:column; position:absolute; top:64px; left:0; right:0; background:var(--surface); border-bottom:1px solid var(--border); padding:16px 20px; z-index:99; box-shadow:var(--shadow); }
  .menu-toggle { display:block; }
  .header-search { display:none; }
  .hero { padding:60px 20px 52px; }
  .hero h1 { font-size:38px; }
  .hero-search button { padding:0 18px; font-size:13px; }
  .section { padding:48px 20px; }
  .section-title { font-size:28px; }
  .featured-secondary { grid-template-columns:1fr; }
  .featured-secondary .card { flex-direction:column; }
  .featured-secondary .card-img { width:100%; aspect-ratio:16/10; }
  .recent-card { grid-template-columns:1fr; }
  .recent-card-img { aspect-ratio:16/10; }
  .recent-card-body { padding:18px 20px; }
  .cat-grid { grid-template-columns:1fr 1fr; gap:12px; }
  .cat-card { padding:20px 18px; }
  .footer-grid { grid-template-columns:1fr; gap:32px; }
  .footer-bottom { flex-direction:column; text-align:center; }
  .related-grid { grid-template-columns:1fr; }
  .author-box { flex-direction:column; align-items:center; text-align:center; }
  .single-post-header { padding:36px 20px 28px; }
  .single-post-header h1 { font-size:26px; }
  .post-featured-image img { max-height:280px; }
  .post-content-wrap img { max-height:280px; }
  .error-404 h1 { font-size:108px; }
}
@media (max-width:480px) {
  .site-logo .logo-text { font-size:18px; }
  .site-logo img { height:34px; }
  .post-meta-bar { gap:12px; font-size:12px; }
}
