/*
Theme Name: AEO SEO Scorecard
Theme URI:
Author: Building Brands Marketing
Author URI:
Description: Monthly AEO / SEO Scorecard theme — dark, interactive, auto-calculating composite score.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aeo-seo-scorecard
Tags: dark, scorecard, marketing, single-page
*/

/* ─── Design Tokens ──────────────────────────────────── */
:root {
  --black:  #0A0A0A;
  --panel:  #141414;
  --line:   #2a2a2a;
  --yellow: #FFC320;
  --amber:  #B8860B;
  --white:  #F4F4F2;
  --muted:  #9a9a96;
  --green:  #5BD08A;
  --red:    #E8736A;
  --orange: #E8A23A;
}

/* ─── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--black);
  color: var(--white);
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; }

/* ─── Layout ─────────────────────────────────────────── */
.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

/* ─── Masthead ───────────────────────────────────────── */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 42px 0 22px;
  border-bottom: 2px solid var(--yellow);
}
.kicker {
  color: var(--yellow);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: bold;
}
.masthead h1 { font-size: 32px; margin-top: 6px; }
.hdr-inputs  { text-align: right; }
.hdr-inputs input { margin-bottom: 6px; }
.lbl {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

/* ─── Inputs ─────────────────────────────────────────── */
input[type=number],
input[type=text] {
  background: #1c1c1c;
  border: 1px solid var(--line);
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 14px;
  padding: 6px 9px;
  border-radius: 6px;
  width: 84px;
  outline: none;
  text-align: right;
}
input[type=text].wide {
  text-align: left;
  width: 200px;
  font-family: Calibri, sans-serif;
}
input:focus {
  border-color: var(--yellow);
  background: #222;
}
input[type=checkbox] {
  width: 17px;
  height: 17px;
  accent-color: var(--yellow);
  vertical-align: middle;
  cursor: pointer;
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  background: linear-gradient(160deg, #161616, #0d0d0d);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 34px;
  margin-top: 28px;
  align-items: center;
}
.gauge {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 auto;
  background: radial-gradient(closest-side, var(--panel) 79%, transparent 80%),
              conic-gradient(var(--yellow) 0deg, #2c2c2c 0deg);
}
.gauge .val  { font-family: Georgia, serif; font-size: 52px; line-height: 1; }
.gauge .of   { color: var(--muted); font-size: 13px; }
.gauge .lab  {
  position: absolute;
  bottom: 30px;
  color: var(--yellow);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: bold;
}
.delta {
  text-align: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.hero-copy h2         { font-size: 21px; margin-bottom: 8px; }
.hero-copy h2 b       { color: var(--yellow); }
.hero-copy .grade-line { color: #cfcfca; font-size: 14px; }

/* ─── Sections ───────────────────────────────────────── */
section { margin-top: 42px; }
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
  margin-bottom: 20px;
}
.sec-head .num  { font-family: Georgia, serif; color: var(--yellow); font-size: 15px; }
.sec-head h2    { font-size: 23px; }
.sec-head .note { margin-left: auto; color: var(--muted); font-size: 12px; }

/* ─── Pillar Cards ───────────────────────────────────── */
.pcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px 22px;
  margin-bottom: 16px;
}
.pcard .ptop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pcard .pname   { font-family: Georgia, serif; font-size: 17px; }
.pcard .pweight { margin-left: auto; color: var(--muted); font-size: 12px; }
.pcard .pweight input { width: 54px; }
.pcard .pscore  { font-family: Georgia, serif; font-size: 22px; color: var(--yellow); min-width: 54px; text-align: right; }

.ins               { display: flex; flex-wrap: wrap; gap: 16px 22px; }
.ins .f            { display: flex; flex-direction: column; }
.ins .f .flbl      { color: var(--muted); font-size: 11.5px; margin-bottom: 4px; }
.ins .chk          { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #dcdcd8; }
.track             { height: 8px; background: #242424; border-radius: 6px; overflow: hidden; margin-top: 14px; }
.fill              { height: 100%; background: linear-gradient(90deg, var(--amber), var(--yellow)); width: 0; transition: width .25s; }

/* ─── Table ──────────────────────────────────────────── */
table        { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 6px; }
th           { text-align: left; color: var(--yellow); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 9px 12px; border-bottom: 1px solid var(--line); font-weight: bold; }
td           { padding: 9px 12px; border-bottom: 1px solid #1e1e1e; color: #dcdcd8; }
td .n, th.n, td.n  { font-family: Georgia, serif; text-align: right; }
th.n         { text-align: right; }
.row-total td { border-top: 2px solid var(--yellow); font-family: Georgia, serif; color: var(--white); background: #121212; }
.row-base td  { color: var(--muted); font-style: italic; }
tbody tr:hover { background: #141414; }
td input     { width: 78px; }
td input.dur { width: 64px; }

/* ─── Callout ────────────────────────────────────────── */
.callout {
  background: #121008;
  border: 1px solid #3a2f10;
  border-left: 3px solid var(--yellow);
  border-radius: 8px;
  padding: 15px 20px;
  margin-top: 18px;
  color: #e3ddca;
  font-size: 13.5px;
}
.callout b { color: var(--yellow); }

/* ─── Footer ─────────────────────────────────────────── */
.foot {
  margin-top: 54px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #6f6f6c;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 820px) {
  .hero             { grid-template-columns: 1fr; }
  .masthead         { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hdr-inputs       { text-align: left; }
}
