/*
Theme Name: TechRush
Theme URI: https://techrush.net
Author: TechRush
Author URI: https://techrush.net
Description: A premium, fast-loading editorial theme built for tech blogs and news sites. Features a live headline ticker, kinetic typography tuned to the idea of "rush," numbered trending rankings, and a clean grid built for daily publishing. Built from scratch — no bloated page builder required.
Version: 1.3.1
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: techrush
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   0. DESIGN TOKENS
   ========================================================= */
:root{
  --rush-bg:        #18151F;
  --rush-bg-soft:   #1F1B29;
  --rush-surface:   #221E2C;
  --rush-border:    #332D40;
  --rush-text:      #EDE9F5;
  --rush-text-dim:  #A39CB5;
  --rush-text-mute: #756E87;
  --rush-accent:    #7C5CFF;
  --rush-accent-2:  #FF7A45;
  --rush-accent-rgb: 124,92,255;

  --font-display: 'Space Grotesk', 'Archivo', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --container: 1240px;
  --radius: 10px;
  --skew: -7deg;
}

/* Light mode — same brand accent, inverted surfaces */
html[data-theme="light"]{
  --rush-bg:        #FFFFFF;
  --rush-bg-soft:   #F8FAFC;
  --rush-surface:   #F8FAFC;
  --rush-border:    #E5E7EB;
  --rush-text:      #14121C;
  --rush-text-dim:  #524C63;
  --rush-text-mute: #8A8398;
}
html{ transition:background-color .25s ease; }
body, .site-header, .rush-card, .widget, .trending__item, .site-footer{
  transition:background-color .25s ease, border-color .25s ease, color .25s ease;
}
html[data-theme="light"] .rush-ticker__track,
html[data-theme="light"] .rush-ticker__track a{ color:#19121e; }
html[data-theme="light"] .site-header{ background:rgba(255,255,255,0.9); }
html[data-theme="light"] .error-404__code{ color:var(--rush-accent); }


/* =========================================================
   1. RESET / BASE
   ========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--rush-bg);
  color:var(--rush-text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
.screen-reader-text{ position:absolute !important; left:-9999px; }
:focus-visible{ outline:2px solid var(--rush-accent); outline-offset:3px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }

/* Eyebrow / category pill */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:11px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--rush-accent);
}
.eyebrow::before{ content:""; width:6px; height:6px; background:var(--rush-accent); border-radius:50%; }

/* Skewed kinetic headline treatment — the signature element */
.rush-kinetic{
  display:inline-block;
  transform:skewX(var(--skew));
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:-0.01em;
}

/* Speed-streak decoration, used sparingly (hero + 404 only) */
.speed-streaks{ display:flex; flex-direction:column; gap:6px; width:64px; }
.speed-streaks span{ display:block; height:4px; background:var(--rush-accent); border-radius:2px; }
.speed-streaks span:nth-child(1){ width:64px; }
.speed-streaks span:nth-child(2){ width:42px; opacity:.7; }
.speed-streaks span:nth-child(3){ width:24px; opacity:.4; }

/* =========================================================
   2. HEADER + LIVE TICKER
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(24,21,31,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--rush-border);
  transition:background-color .25s, box-shadow .25s, padding .25s;
}
.site-header.is-scrolled{
  box-shadow:0 8px 24px rgba(0,0,0,0.25);
}
.site-header.is-scrolled .site-header__bar{ padding:11px 24px; }
html[data-theme="light"] .site-header.is-scrolled{ box-shadow:0 8px 24px rgba(20,18,28,0.08); }

.site-header__bar{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 24px; gap:24px; transition:padding .25s;
}
.site-logo{
  font-family:var(--font-display); font-weight:700; font-size:26px;
  color:var(--rush-text); white-space:nowrap;
  display:flex; align-items:center; max-height:48px; overflow:hidden;
}
.site-logo .custom-logo-link{ display:flex; align-items:center; }
.site-logo img,
.site-logo .custom-logo{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-height:40px !important;
  max-width:220px !important;
  object-fit:contain;
}
.site-logo .logo-accent{ color:var(--rush-accent); transform:skewX(var(--skew)); display:inline-block; }

.primary-nav{ position:relative; }
.menu-row{ display:flex; gap:8px; align-items:center; }
.menu-item{ position:relative; }
.menu-link{
  display:inline-flex; align-items:center; gap:7px;
  font-size:14px; font-weight:600; letter-spacing:.02em; font-family:inherit;
  color:var(--rush-text-dim); transition:color .2s; background:none; border:0;
  position:relative; padding:8px 12px;
}
.menu-link:hover, .menu-link:focus, .menu-item.is-open .menu-link{ color:var(--rush-text); }
.menu-link::after{
  content:""; position:absolute; left:12px; bottom:2px; height:2px; width:0;
  background:var(--rush-accent); transition:width .25s ease;
}
.menu-link:hover::after{ width:calc(100% - 24px); }
.cat-icon{ flex:0 0 auto; opacity:.85; }
.mega-toggle .chev{ transition:transform .2s; opacity:.6; }
.menu-item.is-open .mega-toggle .chev{ transform:rotate(180deg); }

/* Mega panel */
.has-mega{ }
.mega-panel{
  position:absolute; top:calc(100% + 14px); left:50%; transform:translateX(-50%) translateY(8px);
  min-width:420px; background:var(--rush-surface); border:1px solid var(--rush-border);
  border-radius:var(--radius); padding:18px; box-shadow:0 16px 40px rgba(0,0,0,0.35);
  opacity:0; pointer-events:none; transition:opacity .18s, transform .18s; z-index:40;
}
.menu-item.is-open .mega-panel{ opacity:1; pointer-events:auto; transform:translateX(-50%) translateY(0); }
.mega-panel__grid{
  display:grid; grid-template-columns:repeat(2,minmax(160px,1fr)); gap:4px 18px;
}
.mega-panel__link{
  display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:7px;
  font-size:13px; font-weight:500; color:var(--rush-text-dim); white-space:nowrap;
}
.mega-panel__link:hover{ background:var(--rush-bg); color:var(--rush-text); }

.header-actions{ display:flex; align-items:center; gap:14px; }
.icon-btn{
  background:none; border:1px solid var(--rush-border); color:var(--rush-text);
  width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition:border-color .2s, color .2s;
}
.icon-btn:hover{ border-color:var(--rush-accent); color:var(--rush-accent); }
.menu-toggle{ display:none; }

/* Theme toggle icon swap */
.theme-toggle .icon-moon{ display:none; }
html[data-theme="light"] .theme-toggle .icon-sun{ display:none; }
html[data-theme="light"] .theme-toggle .icon-moon{ display:block; }

/* Ticker */
.rush-ticker{
  background:var(--rush-accent); overflow:hidden; white-space:nowrap;
  border-bottom:1px solid var(--rush-border);
}
.rush-ticker__inner{ display:flex; align-items:center; }
.rush-ticker__label{
  flex:0 0 auto; font-family:var(--font-mono); font-size:11px; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase; background:#1a1424;
  color:var(--rush-accent); padding:7px 16px;
}
.rush-ticker__track{
  display:flex; gap:48px; padding:7px 24px;
  animation:rush-scroll 32s linear infinite;
  font-family:var(--font-mono); font-size:13px; font-weight:600; color:#19121e;
}
.rush-ticker:hover .rush-ticker__track{ animation-play-state:paused; }
.rush-ticker__track a{ color:#19121e; }
.rush-ticker__track a:hover{ text-decoration:underline; }
@keyframes rush-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* Search overlay */
.search-overlay{
  position:fixed; inset:0; background:rgba(24,21,31,0.97); z-index:90;
  overflow-y:auto;
}
html[data-theme="light"] .search-overlay{ background:rgba(255,255,255,0.97); }
.search-overlay__inner{ padding-top:110px; max-width:680px; }
.search-overlay__close{
  position:absolute; top:24px; right:24px; background:none; border:0;
  color:var(--rush-text); font-size:32px; line-height:1;
}
.live-search-form{
  display:flex; align-items:center; gap:12px; border-bottom:2px solid var(--rush-border);
  padding-bottom:14px;
}
.live-search-form svg{ flex:0 0 auto; color:var(--rush-text-mute); }
.live-search-form input{
  flex:1; background:none; border:0; color:var(--rush-text); font-size:24px;
  font-family:var(--font-display); outline:none;
}
.live-search-results{ margin-top:24px; display:flex; flex-direction:column; gap:10px; }
.live-result{
  display:flex; gap:14px; align-items:center; padding:10px; border-radius:8px;
  transition:background .15s;
}
.live-result:hover, .live-result.is-active{ background:var(--rush-surface); }
.live-result__media{ width:56px; height:56px; border-radius:6px; overflow:hidden; flex:0 0 auto; background:var(--rush-surface); }
.live-result__media img{ width:100%; height:100%; object-fit:cover; }
.live-result__title{ font-size:14px; font-weight:600; line-height:1.3; }
.live-result__meta{ font-family:var(--font-mono); font-size:11px; color:var(--rush-text-mute); margin-top:4px; }
.live-search-results .view-all{
  font-family:var(--font-mono); font-size:12px; color:var(--rush-accent);
  text-transform:uppercase; letter-spacing:.05em; padding:14px 10px 4px; display:inline-block;
}
.live-search-results .no-results{ color:var(--rush-text-dim); font-size:14px; padding:14px 10px; text-align:left; }
.live-search-results .is-loading{ color:var(--rush-text-mute); font-size:13px; padding:14px 10px; }

/* Mobile nav drawer */
.mobile-nav{
  display:none; position:fixed; inset:0; background:var(--rush-bg);
  z-index:100; padding:24px; overflow-y:auto;
}
.mobile-nav.is-open{ display:block; }
.mobile-nav__close{ background:none; border:0; color:var(--rush-text); font-size:28px; float:right; }
.mobile-nav ul{ margin-top:60px; display:flex; flex-direction:column; gap:22px; }
.mobile-nav a{ font-family:var(--font-display); font-size:24px; font-weight:700; }

/* =========================================================
   3. HERO
   ========================================================= */
.hero{ padding:56px 0 48px; border-bottom:1px solid var(--rush-border); }
.hero__grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.hero__media{ position:relative; border-radius:var(--radius); overflow:hidden; aspect-ratio:4/3; background:var(--rush-surface); }
.hero__media img{ width:100%; height:100%; object-fit:contain; }
.hero__media .speed-streaks{ position:absolute; bottom:18px; left:18px; }
.hero__eyebrow{ margin-bottom:14px; }
.hero__title{
  font-family:var(--font-display); font-size:42px; line-height:1.1; font-weight:700;
  margin:0 0 18px; color:var(--rush-text);
}
.hero__title a:hover{ color:var(--rush-accent); }
.hero__excerpt{ color:var(--rush-text-dim); font-size:17px; margin:0 0 22px; max-width:520px; }
.hero__meta{ font-family:var(--font-mono); font-size:12px; color:var(--rush-text-mute); margin-bottom:24px; letter-spacing:.04em; }
.hero__cta{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--rush-accent); color:#fff; font-weight:700; font-size:14px;
  padding:13px 24px; border-radius:6px; transform:skewX(var(--skew));
  transition:transform .2s, background .2s;
}
.hero__cta:hover{ background:#6a4ce8; }
.hero__cta span{ display:inline-block; transform:skewX(calc(var(--skew) * -1)); }

@media (max-width:860px){
  .hero__grid{ grid-template-columns:1fr; }
  .hero__title{ font-size:32px; }
}

/* =========================================================
   4. TRENDING (ranked list — numbers are real rank data)
   ========================================================= */
.trending{ padding:48px 0; border-bottom:1px solid var(--rush-border); }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:28px; }
.section-head h2{ font-family:var(--font-display); font-size:24px; margin:0; }
.section-head .section-tag{ font-family:var(--font-mono); font-size:11px; color:var(--rush-text-mute); letter-spacing:.1em; text-transform:uppercase; }

.trending__list{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.trending__item{
  background:var(--rush-surface); border:1px solid var(--rush-border); border-radius:var(--radius);
  padding:20px; position:relative; transition:border-color .2s, transform .2s;
}
.trending__item:hover{ border-color:var(--rush-accent); transform:translateY(-3px); }
.trending__rank{
  font-family:var(--font-display); font-size:38px; font-weight:700;
  color:var(--rush-border); line-height:1; margin-bottom:12px; transform:skewX(var(--skew)); display:inline-block;
}
.trending__item:nth-child(1) .trending__rank{ color:var(--rush-accent); }
.trending__title{ font-size:15px; font-weight:700; line-height:1.35; margin:0 0 8px; }
.trending__title a:hover{ color:var(--rush-accent); }
.trending__meta{ font-family:var(--font-mono); font-size:11px; color:var(--rush-text-mute); }

@media (max-width:980px){ .trending__list{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .trending__list{ grid-template-columns:1fr; } }

/* =========================================================
   5. CONTENT GRID + CARDS
   ========================================================= */
.content-layout{ display:grid; grid-template-columns:2.2fr 1fr; gap:48px; padding:48px 0; align-items:start; }
.latest h2{ font-family:var(--font-display); font-size:24px; margin:0 0 28px; }

.card-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }
.card-grid.is-single-col{ grid-template-columns:1fr; }
.rush-card{ display:flex; flex-direction:column; }
.rush-card__media{ border-radius:var(--radius); overflow:hidden; aspect-ratio:16/10; background:var(--rush-surface); margin-bottom:16px; }
.rush-card__media img{ width:100%; height:100%; object-fit:contain; transition:transform .4s; }
.rush-card:hover .rush-card__media img{ transform:scale(1.05); }
.rush-card .eyebrow{ margin-bottom:10px; }
.rush-card__title{ font-size:18px; font-weight:700; line-height:1.35; margin:0 0 10px; }
.rush-card__title a:hover{ color:var(--rush-accent); }
.rush-card__excerpt{ color:var(--rush-text-dim); font-size:14px; margin:0 0 12px; }
.rush-card__meta{ font-family:var(--font-mono); font-size:11px; color:var(--rush-text-mute); letter-spacing:.03em; }

@media (max-width:860px){
  .content-layout{ grid-template-columns:1fr; }
  .card-grid{ grid-template-columns:1fr; }
}

/* Pagination */
.rush-pagination{ display:flex; gap:8px; margin-top:40px; flex-wrap:wrap; }
.rush-pagination a, .rush-pagination span{
  font-family:var(--font-mono); font-size:13px; padding:8px 14px;
  border:1px solid var(--rush-border); border-radius:6px; color:var(--rush-text-dim);
}
.rush-pagination .current{ background:var(--rush-accent); color:#fff; border-color:var(--rush-accent); }
.rush-pagination a:hover{ border-color:var(--rush-accent); color:var(--rush-text); }

/* =========================================================
   6. SIDEBAR
   ========================================================= */
.widget{ background:var(--rush-surface); border:1px solid var(--rush-border); border-radius:var(--radius); padding:24px; margin-bottom:24px; }
.widget-title{ font-family:var(--font-display); font-size:16px; margin:0 0 18px; padding-bottom:14px; border-bottom:1px solid var(--rush-border); }
.widget ul{ display:flex; flex-direction:column; gap:14px; }
.widget select, .widget input[type=text], .widget input[type=search], .widget input[type=email]{
  width:100%; background:var(--rush-bg); border:1px solid var(--rush-border); color:var(--rush-text);
  padding:10px 12px; border-radius:6px; font-family:var(--font-body); font-size:14px;
}

.popular-posts li{ display:flex; gap:12px; align-items:flex-start; }
.popular-posts .rank{ font-family:var(--font-display); font-weight:700; font-size:20px; color:var(--rush-accent); transform:skewX(var(--skew)); display:inline-block; flex:0 0 auto; }
.popular-posts .ttl{ font-size:13px; font-weight:600; line-height:1.4; }
.popular-posts .ttl a:hover{ color:var(--rush-accent); }

.cat-pills{ display:flex; flex-wrap:wrap; gap:8px; }
.cat-pills a{
  font-family:var(--font-mono); font-size:11px; padding:7px 12px; border-radius:20px;
  border:1px solid var(--rush-border); color:var(--rush-text-dim); text-transform:uppercase; letter-spacing:.04em;
}
.cat-pills a:hover{ border-color:var(--rush-accent); color:var(--rush-accent); }

.newsletter-box p{ font-size:13px; color:var(--rush-text-dim); margin:0 0 14px; }
.newsletter-box form{ display:flex; flex-direction:column; gap:10px; }
.newsletter-box button{
  background:var(--rush-accent); color:#fff; border:0; font-weight:700; font-size:13px;
  padding:11px; border-radius:6px; transform:skewX(var(--skew));
}
.newsletter-box button span{ display:inline-block; transform:skewX(calc(var(--skew) * -1)); }

/* =========================================================
   7. SINGLE POST
   ========================================================= */
.single-post{ padding:48px 0; }
.single-post__header{ max-width:760px; margin:0 auto 32px; text-align:left; }
.single-post__title{ font-family:var(--font-display); font-size:36px; line-height:1.15; margin:14px 0 18px; }
.single-post__meta{ font-family:var(--font-mono); font-size:12px; color:var(--rush-text-mute); display:flex; gap:16px; flex-wrap:wrap; }
.single-post__media{ border-radius:var(--radius); overflow:hidden; margin-bottom:36px; max-width:960px; margin-left:auto; margin-right:auto; }
.single-post__body{ max-width:760px; margin:0 auto; font-size:17px; line-height:1.8; color:var(--rush-text); }
.single-post__body h2{ font-family:var(--font-display); font-size:26px; margin:40px 0 16px; }
.single-post__body h3{ font-family:var(--font-display); font-size:21px; margin:32px 0 14px; }
.single-post__body p{ margin:0 0 22px; }
.single-post__body a{ color:var(--rush-accent); text-decoration:underline; }
.single-post__body blockquote{
  border-left:3px solid var(--rush-accent); margin:28px 0; padding:4px 0 4px 22px;
  font-style:italic; color:var(--rush-text-dim);
}
.single-post__body img{ border-radius:var(--radius); margin:8px 0 28px; }
.single-post__body ul, .single-post__body ol{ margin:0 0 22px; padding-left:22px; list-style:revert; }
.single-post__body pre, .single-post__body code{
  font-family:var(--font-mono); background:var(--rush-surface); border:1px solid var(--rush-border);
  border-radius:6px;
}
.single-post__body code{ padding:2px 6px; font-size:14px; }
.single-post__body pre{ padding:18px; overflow-x:auto; }

.single-post__tags{ max-width:760px; margin:32px auto 0; display:flex; gap:8px; flex-wrap:wrap; }

.author-box{
  max-width:760px; margin:48px auto 0; display:flex; gap:18px; align-items:flex-start;
  background:var(--rush-surface); border:1px solid var(--rush-border); border-radius:var(--radius); padding:26px;
}
.author-box img{ width:64px; height:64px; border-radius:50%; flex:0 0 auto; }
.author-box h3{ font-family:var(--font-display); font-size:16px; margin:0 0 8px; }
.author-box p{ font-size:14px; color:var(--rush-text-dim); margin:0; }

.related-posts{ max-width:960px; margin:56px auto 0; }
.related-posts h2{ font-family:var(--font-display); font-size:22px; margin-bottom:24px; }

.comments-area{ max-width:760px; margin:48px auto 0; }
.comments-title{ font-family:var(--font-display); font-size:22px; margin-bottom:24px; }
.comment-list{ display:flex; flex-direction:column; gap:22px; }
.comment-body{ background:var(--rush-surface); border:1px solid var(--rush-border); border-radius:var(--radius); padding:20px; }
.comment-author{ font-weight:700; font-size:14px; }
.comment-metadata{ font-family:var(--font-mono); font-size:11px; color:var(--rush-text-mute); margin-bottom:10px; }
.comment-form input, .comment-form textarea{
  width:100%; background:var(--rush-bg); border:1px solid var(--rush-border); color:var(--rush-text);
  padding:12px; border-radius:6px; margin-bottom:14px; font-family:var(--font-body);
}
.comment-form .form-submit input{
  width:auto; background:var(--rush-accent); border:0; font-weight:700; padding:12px 26px;
  transform:skewX(var(--skew));
}

/* =========================================================
   8. PAGE / ARCHIVE / SEARCH / 404
   ========================================================= */
.page-header{ padding:48px 0 8px; }
.archive-title{ font-family:var(--font-display); font-size:32px; margin:0 0 6px; }
.archive-desc{ color:var(--rush-text-dim); }

.page-content{ max-width:760px; margin:0 auto; padding:24px 0 60px; font-size:17px; line-height:1.8; }

.no-results{ padding:60px 0; text-align:center; }

.error-404{ padding:90px 0; text-align:center; }
.error-404__code{
  font-family:var(--font-display); font-size:140px; font-weight:700; line-height:1;
  color:var(--rush-accent); transform:skewX(var(--skew)); display:inline-block; margin-bottom:8px;
}
.error-404 .speed-streaks{ margin:0 auto 28px; }
.error-404 form{ max-width:420px; margin:32px auto 0; display:flex; gap:8px; }
.error-404 input[type=search]{
  flex:1; background:var(--rush-surface); border:1px solid var(--rush-border); color:var(--rush-text);
  padding:12px 14px; border-radius:6px;
}
.error-404 button{ background:var(--rush-accent); color:#fff; border:0; padding:12px 20px; border-radius:6px; font-weight:700; }

/* =========================================================
   9. FOOTER
   ========================================================= */
.site-footer{ background:var(--rush-bg-soft); border-top:1px solid var(--rush-border); margin-top:40px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px; padding:56px 0 36px; }
.footer-col h4{ font-family:var(--font-display); font-size:15px; margin:0 0 18px; }
.footer-col p{ color:var(--rush-text-dim); font-size:14px; line-height:1.7; }
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ color:var(--rush-text-dim); font-size:14px; }
.footer-col a:hover{ color:var(--rush-accent); }
.footer-logo{ font-family:var(--font-display); font-weight:700; font-size:22px; margin-bottom:14px; display:inline-block; }
.footer-bottom{
  border-top:1px solid var(--rush-border); padding:20px 0; display:flex;
  justify-content:space-between; align-items:center; font-size:13px; color:var(--rush-text-mute); flex-wrap:wrap; gap:12px;
}
.footer-social{ display:flex; gap:12px; }
.footer-social a{
  width:34px; height:34px; border:1px solid var(--rush-border); border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:var(--rush-text-dim);
}
.footer-social a:hover{ border-color:var(--rush-accent); color:var(--rush-accent); }

.back-to-top{
  position:fixed; right:24px; bottom:24px; width:46px; height:46px; border-radius:50%;
  background:var(--rush-accent); color:#fff; display:flex; align-items:center; justify-content:center;
  border:0; opacity:0; pointer-events:none; transition:opacity .25s, transform .25s; z-index:60;
}
.back-to-top.is-visible{ opacity:1; pointer-events:auto; }
.back-to-top:hover{ transform:translateY(-3px); }

@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }

/* =========================================================
   10. RESPONSIVE NAV SWITCH
   ========================================================= */
@media (max-width:860px){
  .primary-nav{ display:none; }
  .menu-toggle{ display:flex; }
}

/* =========================================================
   11. AD SLOTS, EDITOR'S PICKS, NEWSLETTER BANNER
   ========================================================= */
.ad-slot{ margin:0 auto; padding:20px 24px; text-align:center; }
.ad-slot__label{
  display:block; font-family:var(--font-mono); font-size:10px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--rush-text-mute); margin-bottom:10px;
}
.ad-slot .widget{ margin-bottom:0; background:none; border:none; padding:0; }

.editors-picks{ padding:48px 0; border-bottom:1px solid var(--rush-border); }

.newsletter-banner{
  background:linear-gradient(135deg, var(--rush-surface), var(--rush-bg-soft));
  border-top:1px solid var(--rush-border); border-bottom:1px solid var(--rush-border);
  padding:48px 0;
}
.newsletter-banner__inner{ display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.newsletter-banner h2{ font-family:var(--font-display); font-size:24px; margin:0 0 6px; }
.newsletter-banner p{ color:var(--rush-text-dim); margin:0; font-size:14px; max-width:420px; }
.newsletter-banner__form{ display:flex; gap:10px; flex:0 0 auto; }
.newsletter-banner__form input{
  background:var(--rush-bg); border:1px solid var(--rush-border); color:var(--rush-text);
  padding:13px 16px; border-radius:6px; min-width:260px; font-family:var(--font-body);
}
.newsletter-banner__form button{
  background:var(--rush-accent); color:#fff; border:0; font-weight:700; padding:13px 22px;
  border-radius:6px; transform:skewX(var(--skew)); white-space:nowrap;
}
.newsletter-banner__form button span{ display:inline-block; transform:skewX(calc(var(--skew) * -1)); }

@media (max-width:760px){
  .newsletter-banner__inner{ flex-direction:column; align-items:flex-start; }
  .newsletter-banner__form{ width:100%; }
  .newsletter-banner__form input{ flex:1; min-width:0; }
}

/* Sticky mobile ad bar */
.sticky-mobile-ad{
  position:fixed; left:0; right:0; bottom:0; z-index:55;
  background:var(--rush-surface); border-top:1px solid var(--rush-border);
  padding:10px 40px 10px 14px; display:none;
}
.sticky-mobile-ad__close{
  position:absolute; top:6px; right:10px; background:none; border:0; color:var(--rush-text-mute); font-size:20px;
}
@media (max-width:640px){
  .sticky-mobile-ad{ display:block; }
  .back-to-top{ bottom:74px; }
}

/* =========================================================
   12. READING EXPERIENCE (single post)
   ========================================================= */

/* Reading progress bar */
.reading-progress{
  position:fixed; top:0; left:0; right:0; height:3px; z-index:80;
  background:transparent; display:none;
}
.reading-progress span{
  display:block; height:100%; width:0%; background:var(--rush-accent);
  transition:width .1s linear;
}
body.has-reading-progress .reading-progress{ display:block; }

/* Share row (inline, under the title meta) */
.share-row{ display:flex; gap:8px; margin-top:18px; }
.share-btn{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--rush-border);
  display:flex; align-items:center; justify-content:center; color:var(--rush-text-dim);
  background:none; transition:border-color .2s, color .2s;
}
.share-btn:hover{ border-color:var(--rush-accent); color:var(--rush-accent); }
.share-btn.is-copied{ border-color:var(--rush-accent); color:var(--rush-accent); }
.bookmark-btn .ic-filled{ display:none; }
.bookmark-btn[aria-pressed="true"] .ic-outline{ display:none; }
.bookmark-btn[aria-pressed="true"] .ic-filled{ display:block; color:var(--rush-accent); }
.bookmark-btn[aria-pressed="true"]{ border-color:var(--rush-accent); }

/* Sticky desktop share rail */
.share-rail{
  position:fixed; top:50%; left:28px; transform:translateY(-50%);
  display:flex; flex-direction:column; gap:10px;
  opacity:0; pointer-events:none; transition:opacity .25s; z-index:45;
}
.share-rail.is-visible{ opacity:1; pointer-events:auto; }
@media (max-width:1380px){ .share-rail{ display:none; } }

/* Table of contents */
.toc-box{
  max-width:760px; margin:28px auto 0; background:var(--rush-surface);
  border:1px solid var(--rush-border); border-radius:var(--radius); padding:18px 22px;
}
.toc-box summary{
  font-family:var(--font-display); font-weight:700; font-size:15px; cursor:pointer;
  list-style:none; display:flex; align-items:center; justify-content:space-between;
}
.toc-box summary::-webkit-details-marker{ display:none; }
.toc-box summary::after{
  content:"▾"; color:var(--rush-accent); transition:transform .2s; margin-left:10px;
}
.toc-box[open] summary::after{ transform:rotate(180deg); }
.toc-box ol{ list-style:none; margin:16px 0 0; padding:0; counter-reset:toc; display:flex; flex-direction:column; gap:9px; }
.toc-box li{ counter-increment:toc; font-size:14px; }
.toc-box li::before{ content:counter(toc) "."; color:var(--rush-accent); font-family:var(--font-mono); margin-right:8px; }
.toc-box li.toc-level-3{ margin-left:22px; opacity:.85; }
.toc-box a{ color:var(--rush-text-dim); }
.toc-box a:hover{ color:var(--rush-text); }

/* Code copy button */
.single-post__body pre{ position:relative; }
.code-copy-btn{
  position:absolute; top:10px; right:10px; background:var(--rush-bg); color:var(--rush-text-dim);
  border:1px solid var(--rush-border); border-radius:6px; padding:5px 10px;
  font-family:var(--font-mono); font-size:11px; opacity:0; transition:opacity .15s;
}
.single-post__body pre:hover .code-copy-btn{ opacity:1; }
.code-copy-btn.is-copied{ color:var(--rush-accent); border-color:var(--rush-accent); opacity:1; }

/* Pull quotes (core/pullquote block) */
.single-post__body .wp-block-pullquote{
  border:none; border-top:2px solid var(--rush-accent); border-bottom:2px solid var(--rush-accent);
  padding:28px 0; margin:36px 0; text-align:left;
}
.single-post__body .wp-block-pullquote p{
  font-family:var(--font-display); font-size:26px; font-weight:700; line-height:1.3;
  color:var(--rush-text); font-style:normal;
}
.single-post__body .wp-block-pullquote cite{
  font-family:var(--font-mono); font-size:12px; color:var(--rush-text-mute); font-style:normal;
}

/* Next / previous post navigation */
.post-navigation{
  max-width:760px; margin:48px auto 0; display:grid; grid-template-columns:1fr 1fr; gap:16px;
}
.post-navigation a{
  display:block; border:1px solid var(--rush-border); border-radius:var(--radius);
  padding:16px 18px; font-size:14px; font-weight:600; color:var(--rush-text-dim);
  transition:border-color .2s, color .2s;
}
.post-navigation a:hover{ border-color:var(--rush-accent); color:var(--rush-text); }
.post-navigation__next{ text-align:right; }
@media (max-width:600px){ .post-navigation{ grid-template-columns:1fr; } }


