/* ── NORMOYLE AGENTIC AI COURSE — BRAND-MATCHED STYLES ── */
/* Matches normoyle.com.au: light/white, charcoal headings, orange-red accent */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Outfit:wght@300;400;500;600;700;800&family=Barlow+Condensed:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Normoyle brand palette */
  --bg:        #ffffff;
  --bg2:       #f7f8f6;
  --bg3:       #efefed;
  --bg4:       #e6e6e4;
  --border:    rgba(0,0,0,0.08);
  --border-hi: rgba(0,0,0,0.18);

  /* Normoyle orange-red CTA (from their button colour) */
  --accent:    #d9440d;
  --accent-lt: #f25a1f;
  --accent2:   #1a3a5c;   /* navy — secondary accent */
  --accent3:   #2e7d56;   /* green — success / positive */

  /* Typography */
  --text:      #111312;
  --text2:     #4a4f48;
  --text3:     #8a8f88;

  /* Fonts */
  --mono: 'DM Mono', monospace;
  --sans: 'Outfit', sans-serif;
  --cond: 'Barlow Condensed', sans-serif;
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ─────────── HEADER ─────────── */
header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
  box-shadow: 0 1px 0 var(--border);
}

.logo {
  font-family: var(--cond);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.logo span { color: var(--accent); }

.header-nav { display: flex; align-items: center; gap: 2rem; }
.header-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav a:hover, .header-nav a.active { color: var(--accent); }

/* Reading progress bar */
.progress-bar { position: fixed; top: 60px; left: 0; right: 0; height: 3px; background: var(--bg3); z-index: 199; }
.progress-fill { height: 100%; background: var(--accent); width: 0; transition: width 0.1s; }

/* ─────────── SIDEBAR ─────────── */
.layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 60px); }

.sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  position: sticky; top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 1.5rem 0;
}

.sidebar-section { margin-bottom: 1.75rem; }
.sidebar-heading {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text3);
  text-transform: uppercase;
  padding: 0 1.25rem;
  margin-bottom: 0.5rem;
}

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 1.25rem;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text2);
  text-decoration: none;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  line-height: 1.3;
}

.sidebar-link:hover { color: var(--text); background: var(--bg3); }
.sidebar-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(217,68,13,0.05);
  font-weight: 600;
}

.sidebar-link .num {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  min-width: 20px;
}
.sidebar-link.active .num { color: var(--accent); }

.sidebar-link .done { margin-left: auto; font-size: 11px; color: var(--accent3); opacity: 0; }
.sidebar-link.done-item .done { opacity: 1; }

/* ─────────── MAIN CONTENT ─────────── */
.main-content { padding: 3rem 3.5rem 6rem; max-width: 880px; }

/* ─────────── TYPOGRAPHY ─────────── */
.page-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

h1.page-title {
  font-family: var(--cond);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

h1.page-title em {
  font-style: normal;
  color: var(--accent);
  display: block;
}

.page-intro {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}

h2.section-title {
  font-family: var(--cond);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 3rem 0 1.25rem;
  padding-top: 2rem;
  border-top: 2px solid var(--bg3);
  color: var(--text);
}

h3.sub-title {
  font-family: var(--cond);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

p { font-size: 15px; color: var(--text2); line-height: 1.75; margin-bottom: 1rem; }
p strong { color: var(--text); font-weight: 600; }

/* ─────────── CALLOUT BOXES ─────────── */
.callout {
  border-left: 3px solid var(--accent);
  background: #fff8f5;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid rgba(217,68,13,0.15);
  border-left: 3px solid var(--accent);
}
.callout.orange {
  border-left-color: #e07b00;
  background: #fffbf0;
  border-color: rgba(224,123,0,0.15);
  border-left-color: #e07b00;
}
.callout.blue {
  border-left-color: var(--accent2);
  background: #f0f5fc;
  border-color: rgba(26,58,92,0.12);
  border-left-color: var(--accent2);
}

.callout-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.callout.orange .callout-label { color: #e07b00; }
.callout.blue .callout-label { color: var(--accent2); }
.callout p { margin: 0; font-size: 14px; }

/* ─────────── CODE BLOCKS ─────────── */
.code-block {
  background: #1a1d1b;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.code-block .code-label {
  font-family: var(--mono);
  font-size: 9px;
  color: #8a8f82;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.code-block pre {
  font-family: var(--mono);
  font-size: 13px;
  color: #e8ead6;
  line-height: 1.65;
  white-space: pre;
  overflow-x: auto;
}

/* Syntax colours (kept legible on dark bg) */
.code-block pre .kw  { color: #f59e42; }   /* keywords — warm amber */
.code-block pre .str { color: #7ec8a0; }   /* strings — sage green */
.code-block pre .cm  { color: #5a5f54; font-style: italic; }
.code-block pre .fn  { color: #60b4d8; }   /* functions — sky blue */
.code-block pre .num { color: #d97979; }   /* numbers — muted red */

/* ─────────── STEP LIST ─────────── */
.step-list {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 1.5rem 0;
}

.step-list li {
  counter-increment: steps;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  position: relative;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.step-list li:hover {
  border-color: rgba(217,68,13,0.25);
  box-shadow: 0 2px 8px rgba(217,68,13,0.06);
}

.step-list li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute; left: 1rem; top: 1.25rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

.step-list li strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ─────────── COMPARISON TABLE ─────────── */
.compare-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 13px; }

.compare-table th {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  background: var(--bg2);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border-hi);
}

.compare-table td {
  padding: 11px 14px;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.compare-table tr:hover td { background: var(--bg2); }
.compare-table td:first-child { color: var(--text); font-weight: 500; }

.compare-table .yes {
  color: var(--accent3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.compare-table .no {
  color: var(--text3);
  font-family: var(--mono);
  font-size: 11px;
}

/* ─────────── INFO GRID ─────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.info-card {
  background: var(--bg);
  padding: 1.5rem;
  transition: background 0.15s;
}
.info-card:hover { background: var(--bg2); }

.info-card .ic-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.info-card .ic-title {
  font-family: var(--cond);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.info-card p { font-size: 13px; margin: 0; }

/* ─────────── DIAGRAM WRAP ─────────── */
.diagram-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  overflow-x: auto;
}

/* SVG diagram: restyle the dark boxes to light */
.diagram-wrap svg rect[fill="#1a1d1b"] { fill: #f7f8f6 !important; }
.diagram-wrap svg rect[fill="#131615"] { fill: #efefed !important; }

/* ─────────── QUIZ ─────────── */
.quiz {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2rem 0;
}

.quiz-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.quiz-options { display: flex; flex-direction: column; gap: 8px; }

.quiz-opt {
  padding: 11px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  color: var(--text2);
  transition: all 0.15s;
  text-align: left;
  font-family: var(--sans);
}
.quiz-opt:hover { border-color: var(--accent); color: var(--text); background: #fff8f5; }
.quiz-opt.correct {
  border-color: var(--accent3);
  color: var(--accent3);
  background: rgba(46,125,86,0.06);
  font-weight: 600;
}
.quiz-opt.wrong {
  border-color: #c0392b;
  color: #c0392b;
  background: rgba(192,57,43,0.06);
}

.quiz-feedback {
  margin-top: 1rem;
  font-size: 13.5px;
  color: var(--text2);
  padding: 12px 16px;
  background: var(--bg);
  border-left: 3px solid var(--accent3);
  border-radius: 0 var(--radius) var(--radius) 0;
  display: none;
  line-height: 1.6;
}
.quiz-feedback.show { display: block; }

/* ─────────── PAGE NAV FOOTER ─────────── */
.page-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--bg3);
}

.page-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text2);
  text-decoration: none;
  padding: 11px 18px;
  border: 1.5px solid var(--border-hi);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.page-nav-btn:hover { color: var(--accent); border-color: var(--accent); background: #fff8f5; }

.page-nav-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.page-nav-btn.primary:hover { background: var(--accent-lt); border-color: var(--accent-lt); color: #fff; }

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: 0; height: auto; max-height: none; }
  .main-content { padding: 2rem 1.5rem 4rem; }
}

@media (max-width: 600px) {
  h1.page-title { font-size: 2.4rem; }
  .main-content { padding: 1.5rem 1rem 3rem; }
}

/* ─────────── ANIMATIONS ─────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp 0.5s ease both; }
.fade-up-2 { animation: fadeUp 0.5s ease 0.1s both; }
.fade-up-3 { animation: fadeUp 0.5s ease 0.2s both; }

/* ─────────── SETUP PAGE SPECIFICS ─────────── */
/* Inherits code-block dark theme above */

/* ─────────── TOOLS PAGE SPECIFICS ─────────── */
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: #8a8f82;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}
.copy-btn:hover { color: #f59e42; border-color: #f59e42; }
.copy-btn.copied { color: #7ec8a0; border-color: #7ec8a0; }

.tool-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1px;
  background: var(--border);
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tool-card { background: var(--bg); padding: 1.5rem; transition: background 0.15s; }
.tool-card:hover { background: var(--bg2); }

.tool-name {
  font-family: var(--cond);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--text);
}
.tool-type {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tool-desc { font-size: 13px; color: var(--text2); line-height: 1.55; margin-bottom: 8px; }
.tool-url { font-family: var(--mono); font-size: 11px; color: var(--accent2); }

.prompt-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg3);
  margin: 1.5rem 0 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: none;
}

.prompt-tab {
  padding: 10px 16px;
  background: var(--bg2);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text3);
  cursor: pointer;
  text-transform: uppercase;
  border: none;
  transition: all 0.15s;
}
.prompt-tab:hover { color: var(--text2); background: var(--bg3); }
.prompt-tab.active {
  color: var(--accent);
  background: #1a1d1b;   /* matches code-block dark bg */
  border-top: 2px solid var(--accent);
}

.prompt-panels > div { display: none; }
.prompt-panels > div.active { display: block; }
/* Remove top-radius on the first code block under tabs */
.prompt-panels .code-block { border-radius: 0 0 var(--radius) var(--radius); margin-top: 0; }

