/* SCDS Lecture Website Styles */

:root {
  --primary-color: #2c3e50;
  --accent-color: #3498db;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --border-color: #e9ecef;
  --code-bg: #f4f4f4;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: #fff;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--primary-color);
  padding: 1rem 0;
  color: #fff;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: #fff;
}

/* Main content */
main {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

/* Lecture styles */
.lecture-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.lecture-header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.lecture-meta {
  color: #666;
  font-size: 0.9rem;
}

.lecture-meta span {
  margin-right: 1.5rem;
}

.lecture-resources {
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.btn:hover {
  background: #2980b9;
}

/* Content styles */
.lecture-content h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.lecture-content h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin: 1.5rem 0 0.75rem;
}

.lecture-content p {
  margin-bottom: 1rem;
}

.lecture-content ul, .lecture-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.lecture-content li {
  margin-bottom: 0.5rem;
}

/* Code blocks */
pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
}

code {
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

p code {
  background: var(--code-bg);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #555;
  font-style: italic;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

th {
  background: var(--light-bg);
  font-weight: 600;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

/* Math */
.MathJax {
  font-size: 1.1em !important;
}

/* Navigation */
.lecture-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}

.lecture-nav a {
  color: var(--accent-color);
  text-decoration: none;
}

.lecture-nav a:hover {
  text-decoration: underline;
}

/* Lecture list */
.lecture-list {
  list-style: none;
  padding: 0;
}

.lecture-list li {
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--light-bg);
  border-radius: 4px;
  border-left: 4px solid var(--accent-color);
}

.lecture-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.lecture-list a:hover {
  color: var(--accent-color);
}

.lecture-list .module {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  background: var(--light-bg);
  padding: 1.5rem 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    text-align: center;
  }

  .site-nav {
    margin-top: 0.75rem;
  }

  .site-nav a {
    margin: 0 0.75rem;
  }

  .lecture-header h1 {
    font-size: 1.5rem;
  }
}
