/* test.lehum.site - CSE 135 Test Site */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0f0f12;
  --surface: #1a1a20;
  --border: #2d2d36;
  --text: #e8e8ed;
  --muted: #8888a0;
  --accent: #7c6cf9;
  --accent-hover: #9488fa;
  --success: #4ade80;
  --warning: #fbbf24;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  font-weight: 500;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  text-align: center;
  padding: 3rem 0;
}
.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

/* Forms */
label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

button,
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover,
.btn:hover {
  background: var(--accent-hover);
}

.form-group {
  margin-bottom: 1rem;
}

/* Quiz */
.quiz-option {
  display: block;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.quiz-option:hover {
  border-color: var(--accent);
}
.quiz-option.selected {
  border-color: var(--accent);
  background: rgba(124, 108, 249, 0.15);
}
.quiz-option.correct {
  border-color: var(--success);
  background: rgba(74, 222, 128, 0.15);
}
.quiz-option.wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.quiz-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  font-weight: 500;
}
.quiz-result.correct {
  background: rgba(74, 222, 128, 0.2);
  color: var(--success);
}
.quiz-result.wrong {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Interactive demo */
.toggle-demo {
  padding: 1rem;
  background: var(--bg);
  border-radius: 6px;
  margin: 1rem 0;
}
.toggle-demo button {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.counter-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  margin: 1rem 0;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.page-title {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}
