/*
Theme Name: Overclock
Theme URI: https://example.com/overclock
Author: Your Name
Description: A dark gadget news theme in graphite and dial orange. A rumour meter that rates leaks from "wild guess" to "confirmed", spec chips, a launch calendar with countdowns, a next-launch bar, a three-column hero, topic chips with colour markers and header social links. Dark by default with a light mode, self-hosted fonts and one-click demo content with original artwork.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
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: overclock
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  color-scheme: dark;
  --bg: #1a1b1e;
  --surface: #232428;
  --surface-2: #2d2e33;
  --text: #eeece7;
  --text-2: #cfccc5;
  --muted: #a09c94;
  --line: #36373c;
  --accent: #ff6a1f;
  --accent-ink: #1a1b1e;
  --indicator: #6fd08c;
  --font-display: "Saira", system-ui, sans-serif;
  --font-body: "Chivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-display: 700;
  --track-display: -0.01em;
  --lh-display: 1.06;
  --radius: 12px;
  --radius-ui: 8px;
  --footer-bg: #121315;
  --footer-text: #eeece7;
  --footer-muted: #a09c94;
  --footer-line: rgba(255,255,255,.08);
  --overlay: linear-gradient(180deg, rgba(18,19,21,0) 28%, rgba(18,19,21,.93) 100%);
  --accent-hover: #eeece7;
  --accent-hover-ink: #1a1b1e;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eceef0;
  --surface: #ffffff;
  --surface-2: #e1e4e8;
  --text: #16171a;
  --text-2: #3b3d42;
  --muted: #676a71;
  --line: #d4d7dc;
  --accent: #e65c14;
  --accent-ink: #16171a;
  --indicator: #1f8f4a;
  --footer-bg: #16171a;
  --accent-hover: #16171a;
  --accent-hover-ink: #ffffff;
}

body { font-size: 16.5px; }
.card__title, .mini__title, .section-title, .entry-title, .widget-title, .brand__name { font-stretch: 90%; }

/* ---------- Header ---------- */
.site-header { background: #141517; border-bottom: 1px solid #2a2b30; }
.site-header__inner { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "brand social nav actions"; align-items: center; column-gap: 1.3rem; }
.site-brand { grid-area: brand; }
.site-header__social { grid-area: social; display: block; padding-left: 1.3rem; border-left: 1px solid #2a2b30; }
.site-header__social .social a { width: 30px; height: 30px; border: 0; background: transparent; color: #cfccc5; }
.primary-nav { grid-area: nav; }
.primary-menu { justify-content: center; }
.site-header__actions { grid-area: actions; margin-left: 0; }
.site-header .brand__name { color: #eeece7; font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; }
.brand__mark { width: 36px; height: 36px; color: #eeece7; }
.primary-menu > li > a { color: #cfccc5; font-weight: 600; }
.primary-menu > li > a:hover, .primary-menu .current-menu-item > a { color: #fff; background: rgba(255,255,255,.07); }
.site-header .icon-btn { color: #eeece7; background: transparent; border-color: #3a3b40; }
.header-cta { background: var(--accent); color: #1a1b1e; }
@media (max-width: 1023px) {
  .site-header__inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions"; }
  .site-header__social { display: none; }
}

/* ---------- Bar ---------- */
.oc-bar { background: var(--accent); color: #1a1b1e; font-size: .88rem; }
.oc-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 42px; }
.oc-bar__news { display: flex; align-items: center; gap: .7rem; min-width: 0; margin: 0; }
.oc-bar__label { flex: 0 0 auto; padding: .1rem .5rem; border-radius: 6px; background: #1a1b1e; color: var(--accent); font-size: .78rem; font-weight: 700; }
.oc-bar__news a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.oc-bar__next { margin: 0; white-space: nowrap; }
.oc-bar a:hover { text-decoration: underline; }
@media (max-width: 820px) { .oc-bar__next { display: none; } }

/* ---------- Category markers ---------- */
.cat, .entry-cat { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; color: var(--text-2); }
.cat::before, .entry-cat::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: hsl(var(--cat-hue, 22) 85% 58%); }
.card-overlay .cat { color: #eeece7; }
.card__title { font-size: 1.3rem; line-height: 1.1; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }

/* ---------- Hero ---------- */
.oc-hero { display: grid; gap: 16px; padding-block: clamp(20px, 3vw, 32px) 18px; }
@media (min-width: 760px) { .oc-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } .oc-hero__lead { grid-column: 1 / -1; } }
@media (min-width: 1140px) { .oc-hero { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, .95fr); } .oc-hero__lead { grid-column: auto; } }
.oc-lead.card-overlay { height: 100%; min-height: 560px; border-radius: 16px; }
.oc-lead .card__title { font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1.02; max-width: 18ch; }
.oc-panel { height: 100%; gap: 0; border-radius: 16px; overflow: hidden; background: var(--surface); }
.oc-panel .media { border-radius: 0; }
.oc-panel .card__body { padding: 16px 18px 20px; }
.oc-hero__tall .oc-panel .card__title { font-size: 1.55rem; }
.oc-hero__pair { display: grid; gap: 16px; }
.oc-hero__pair .oc-panel .media { aspect-ratio: 16 / 9; }

/* ---------- Topic chips ---------- */
.oc-cats ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.oc-cats a { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.oc-cats a:hover { border-color: hsl(var(--cat-hue) 85% 58%); }
.oc-cats__dot { width: 10px; height: 10px; border-radius: 2px; background: hsl(var(--cat-hue) 85% 58%); }
.oc-cats__count { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Rumour mill and meter ---------- */
.oc-rumours { margin-bottom: clamp(44px, 5vw, 64px); }
.oc-rumours__list .card-row { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); }
.oc-rumours__list .media { border-radius: 12px; }
.oc-rumours__list .card__title { font-size: 1.3rem; }
.oc-meter { display: inline-flex; align-items: center; gap: .6rem; margin-top: .45rem; font-size: .82rem; font-weight: 600; color: var(--text-2); }
.oc-meter__bars { display: inline-flex; gap: 3px; }
.oc-meter__bars i { width: 14px; height: 8px; border-radius: 2px; background: var(--surface-2); }
.oc-meter__bars i.on { background: var(--accent); }
.oc-meter[data-level="5"] .oc-meter__bars i.on { background: var(--indicator); }
.oc-meter--big { margin-top: 0; font-size: 1rem; }
.oc-meter--big .oc-meter__bars { gap: 5px; }
.oc-meter--big .oc-meter__bars i { width: 36px; height: 14px; border-radius: 4px; }

/* ---------- Sidebar ---------- */
.oc-launches ol { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.oc-launch { display: grid; grid-template-columns: 3.3rem minmax(0, 1fr); gap: .85rem; align-items: center; }
.oc-launch__date { display: grid; place-items: center; padding: .4rem 0; border-radius: 10px; background: var(--surface-2); line-height: 1.05; }
.oc-launch__day { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.oc-launch__mon { font-size: .72rem; color: var(--muted); }
.oc-launch__info { display: flex; flex-direction: column; min-width: 0; }
.oc-launch__name { font-weight: 700; }
.oc-launch__brand { font-size: .82rem; color: var(--muted); }
.oc-launch__when { font-size: .82rem; font-weight: 700; color: var(--accent); }
.oc-launch.is-out .oc-launch__when { color: var(--indicator); }
.signup--sidebar { background: var(--surface-2); color: var(--text); }
.signup--sidebar .signup__button { background: var(--accent); color: var(--accent-ink); }
.signup--sidebar input[type="email"] { background: var(--bg); border-color: var(--line); color: var(--text); }

/* ---------- Single ---------- */
.oc-rumour, .oc-specbox { margin: 0 0 1.4rem; padding: 1.2rem 1.4rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.oc-specbox { margin-bottom: 2rem; }
.entry-content .oc-rumour__title, .entry-content .oc-specbox__title { margin: 0 0 .75rem; font-size: 1.25rem; }
.oc-rumour .oc-rumour__why { margin: .75rem 0 0; color: var(--text-2); }
.oc-specs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0 !important; }
.entry-content .oc-specs li { margin: 0 !important; padding: .35rem .75rem; border-radius: 8px; background: var(--surface-2); font-size: .92rem; font-weight: 600; }
.entry-title { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 800; }
.entry-content blockquote { border-left-color: var(--accent); font-weight: 600; }
.site-footer .brand__mark { color: var(--footer-text); }
.site-footer .signup { background: rgba(255,255,255,.04); color: var(--footer-text); padding: 1.4rem; }
.site-footer .signup__title { font-size: 1.25rem; }
.site-footer .signup__button { background: var(--accent); color: #1a1b1e; }
