/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(to bottom, #1e293b, #0f172a);
  color: #f1f5f9;
  line-height: 1.6;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.site-header {
  border-bottom: 1px solid #334155;
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(8px);
}

.header-content {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.header-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.main-description {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #94a3b8;
}

/* Main Content */
.main-content {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.content-inner {
  max-width: 56rem;
  margin: 0 auto;
}

/* Table of Contents Header */
.toc-header {
  margin-bottom: 2rem;
}

.toc-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.toc-subtitle {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Chapters List */
.chapters-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Chapter Link */
.chapter-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  background: rgba(30, 41, 59, 0.8);
  text-decoration: none;
  color: #f1f5f9;
  transition: all 0.2s ease;
}

.chapter-link:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  background: rgba(30, 41, 59, 1);
}

.chapter-link:hover .chapter-title {
  color: #38bdf8;
}

.chapter-link:hover .chapter-arrow {
  transform: translateX(4px);
  color: #38bdf8;
}

/* Chapter Meta */
.chapter-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.icon-wrapper {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.chapter-number {
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
}

/* Chapter Content */
.chapter-content {
  flex: 1;
  min-width: 0;
}

.chapter-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.chapter-description {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Chapter Arrow */
.chapter-arrow {
  flex-shrink: 0;
  color: #94a3b8;
  transition: all 0.2s ease;
}

/* Info Box */
.info-box {
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  background: rgba(30, 41, 59, 0.8);
}

.info-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-text {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #94a3b8;
}

/* Footer */
.site-footer {
  border-top: 1px solid #334155;
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(8px);
  margin-top: 3rem;
}

.footer-content {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.footer-inner {
  text-align: center;
  font-size: 0.875rem;
  color: #94a3b8;
}

.footer-subtitle {
  margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
  }

  .main-description {
    font-size: 1rem;
  }

  .chapter-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .chapter-arrow {
    align-self: flex-end;
  }
}

