/* ============================================================
   Canary Modern Theme — main.css
   Premium visual design for Canary Pilot Setup Guide
   ============================================================ */

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

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Brand colors */
  --canary-gold:       #C49A00;
  --canary-gold-light: #d4aa10;
  --canary-gold-dark:  #a88300;
  --dark:              #1a1a1a;
  --dark-elevated:     #252525;
  --light-bg:          #fafaf8;
  --page-bg:           #f5f4f0;

  /* Warning (yellow) */
  --warning-bg:        #fffbeb;
  --warning-border:    #f0d76a;
  --warning-text:      #7a6300;

  /* Success (green) */
  --success-bg:        #ecfdf5;
  --success-border:    #86efac;
  --success-text:      #166534;

  /* Gather box (warm yellow) */
  --gather-bg:         #fefce8;
  --gather-border:     #eab308;
  --gather-label-text: #a16207;

  /* Neutral */
  --border-light:      #e5e5e0;
  --border-subtle:     #f0efeb;
  --text-gray:         #6b7280;
  --text-secondary:    #9ca3af;
  --text-dark:         #111827;
  --white:             #ffffff;

  /* Shadows */
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:    0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg:    0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-gold:  0 4px 14px -3px rgba(196, 154, 0, 0.25);
  --shadow-gold-hover: 0 8px 20px -3px rgba(196, 154, 0, 0.35);

  /* Typography */
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* ── Base Typography ───────────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  color: var(--text-dark);
  background: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ────────────────────────────────────────────────── */
.content-area {
  padding: 24px 20px;
  width: 100%;
}

@media (min-width: 481px) {
  .content-area {
    padding: 32px 28px;
  }
}

@media (min-width: 769px) {
  .content-area {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 48px 32px;
  }
}

@media (min-width: 1024px) {
  .content-area {
    max-width: 800px;
    padding: 56px 40px;
  }

  .step-title {
    font-size: 28px;
  }

  .step-desc {
    font-size: 16px;
  }

  .cta-next {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .choice-card {
    padding: 22px 24px;
  }

  .instruction-card {
    padding: 22px 24px;
  }
}

/* ── Header ────────────────────────────────────────────────── */
.canary-header {
  background: linear-gradient(180deg, #222 0%, var(--dark) 100%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  position: relative;
  z-index: 110;
}

.canary-logo {
  color: var(--canary-gold);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-decoration: none;
}

.canary-header-subtitle {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Sticky Navigation ─────────────────────────────────────── */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
}

.sticky-nav::-webkit-scrollbar {
  display: none;
}

.sticky-nav a,
.sticky-nav .nav-item {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
  user-select: none;
}

.sticky-nav a:hover,
.sticky-nav .nav-item:hover {
  color: var(--text-dark);
}

.sticky-nav a.active,
.sticky-nav .nav-item.active {
  color: var(--text-dark);
  font-weight: 700;
  border-bottom: 2.5px solid var(--canary-gold);
}

.sticky-nav a.completed,
.sticky-nav .nav-item.completed {
  color: var(--success-text);
}

.sticky-nav a.completed::after,
.sticky-nav .nav-item.completed::after {
  content: ' \2713';
  font-size: 11px;
  margin-left: 4px;
}

/* ── Step Labels ───────────────────────────────────────────── */
.step-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--canary-gold);
  margin-bottom: 6px;
}

.step-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.step-desc {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ── Gather Box ────────────────────────────────────────────── */
.gather-box {
  background: var(--gather-bg);
  border: 1px solid var(--gather-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.gather-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gather-label-text);
  margin-bottom: 10px;
}

.gather-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gather-item {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--gather-border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ── Instruction Card ──────────────────────────────────────── */
.instruction-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border-left: 4px solid var(--canary-gold);
  margin: 16px 0;
  box-shadow: var(--shadow-md);
}

.instruction-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.instruction-card p,
.instruction-card li {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.65;
}

.instruction-card ul,
.instruction-card ol {
  padding-left: 20px;
  margin-top: 8px;
}

.instruction-card li {
  margin-bottom: 6px;
}

/* ── Warning Box ───────────────────────────────────────────── */
.warning-box {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  color: var(--warning-text);
  font-size: 14px;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

.warning-box .warning-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.warning-box p { margin: 0; }

/* ── Success Box ───────────────────────────────────────────── */
.success-box {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  color: var(--success-text);
  font-size: 14px;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

.success-box .success-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.success-box p { margin: 0; }

/* ── Choice Card ───────────────────────────────────────────── */
.choice-card {
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 10px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.choice-card:hover {
  border-color: var(--canary-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.choice-card:active {
  transform: translateY(0);
}

.choice-card.selected {
  border-color: var(--canary-gold);
  background: var(--gather-bg);
  box-shadow: var(--shadow-gold);
}

.choice-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.choice-card p {
  font-size: 13px;
  color: var(--text-gray);
  margin: 0;
}

/* ── Check Items ───────────────────────────────────────────── */
.check-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s;
}

.check-item:last-child {
  border-bottom: none;
}

.check-item:hover {
  background: rgba(0,0,0,0.01);
}

.check-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid var(--border-light);
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: var(--white);
  margin-top: 0;
  box-shadow: var(--shadow-sm);
}

.check-circle:hover {
  border-color: var(--success-border);
}

.check-circle.checked,
.check-item.checked .check-circle {
  background: var(--success-text);
  border-color: var(--success-text);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.3);
}

.check-circle.checked::after,
.check-item.checked .check-circle::after {
  content: '\2713';
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.check-item-text {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.5;
  padding-top: 3px;
}

.check-item.checked .check-item-text {
  color: var(--text-secondary);
  text-decoration: line-through;
  text-decoration-color: var(--success-border);
}

/* ── Image Placeholder ─────────────────────────────────────── */
.img-placeholder {
  display: none;
}

/* ── CTA / Buttons ─────────────────────────────────────────── */
.cta-next {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, var(--canary-gold-light) 0%, var(--canary-gold) 100%);
  color: var(--white);
  font-family: var(--font-stack);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin: 24px 0 12px;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.cta-next:hover {
  background: linear-gradient(180deg, var(--canary-gold) 0%, var(--canary-gold-dark) 100%);
  box-shadow: var(--shadow-gold-hover);
  transform: translateY(-1px);
}

.cta-next:active {
  transform: translateY(0);
  box-shadow: var(--shadow-gold);
}

.print-btn {
  display: block;
  width: 100%;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-stack);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin: 8px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.print-btn:hover {
  background: var(--dark-elevated);
  box-shadow: var(--shadow-md);
}

/* ── Progress Dots (nav-flow) ──────────────────────────────── */
.nav-flow {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 0;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: var(--border-light);
  transition: width 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

.nav-dot.active {
  width: 28px;
  background: var(--canary-gold);
  box-shadow: 0 0 8px rgba(196, 154, 0, 0.35);
}

.nav-dot.done {
  background: var(--success-border);
}

/* ── Utility Spacing ───────────────────────────────────────── */
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ── Section Divider ───────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 32px 0;
}

/* ── Step Section ──────────────────────────────────────────── */
.step-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  transition: opacity 0.3s ease;
}

.step-section:last-child {
  border-bottom: none;
}

.step-header {
  margin-bottom: 20px;
}

/* ── Step Completion ───────────────────────────────────────── */

.step-section.completed {
  opacity: 0.4;
}

.step-section.completed:hover {
  opacity: 0.7;
}

.step-check {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 12px;
}

.step-check-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--border-light);
  background: var(--white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.step-section.completed .step-check-box {
  background: var(--success-text);
  border-color: var(--success-text);
}

.step-section.completed .step-check-box::after {
  content: '\2713';
  color: white;
  font-size: 14px;
  font-weight: 700;
}

/* ── Print Header (hidden on screen) ──────────────────────── */
.print-header {
  display: none;
}
