/* Basketball 101 — Stylesheet */
/* Mobile-first responsive layout */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #222;
  background: #faf6f0;
}

a { color: #c0392b; }

/* Header */
.site-header {
  background: #1b2a4a;
  color: #fff;
  padding: 1rem;
}
.site-header h1 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.site-header h1 a { color: #fff; text-decoration: none; }

/* Navigation */
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.4rem 0.8rem;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95rem;
}
.site-nav a:hover { background: rgba(255,255,255,0.15); }
.site-nav a[aria-current="page"] { background: #e8622c; }

/* Main content */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

section { margin-bottom: 2rem; }

h2 {
  color: #1b2a4a;
  border-bottom: 3px solid #e8622c;
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
}

h3 {
  color: #333;
  margin: 1rem 0 0.4rem;
}

.hero-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.player-photo {
  width: 100%;
  max-width: 400px;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0.5rem 0 1rem;
}

p { margin-bottom: 0.8rem; }

ul { margin-left: 1.5rem; margin-bottom: 0.8rem; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
th, td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
}
th { background: #1b2a4a; color: #fff; }

/* Footer */
.site-footer {
  background: #1b2a4a;
  color: #ccc;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
}

/* Quiz styles */
#quiz {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}
.quiz-progress {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: #e8622c;
  width: 0%;
  transition: width 0.3s;
}
.quiz-question { font-weight: 600; margin-bottom: 1rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-options button {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fafafa;
  cursor: pointer;
  text-align: left;
}
.quiz-options button:hover { background: #e8622c; color: #fff; }
.quiz-result { text-align: center; padding: 1rem 0; }
.quiz-result .big { font-size: 1.5rem; color: #e8622c; font-weight: 700; margin: 0.5rem 0; }
.quiz-restart {
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  background: #1b2a4a;
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

/* Tablet and up */
@media (min-width: 768px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
  }
  .site-header h1 { margin-bottom: 0; }
  main { padding: 2rem; }
}