/* ============================================
   Git Workflow Decision Tree — Styles
   Theme: Git documentation dark mode
   ============================================ */

:root {
  --primary: #F05033;
  --primary-dim: rgba(240, 80, 51, 0.15);
  --secondary: #6CC644;
  --secondary-dim: rgba(108, 198, 68, 0.15);
  --accent: #4078C0;
  --accent-dim: rgba(64, 120, 192, 0.15);
  --bg: #0D1117;
  --bg-card: rgba(13, 17, 23, 0.65);
  --bg-surface: #161B22;
  --border: rgba(48, 54, 61, 0.6);
  --text: #E6EDF3;
  --text-dim: #8B949E;
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 250ms ease;
  --font: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(240,80,51,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(108,198,68,0.03) 0%, transparent 50%);
}

.glass-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 1.5rem;
}

.header { padding: 1.25rem; text-align: center; border-bottom: 1px solid var(--border); }
.header-inner { max-width: 760px; margin: 0 auto; }
.logo { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.logo h1 {
  font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tagline { color: var(--text-dim); font-size: 0.85rem; }

.main { max-width: 760px; margin: 0 auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.section-title { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 0.75rem; }
.section-subtitle { font-size: 0.9rem; font-weight: 600; color: var(--text-dim); margin: 1rem 0 0.5rem; }

/* Progress */
.progress-bar { height: 4px; background: var(--bg-surface); border-radius: 2px; margin-bottom: 1rem; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 2px; transition: width 400ms ease; }

/* Question */
.question-container { min-height: 120px; }
.question-text { font-size: 1.05rem; font-weight: 600; margin-bottom: 1rem; }
.option-list { display: flex; flex-direction: column; gap: 0.5rem; }
.option-btn {
  padding: 0.65rem 1rem; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 0.85rem;
  cursor: pointer; transition: all var(--transition); text-align: left;
}
.option-btn:hover { border-color: var(--primary); background: var(--primary-dim); }
.nav-btns { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.step-indicator { font-size: 0.78rem; color: var(--text-dim); }

/* Result */
.result-badge {
  display: inline-block; padding: 0.5rem 1.25rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 1.1rem; font-weight: 800; margin-bottom: 0.75rem;
}
.result-desc { color: var(--text-dim); font-size: 0.9rem; line-height: 1.7; }

/* Diagram */
.diagram-section canvas { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* Why Not */
.why-item { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.why-name { font-weight: 600; color: var(--text-dim); font-size: 0.85rem; }
.why-reason { font-size: 0.78rem; color: var(--text-dim); }

/* Code block */
.code-block {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1rem; font-family: 'SF Mono', monospace; font-size: 0.78rem; color: var(--secondary);
  overflow-x: auto; white-space: pre; line-height: 1.6;
}

/* Comparison table */
.table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.compare-table th { text-align: left; padding: 0.5rem; border-bottom: 2px solid var(--border); color: var(--text-dim); font-weight: 600; }
.compare-table td { padding: 0.5rem; border-bottom: 1px solid var(--border); color: var(--text); }
.compare-table tr.highlight { background: var(--primary-dim); }

.result-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; border: none;
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.btn-primary { background: linear-gradient(135deg, var(--primary), #D94426); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(240,80,51,0.35); }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; }

.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--primary); color: #fff; padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; z-index: 1000; transition: transform 300ms ease;
}
.toast.show { transform: translateX(-50%) translateY(0); }

.footer { text-align: center; padding: 1.25rem; color: var(--text-dim); font-size: 0.8rem; border-top: 1px solid var(--border); }
