* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}
.c-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
}
.c-sidebar {
  width: 250px;
  background: #f9f9f9;
  border-right: 1px solid #ddd;
  padding: 2rem 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.c-sidebar h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.c-sidebar ul {
  list-style: none;
  padding: 0;
}
.c-sidebar li {
  margin: 0.5rem 0;
}
.c-sidebar a {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.95rem;
}
.c-sidebar a:hover {
  text-decoration: underline;
}
.c-content {
  flex: 1;
  padding: 2rem 3rem;
}
.breadcrumb {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #222;
}
h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: #222;
  border-bottom: 2px solid #4fd1c5;
  padding-bottom: 0.5rem;
}
h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.8rem;
  color: #333;
}
.intro-text {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.progress-bar {
  width: 100%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4fd1c5, #1ec4c4);
  width: 0%;
  transition: width 0.3s ease;
}
.progress-text {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
}
.why-learn-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.why-learn-list li {
  padding: 0.8rem 0;
  font-size: 1rem;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.comparison-table th,
.comparison-table td {
  border: 1px solid #ddd;
  padding: 0.8rem;
  text-align: left;
}
.comparison-table th {
  background: #f0f0f0;
  font-weight: 700;
}
.learning-path {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  gap: 1rem;
}
.path-step {
  background: #4fd1c5;
  color: #000;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  min-width: 140px;
}
.path-arrow {
  font-size: 1.5rem;
  color: #4fd1c5;
  font-weight: 700;
}
.lesson {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 1rem 0;
  padding: 0;
  transition: all 0.2s;
}
.lesson:hover {
  border-color: #4fd1c5;
}
.lesson summary {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lesson summary::-webkit-details-marker {
  display: none;
}
.lesson[open] summary {
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}
.lesson-content {
  margin-top: 0;
}
.code-block {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.code-block code {
  font-family: 'Courier New', monospace;
}
pre[class*="language-"] {
  background: #1e1e1e !important;
  border-radius: 6px;
  margin: 1rem 0;
}
.try-it-btn {
  display: inline-block;
  background: #4fd1c5;
  color: #000;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin: 1rem 0;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.try-it-btn:hover {
  background: #1ec4c4;
}
.projects-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.project-item {
  background: #f9f9f9;
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
  border-left: 4px solid #4fd1c5;
}
.project-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.project-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.8rem;
}
.project-meta span {
  margin-right: 1.5rem;
}
.project-concepts {
  font-size: 0.95rem;
  margin-top: 0.8rem;
  color: #555;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.resource-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.resource-card h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #333;
}
.resource-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.resource-card li {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}
.resource-card a {
  color: #0066cc;
  text-decoration: none;
}
.resource-card a:hover {
  text-decoration: underline;
}
.completion-checkbox {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.8rem;
  background: #e8f5f5;
  border-radius: 6px;
}
.completion-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.repos-section {
  margin: 3rem 0;
}
.repos-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.repos-search {
  display: flex;
  gap: 1rem;
}
.repos-search input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}
.repos-search input:focus {
  outline: none;
  border-color: #4fd1c5;
  box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.1);
}
.repos-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.filter-btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid #ddd;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: #4fd1c5;
  color: #4fd1c5;
}
.filter-btn.active {
  background: #4fd1c5;
  color: white;
  border-color: #4fd1c5;
}
.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.repo-card {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s;
}
.repo-card:hover {
  border-color: #4fd1c5;
  box-shadow: 0 4px 12px rgba(79, 209, 197, 0.15);
  transform: translateY(-2px);
}
.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
  gap: 1rem;
}
.repo-name {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
}
.repo-name a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}
.repo-name a:hover {
  text-decoration: underline;
}
.repo-stars {
  white-space: nowrap;
  font-weight: 600;
  color: #666;
  font-size: 0.95rem;
}
.repo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
  align-items: center;
}
.category-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}
.category-badge.learning {
  background: #dbeafe;
  color: #1e40af;
}
.category-badge.patterns {
  background: #ede9fe;
  color: #6d28d9;
}
.category-badge.project {
  background: #dcfce7;
  color: #15803d;
}
.category-badge.tool {
  background: #fed7aa;
  color: #92400e;
}
.activity-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 0.3rem;
}
.activity-dot.active {
  background: #22c55e;
}
.activity-dot.recent {
  background: #eab308;
}
.activity-dot.stale {
  background: #999;
}
.last-commit {
  font-size: 0.85rem;
  color: #666;
}
.license-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #555;
  font-weight: 600;
}
.repo-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.topic-tag {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: #e8e8e8;
  color: #555;
  border-radius: 4px;
  font-size: 0.8rem;
}
.repo-rationale {
  margin: 1rem 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}
.repo-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #4fd1c5;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.repo-link:hover {
  background: #1ec4c4;
}
.repos-loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}
.repos-error {
  padding: 1.5rem;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #991b1b;
  margin-bottom: 2rem;
}
.repos-empty {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
}
@media (max-width: 768px) {
  .repos-grid {
    grid-template-columns: 1fr;
  }
  .repos-filters {
    flex-direction: column;
  }
  .filter-btn {
    width: 100%;
    text-align: center;
  }
  .repo-header {
    flex-direction: column;
  }
  .repo-stars {
    align-self: flex-start;
  }
}
@media (max-width: 900px) {
  .c-container {
    flex-direction: column;
  }
  .c-sidebar {
    width: 100%;
    position: static;
    border-right: none;
    border-bottom: 1px solid #ddd;
    max-height: none;
  }
  .c-content {
    padding: 1.5rem;
  }
}
