body { display: flex; flex-direction: column; }
.c-container { display: flex; flex: 1; max-width: 100%; }
.c-sidebar {
  width: 240px;
  background: #f5f5f5;
  padding: 1.5rem;
  border-right: 1px solid #ddd;
  position: sticky;
  top: 0;
  height: fit-content;
  max-height: 100vh;
  overflow-y: auto;
}
.c-sidebar h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 1rem 0;
  letter-spacing: 0.05em;
}
.c-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.c-sidebar li {
  margin: 0.3rem 0;
}
.c-sidebar a {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.3rem 0.5rem;
  display: block;
  border-radius: 4px;
  transition: background 0.15s;
}
.c-sidebar a:hover {
  background: #e0e0e0;
}
.c-content {
  flex: 1;
  padding: 2rem;
  max-width: 900px;
}
.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-top: 0;
  margin-bottom: 0.5rem;
}
.intro-text {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}
.progress-bar {
  background: #f0f0f0;
  border-radius: 8px;
  height: 8px;
  margin: 2rem 0;
  overflow: hidden;
}
.progress-fill {
  background: linear-gradient(90deg, #c17cff, #8b5cf6);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}
.progress-text {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.3rem;
}
h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #c17cff;
  padding-bottom: 0.5rem;
}
h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}
.why-learn-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.why-learn-list li {
  padding: 0.8rem 1rem;
  margin: 0.5rem 0;
  background: #f9f9f9;
  border-left: 4px solid #c17cff;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.comparison-table th {
  background: #f0f0f0;
  padding: 0.8rem;
  text-align: left;
  font-weight: 700;
  border: 1px solid #ddd;
}
.comparison-table td {
  padding: 0.8rem;
  border: 1px solid #ddd;
}
.comparison-table tr:nth-child(even) {
  background: #fafafa;
}
.learning-path {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
  align-items: center;
}
.path-step {
  background: #181f2a;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  flex: 0 1 auto;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.path-arrow {
  font-size: 1.5rem;
  color: #c17cff;
}
@media (max-width: 768px) {
  .learning-path {
    flex-direction: column;
  }
  .path-arrow {
    transform: rotate(90deg);
  }
}
details {
  margin: 1.5rem 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0;
  background: #fafafa;
}
details[open] {
  padding: 1rem;
}
summary {
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary:hover {
  background: #f0f0f0;
}
details[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: #c17cff;
  color: #fff;
  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: #a78bfa;
}
.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 #c17cff;
}
.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: #f0e5ff;
  border-radius: 6px;
}
.completion-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.repo-section {
  margin: 3rem 0;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #c17cff;
}
.repo-controls {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.repo-filter {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057;
  transition: all 0.3s ease;
}
.filter-btn.active {
  background: #c17cff;
  color: white;
  border-color: #c17cff;
}
.filter-btn:hover {
  border-color: #c17cff;
}
.repo-search {
  flex: 1;
  min-width: 200px;
}
.repo-search input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.repo-search input:focus {
  outline: none;
  border-color: #c17cff;
  box-shadow: 0 0 0 3px rgba(193, 124, 255, 0.1);
}
.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(450px, 100%), 1fr));
  gap: 1.5rem;
}
.repo-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.repo-card:hover {
  box-shadow: 0 12px 35px rgba(193, 124, 255, 0.2);
  transform: translateY(-4px);
  border-color: #c17cff;
}
.repo-header {
  margin-bottom: 1rem;
}
.repo-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #c17cff;
  text-decoration: none;
  word-break: break-word;
}
.repo-name:hover {
  text-decoration: underline;
}
.repo-category {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.category-learning {
  background: #dbeafe;
  color: #1e40af;
}
.category-patterns {
  background: #f3e8ff;
  color: #6b21a8;
}
.category-project {
  background: #dcfce7;
  color: #15803d;
}
.category-tool {
  background: #fed7aa;
  color: #92400e;
}
.repo-rationale {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 1rem 0;
  flex-grow: 1;
}
.repo-metadata {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
  font-size: 0.85rem;
  color: #6c757d;
}
.repo-stats {
  display: flex;
  gap: 1.5rem;
}
.repo-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.activity-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
}
.activity-active {
  background: #10b981;
}
.activity-recent {
  background: #f59e0b;
}
.activity-stale {
  background: #ef4444;
}
.no-results {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: #6c757d;
}
.no-results-icon {
  font-size: 3em;
  margin-bottom: 1rem;
}
@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;
  }
}
