/*
Theme Name: ScookieTech
Theme URI: http://scookietechie.blog/
Author: ScookieTechie
Author URI: http://scookietechie.blog/
Description: ScookieTech is a clean, fast, professional blogging theme built for technology publications, news sites and personal tech blogs. It ships with a hero landing page, featured post grids, category highlight blocks, sticky sidebar widgets, dark-mode-friendly colors, full responsive layout and zero page-builder bloat. Built for ScookieTechie.blog.
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: LICENSE
Text Domain: scookietech
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, technology

ScookieTech WordPress Theme, Copyright ScookieTechie
ScookieTech is distributed under the terms of the GNU GPL v2 or later.
*/

/* =========================================================
   0. CSS VARIABLES / THEME TOKENS
   ========================================================= */
:root{
  --st-bg: #f7f8fa;
  --st-surface: #ffffff;
  --st-text: #1a1d23;
  --st-text-muted: #5b6270;
  --st-border: #e6e8ec;
  --st-primary: #2f5fff;
  --st-primary-dark: #1c3fd1;
  --st-accent: #00c2a8;
  --st-warn: #ff5c5c;
  --st-radius: 10px;
  --st-shadow: 0 2px 10px rgba(20,24,40,.06);
  --st-shadow-lg: 0 10px 30px rgba(20,24,40,.12);
  --st-max: 1180px;
  --st-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --st-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark){
  body.st-auto-dark{
    --st-bg: #0f1115;
    --st-surface: #171a21;
    --st-text: #eef1f6;
    --st-text-muted: #9aa2b1;
    --st-border: #262a33;
    --st-shadow: 0 2px 10px rgba(0,0,0,.4);
    --st-shadow-lg: 0 10px 30px rgba(0,0,0,.55);
  }
}

/* =========================================================
   1. RESET / BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--st-font);
  background: var(--st-bg);
  color: var(--st-text);
  line-height:1.7;
  font-size:17px;
  transition: background .2s ease, color .2s ease;
}
img{ max-width:100%; height:auto; display:block; }
a{ color: var(--st-primary); text-decoration:none; }
a:hover{ color: var(--st-primary-dark); text-decoration:underline; }
ul, ol{ padding-left:1.3em; }
h1,h2,h3,h4,h5,h6{ line-height:1.25; font-weight:800; margin:0 0 .5em; letter-spacing:-.01em; }
h1{ font-size:2.4rem; }
h2{ font-size:1.85rem; }
h3{ font-size:1.4rem; }
p{ margin:0 0 1.2em; }
blockquote{
  margin:1.5em 0; padding:.8em 1.4em; border-left:4px solid var(--st-primary);
  background: var(--st-surface); color: var(--st-text-muted); font-style:italic; border-radius:0 8px 8px 0;
}
code, kbd, pre{ font-family: var(--st-font-mono); font-size:.92em; }
pre{ background:#11141a; color:#e6e8ec; padding:1.1em 1.3em; border-radius: var(--st-radius); overflow:auto; }
pre code{ background:none; padding:0; color:inherit; }
:not(pre) > code{ background: rgba(47,95,255,.08); color: var(--st-primary-dark); padding:.15em .4em; border-radius:5px; }
table{ width:100%; border-collapse:collapse; margin:1.4em 0; }
table th, table td{ padding:.6em .8em; border:1px solid var(--st-border); text-align:left; }
table th{ background: var(--st-surface); }
hr{ border:none; border-top:1px solid var(--st-border); margin:2em 0; }
.screen-reader-text{
  position:absolute !important; clip:rect(1px,1px,1px,1px); width:1px; height:1px;
  overflow:hidden; word-wrap:normal !important;
}
.screen-reader-text:focus{
  background:#fff; color:#000; display:block; height:auto; width:auto; padding:15px 23px;
  position:fixed; top:6px; left:6px; z-index:100000; border-radius:6px; box-shadow: var(--st-shadow-lg);
}

/* =========================================================
   2. LAYOUT
   ========================================================= */
.st-container{ max-width: var(--st-max); margin:0 auto; padding:0 20px; }
.st-site{ display:flex; flex-direction:column; min-height:100vh; }
.st-main-wrap{ flex:1 0 auto; padding:44px 0 60px; }
.st-layout{ display:grid; grid-template-columns: 2.3fr 1fr; gap:44px; align-items:start; }
@media (max-width: 900px){ .st-layout{ grid-template-columns: 1fr; } }

/* =========================================================
   3. HEADER
   ========================================================= */
.st-header{
  position: sticky; top:0; z-index:999;
  background: var(--st-surface);
  border-bottom:1px solid var(--st-border);
  backdrop-filter: blur(8px);
}
.st-topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0;
  gap:20px;
}
.st-logo{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:1.5rem; color:var(--st-text); }
.st-logo:hover{ color:var(--st-primary); text-decoration:none; }
.st-logo img{ max-height:42px; width:auto; }
.st-logo .st-logo-badge{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:9px;
  background: linear-gradient(135deg, var(--st-primary), var(--st-accent));
  color:#fff; font-weight:900; font-size:1.1rem;
}
.st-primary-nav ul{ list-style:none; margin:0; padding:0; display:flex; gap:26px; }
.st-primary-nav a{ color: var(--st-text); font-weight:600; font-size:.98rem; }
.st-primary-nav a:hover{ color: var(--st-primary); text-decoration:none; }
.st-primary-nav .current-menu-item > a{ color: var(--st-primary); }
.st-primary-nav ul ul{
  display:none; position:absolute; background:var(--st-surface); border:1px solid var(--st-border);
  border-radius:8px; padding:8px; flex-direction:column; gap:2px; box-shadow: var(--st-shadow-lg); min-width:200px; margin-top:14px;
}
.st-primary-nav li{ position:relative; }
.st-primary-nav li:hover > ul{ display:flex; }
.st-primary-nav ul ul a{ padding:8px 10px; display:block; border-radius:6px; }
.st-primary-nav ul ul a:hover{ background: var(--st-bg); text-decoration:none; }

.st-header-actions{ display:flex; align-items:center; gap:14px; }
.st-search-toggle, .st-menu-toggle{
  border:1px solid var(--st-border); background:var(--st-surface); color:var(--st-text);
  width:40px; height:40px; border-radius:9px; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.st-menu-toggle{ display:none; }
.st-header-search{ display:none; padding:14px 0; border-top:1px solid var(--st-border); }
.st-header-search.is-open{ display:block; }
.st-header-search form{ display:flex; gap:8px; }
.st-header-search input[type=search]{ flex:1; }

@media (max-width: 900px){
  .st-primary-nav{ display:none; width:100%; }
  .st-primary-nav.is-open{ display:block; }
  .st-primary-nav ul{ flex-direction:column; gap:0; padding:10px 0; }
  .st-primary-nav ul ul{ position:static; display:block; box-shadow:none; border:none; padding-left:14px; margin-top:0; }
  .st-primary-nav a{ display:block; padding:10px 0; border-bottom:1px solid var(--st-border); }
  .st-menu-toggle{ display:flex; }
  .st-topbar{ flex-wrap:wrap; }
}

/* =========================================================
   4. BUTTONS / FORMS
   ========================================================= */
.st-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background: var(--st-primary); color:#fff; border:none; border-radius:8px;
  padding:12px 22px; font-weight:700; font-size:.95rem; cursor:pointer;
}
.st-btn:hover{ background: var(--st-primary-dark); color:#fff; text-decoration:none; }
.st-btn.st-btn-outline{ background:transparent; color: var(--st-primary); border:1.5px solid var(--st-primary); }
.st-btn.st-btn-outline:hover{ background: var(--st-primary); color:#fff; }
input[type=text], input[type=email], input[type=search], input[type=url], input[type=tel], textarea, select{
  width:100%; padding:11px 14px; border:1px solid var(--st-border); border-radius:8px;
  background: var(--st-surface); color: var(--st-text); font-family:inherit; font-size:1rem;
}
input:focus, textarea:focus, select:focus{ outline:2px solid var(--st-primary); outline-offset:1px; }
label{ font-weight:600; display:block; margin-bottom:6px; }

/* =========================================================
   5. HERO / FRONT PAGE
   ========================================================= */
.st-hero{
  background: linear-gradient(160deg, #101425 0%, #1a2140 55%, #10233f 100%);
  color:#fff; padding:64px 0; margin-bottom:48px;
}
.st-hero-inner{ display:grid; grid-template-columns: 1.3fr 1fr; gap:40px; align-items:center; }
@media (max-width: 900px){ .st-hero-inner{ grid-template-columns:1fr; } }
.st-hero-kicker{
  display:inline-block; text-transform:uppercase; letter-spacing:.08em; font-size:.78rem; font-weight:800;
  color: var(--st-accent); background: rgba(0,194,168,.12); padding:6px 12px; border-radius:20px; margin-bottom:16px;
}
.st-hero h1{ font-size:2.6rem; margin-bottom:16px; }
.st-hero p{ color:#c7cde0; font-size:1.1rem; max-width:52ch; }
.st-hero-actions{ display:flex; gap:14px; margin-top:22px; flex-wrap:wrap; }
.st-hero-panel{
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding:22px;
}
.st-hero-panel h3{ color:#fff; font-size:1rem; text-transform:uppercase; letter-spacing:.05em; margin-bottom:14px; }
.st-hero-trend{ display:flex; align-items:flex-start; gap:12px; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.st-hero-trend:last-child{ border-bottom:none; }
.st-hero-trend-num{ font-weight:900; color: var(--st-accent); font-size:1.1rem; }
.st-hero-trend a{ color:#fff; font-weight:600; }
.st-hero-trend a:hover{ color: var(--st-accent); }

.st-section-title{ display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.st-section-title h2{ margin:0; position:relative; padding-left:16px; }
.st-section-title h2::before{
  content:""; position:absolute; left:0; top:4px; bottom:4px; width:5px; border-radius:4px;
  background: linear-gradient(180deg, var(--st-primary), var(--st-accent));
}
.st-section-title a{ font-weight:700; font-size:.92rem; }

.st-cat-pills{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:48px; }
.st-cat-pill{
  background: var(--st-surface); border:1px solid var(--st-border); border-radius:30px;
  padding:9px 18px; font-weight:700; font-size:.88rem; color: var(--st-text);
}
.st-cat-pill:hover{ border-color: var(--st-primary); color: var(--st-primary); text-decoration:none; }

.st-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; margin-bottom:50px; }
@media (max-width: 900px){ .st-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 620px){ .st-grid{ grid-template-columns:1fr; } }

/* =========================================================
   6. CARDS
   ========================================================= */
.st-card{
  background: var(--st-surface); border:1px solid var(--st-border); border-radius: var(--st-radius);
  overflow:hidden; display:flex; flex-direction:column; box-shadow: var(--st-shadow); height:100%;
  transition: transform .15s ease, box-shadow .15s ease;
}
.st-card:hover{ transform: translateY(-3px); box-shadow: var(--st-shadow-lg); }
.st-card-thumb{ aspect-ratio:16/10; overflow:hidden; background: linear-gradient(135deg,#1a2140,#2f5fff); }
.st-card-thumb img{ width:100%; height:100%; object-fit:cover; }
.st-card-body{ padding:18px 20px 22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.st-card-cat{
  display:inline-block; align-self:flex-start; font-size:.72rem; font-weight:800; text-transform:uppercase;
  letter-spacing:.04em; color: var(--st-primary); background: rgba(47,95,255,.1); padding:4px 10px; border-radius:20px;
}
.st-card h3{ font-size:1.15rem; margin:0; }
.st-card h3 a{ color: var(--st-text); }
.st-card h3 a:hover{ color: var(--st-primary); text-decoration:none; }
.st-card p{ color: var(--st-text-muted); font-size:.95rem; margin:0; }
.st-meta{ font-size:.82rem; color: var(--st-text-muted); display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:auto; padding-top:8px; }
.st-meta span::after{ content:"•"; margin-left:8px; opacity:.5; }
.st-meta span:last-child::after{ content:none; }

.st-list-post{ display:flex; gap:18px; padding:20px 0; border-bottom:1px solid var(--st-border); }
.st-list-post:first-child{ padding-top:0; }
.st-list-post-thumb{ flex:0 0 200px; aspect-ratio:16/11; border-radius:8px; overflow:hidden; background:linear-gradient(135deg,#1a2140,#2f5fff); }
.st-list-post-thumb img{ width:100%; height:100%; object-fit:cover; }
@media (max-width:600px){ .st-list-post{ flex-direction:column; } .st-list-post-thumb{ flex:0 0 auto; width:100%; } }

/* =========================================================
   7. SINGLE POST / PAGE CONTENT
   ========================================================= */
.st-entry-header{ margin-bottom:26px; }
.st-entry-header .st-card-cat{ margin-bottom:14px; }
.st-entry-header h1{ margin-bottom:14px; }
.st-entry-thumb{ border-radius: var(--st-radius); overflow:hidden; margin-bottom:30px; box-shadow: var(--st-shadow); }
.st-entry-content{ font-size:1.08rem; }
.st-entry-content h2{ margin-top:1.6em; }
.st-entry-content h3{ margin-top:1.4em; }
.st-entry-content ul, .st-entry-content ol{ margin-bottom:1.2em; }
.st-entry-content figure{ margin:1.6em 0; }
.st-entry-content figcaption{ font-size:.85rem; color:var(--st-text-muted); text-align:center; margin-top:.5em; }
.st-tags{ display:flex; flex-wrap:wrap; gap:8px; margin:34px 0; }
.st-tags a{
  background: var(--st-bg); border:1px solid var(--st-border); border-radius:20px; padding:6px 14px; font-size:.85rem; color:var(--st-text);
}
.st-tags a:hover{ color: var(--st-primary); text-decoration:none; border-color: var(--st-primary); }
.st-share{ display:flex; gap:10px; align-items:center; margin:30px 0; flex-wrap:wrap; }
.st-share a{
  border:1px solid var(--st-border); border-radius:8px; padding:8px 14px; font-size:.85rem; font-weight:700; color:var(--st-text);
}
.st-share a:hover{ border-color: var(--st-primary); color: var(--st-primary); text-decoration:none; }

.st-author-box{
  display:flex; gap:18px; background: var(--st-surface); border:1px solid var(--st-border);
  border-radius: var(--st-radius); padding:22px; margin:36px 0;
}
.st-author-box img{ border-radius:50%; width:64px; height:64px; flex:0 0 auto; }
.st-author-box h4{ margin:0 0 6px; }
.st-author-box p{ margin:0; color: var(--st-text-muted); font-size:.95rem; }

.st-post-nav{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:36px 0; }
.st-post-nav a{
  display:block; border:1px solid var(--st-border); border-radius: var(--st-radius); padding:16px 18px; color: var(--st-text);
}
.st-post-nav a:hover{ border-color: var(--st-primary); text-decoration:none; }
.st-post-nav .st-nav-label{ font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; color: var(--st-text-muted); display:block; margin-bottom:4px; }
.st-post-nav .st-next{ text-align:right; }
@media (max-width:600px){ .st-post-nav{ grid-template-columns:1fr; } }

/* =========================================================
   8. SIDEBAR / WIDGETS
   ========================================================= */
.st-sidebar .widget{
  background: var(--st-surface); border:1px solid var(--st-border); border-radius: var(--st-radius);
  padding:22px; margin-bottom:24px;
}
.st-sidebar .widget-title{ font-size:1rem; text-transform:uppercase; letter-spacing:.04em; margin-bottom:16px; padding-bottom:10px; border-bottom:2px solid var(--st-border); }
.st-sidebar ul{ list-style:none; margin:0; padding:0; }
.st-sidebar ul li{ padding:9px 0; border-bottom:1px solid var(--st-border); font-size:.95rem; }
.st-sidebar ul li:last-child{ border-bottom:none; }
.st-widget-newsletter p{ font-size:.9rem; color: var(--st-text-muted); }

/* =========================================================
   9. COMMENTS
   ========================================================= */
.comments-area{ margin-top:48px; }
.comment-list{ list-style:none; margin:0; padding:0; }
.comment-list .comment{ padding:20px 0; border-bottom:1px solid var(--st-border); display:flex; gap:16px; }
.comment-list .comment img{ border-radius:50%; }
.comment-author .fn{ font-weight:700; font-style:normal; }
.comment-metadata{ font-size:.8rem; color: var(--st-text-muted); margin-bottom:8px; }
.comment-list .children{ list-style:none; margin-left:40px; padding:0; }
.comment-respond{ margin-top:30px; background: var(--st-surface); border:1px solid var(--st-border); border-radius: var(--st-radius); padding:24px; }
.comment-form p{ margin-bottom:14px; }

/* =========================================================
   10. FOOTER
   ========================================================= */
.st-footer{ background:#0f1115; color:#c7cde0; padding:56px 0 26px; margin-top:60px; }
.st-footer a{ color:#e6e8ec; }
.st-footer a:hover{ color: var(--st-accent); }
.st-footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:34px; margin-bottom:40px; }
@media (max-width:800px){ .st-footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:500px){ .st-footer-grid{ grid-template-columns:1fr; } }
.st-footer h4{ color:#fff; font-size:.95rem; text-transform:uppercase; letter-spacing:.05em; margin-bottom:16px; }
.st-footer ul{ list-style:none; margin:0; padding:0; }
.st-footer ul li{ margin-bottom:10px; font-size:.92rem; }
.st-footer p{ font-size:.92rem; color:#9aa2b1; }
.st-footer-bottom{ border-top:1px solid rgba(255,255,255,.1); padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.85rem; color:#8a90a0; }
.st-social{ display:flex; gap:10px; }
.st-social a{
  width:36px; height:36px; border-radius:8px; background: rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center;
}
.st-social a:hover{ background: var(--st-primary); text-decoration:none; }

/* =========================================================
   11. MISC / UTILITY
   ========================================================= */
.st-alignwide{ margin-left:-40px; margin-right:-40px; max-width:none; }
.st-pagination{ display:flex; gap:8px; justify-content:center; margin:40px 0 10px; flex-wrap:wrap; }
.st-pagination a, .st-pagination span{
  border:1px solid var(--st-border); border-radius:8px; padding:8px 14px; font-weight:700; font-size:.9rem; color: var(--st-text);
}
.st-pagination .current{ background: var(--st-primary); color:#fff; border-color: var(--st-primary); }
.st-pagination a:hover{ border-color: var(--st-primary); color: var(--st-primary); text-decoration:none; }
.st-empty{ text-align:center; padding:60px 20px; }
.st-empty h1{ font-size:2rem; }
.wp-caption{ max-width:100%; }
.alignleft{ float:left; margin:0 20px 15px 0; }
.alignright{ float:right; margin:0 0 15px 20px; }
.aligncenter{ display:block; margin:0 auto 15px; }
.st-skip-link-wrap{ position:relative; }

/* Breadcrumbs */
.st-breadcrumbs{ font-size:.85rem; color: var(--st-text-muted); margin-bottom:20px; }
.st-breadcrumbs a{ color: var(--st-text-muted); font-weight:600; }
.st-breadcrumbs a:hover{ color: var(--st-primary); }
