/* =====================================================
   PHIL 1000 Study Guide — Fitchburg State University
   FSU brand colors: Green #0A5640 | Gold #E9AF2F
   ===================================================== */

:root {
  --fsu-green:       #0A5640;
  --fsu-green-dark:  #073d2d;
  --fsu-green-light: #e8f2ee;
  --fsu-gold:        #E9AF2F;
  --fsu-gold-light:  #fdf3d6;
  --text-primary:    #1a1a1a;
  --text-secondary:  #444444;
  --border:          #d0d0d0;
  --bg-page:         #f8f8f6;
  --bg-white:        #ffffff;
  --transcript-bg:   #f4f4f0;
  --transcript-border: #c8c8c0;
  --link:            #0A5640;
  --link-hover:      #E9AF2F;
}

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-page);
}

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

/* ---- Site Header ---- */
.site-header {
  background: var(--fsu-green);
  color: #fff;
  padding: 0;
  border-bottom: 4px solid var(--fsu-gold);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header .institution {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fsu-gold);
  font-weight: 700;
}

.site-header .course-title {
  font-size: 1.05rem;
  color: #fff;
  font-weight: normal;
}

.site-header-text { display: flex; flex-direction: column; gap: 2px; }

/* ---- Page Hero ---- */
.page-hero {
  background: var(--fsu-green-dark);
  color: #fff;
  padding: 32px 24px 28px;
  border-bottom: 3px solid var(--fsu-gold);
}

.page-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.chapter-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fsu-gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.page-hero h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-hero .subtitle {
  font-size: 1rem;
  color: #c8e4d8;
  margin-bottom: 14px;
}

.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--fsu-gold);
  color: #1a1a1a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s;
}

.watch-btn:hover {
  background: #d49c20;
  color: #000;
}

.watch-btn svg { flex-shrink: 0; }

/* ---- Main Layout ---- */
.page-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ---- Study Content Sections ---- */
.study-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.study-section h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fsu-green);
  border-bottom: 2px solid var(--fsu-gold);
  padding-bottom: 8px;
  margin-bottom: 16px;
  font-weight: 700;
}

.study-section p { margin-bottom: 10px; }
.study-section p:last-child { margin-bottom: 0; }

/* Key Concepts */
.concept-list {
  list-style: none;
  padding: 0;
}

.concept-list li {
  padding: 6px 0 6px 18px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.concept-list li:last-child { border-bottom: none; }

.concept-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--fsu-gold);
  font-size: 0.85rem;
}

/* Glossary */
.glossary-list { list-style: none; padding: 0; }

.glossary-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.glossary-list li:last-child { border-bottom: none; }

.glossary-term {
  font-weight: bold;
  color: var(--fsu-green);
}

.glossary-def {
  display: block;
  color: var(--text-secondary);
  margin-top: 2px;
  font-size: 0.95rem;
}

/* Examples */
.example-block {
  background: var(--fsu-green-light);
  border-left: 4px solid var(--fsu-green);
  border-radius: 0 4px 4px 0;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.example-block:last-child { margin-bottom: 0; }

.example-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fsu-green);
  margin-bottom: 4px;
}

/* Exam Questions */
.exam-list {
  list-style: none;
  padding: 0;
  counter-reset: exam-counter;
}

.exam-list li {
  padding: 10px 10px 10px 42px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  counter-increment: exam-counter;
}

.exam-list li:last-child { border-bottom: none; }

.exam-list li::before {
  content: counter(exam-counter);
  position: absolute;
  left: 0;
  top: 10px;
  width: 28px;
  height: 28px;
  background: var(--fsu-green);
  color: #fff;
  border-radius: 50%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 28px;
}

/* ---- Transcript Section ---- */
.transcript-section {
  background: var(--transcript-bg);
  border: 1px solid var(--transcript-border);
  border-radius: 6px;
  margin-bottom: 24px;
  overflow: hidden;
}

.transcript-header {
  background: #e8e8e2;
  border-bottom: 1px solid var(--transcript-border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.transcript-header h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  margin: 0;
}

.transcript-toggle {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  color: #666;
  background: none;
  border: 1px solid #bbb;
  border-radius: 3px;
  padding: 4px 10px;
  cursor: pointer;
}

.transcript-toggle:hover { background: #ddd; }

.transcript-note {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  color: #777;
  padding: 10px 24px;
  border-bottom: 1px solid var(--transcript-border);
  font-style: italic;
}

.transcript-body {
  padding: 20px 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #333;
  max-height: 600px;
  overflow-y: auto;
}

.transcript-body.collapsed { display: none; }

.transcript-chunk { margin-bottom: 14px; }

.ts-link {
  color: var(--fsu-green);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  margin-right: 6px;
}

.ts-link:hover {
  color: var(--fsu-gold);
  text-decoration: underline;
}

.ts-text { color: #333; }

/* ---- Navigation ---- */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--border);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
}

.nav-link {
  color: var(--fsu-green);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover { color: var(--fsu-gold); }
.nav-link.disabled { color: #aaa; pointer-events: none; }

.nav-index {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
}

.nav-index:hover { color: var(--fsu-green); }

/* ---- Index Page ---- */
.index-hero {
  background: linear-gradient(135deg, var(--fsu-green-dark) 0%, var(--fsu-green) 100%);
  color: #fff;
  padding: 48px 24px;
  border-bottom: 4px solid var(--fsu-gold);
}

.index-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.index-hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.index-hero .tagline {
  font-size: 1.1rem;
  color: #c8e4d8;
  margin-bottom: 6px;
}

.index-hero .meta {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  color: var(--fsu-gold);
  letter-spacing: 0.05em;
}

.index-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.part-header {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fsu-green);
  border-bottom: 2px solid var(--fsu-gold);
  padding-bottom: 6px;
  margin: 32px 0 16px;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.chapter-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.chapter-card:hover {
  border-color: var(--fsu-green);
  box-shadow: 0 2px 8px rgba(10,86,64,0.10);
  color: var(--text-primary);
}

.chapter-card .card-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fsu-gold);
  margin-bottom: 4px;
}

.chapter-card .card-title {
  font-size: 1rem;
  font-weight: bold;
  color: var(--fsu-green);
  line-height: 1.3;
  margin-bottom: 4px;
}

.chapter-card .card-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

.chapter-card.reading {
  border-left: 4px solid var(--fsu-gold);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--fsu-green-dark);
  color: #aaa;
  text-align: center;
  padding: 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  border-top: 3px solid var(--fsu-gold);
}

.site-footer a { color: var(--fsu-gold); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .page-hero h1 { font-size: 1.5rem; }
  .study-section { padding: 20px 18px; }
  .chapter-grid { grid-template-columns: 1fr; }
  .transcript-body { font-size: 0.78rem; }
}
