* { box-sizing: border-box; }
body { display: flex; flex-direction: column; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; color: #222; margin: 0; background: #fff; }
.c-container { display: flex; flex: 1; max-width: 100%; }
.c-sidebar { width: 240px; background: #f7f9fb; padding: 1.5rem; border-right: 1px solid #e0e6ed; 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: #5c6b7a; margin: 0 0 1rem 0; letter-spacing: 0.05em; }
.c-sidebar ul { list-style: none; padding: 0; margin: 0; }
.c-sidebar li { margin: 0.35rem 0; }
.c-sidebar a { color: #d63031; text-decoration: none; font-size: 0.95rem; padding: 0.35rem 0.5rem; display: block; border-radius: 4px; transition: background 0.15s; }
.c-sidebar a:hover { background: #ffebee; }
.c-content { flex: 1; padding: 2rem; max-width: 980px; }
.breadcrumb { font-size: 0.9rem; color: #5c6b7a; margin-bottom: 1rem; }
.breadcrumb a { color: #d63031; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
h1 { font-size: 2.5rem; margin: 0 0 0.5rem 0; color: #1f2a44; }
.intro-text { font-size: 1.1rem; color: #4a5c70; margin-bottom: 2rem; }
.progress-bar { background: #eef2f7; border-radius: 8px; height: 8px; margin: 2rem 0 0.5rem; overflow: hidden; }
.progress-fill { background: linear-gradient(90deg, #d63031, #e84a4a); height: 100%; width: 0%; transition: width 0.3s ease; }
.progress-text { font-size: 0.9rem; color: #5c6b7a; margin-bottom: 2rem; }
h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; border-bottom: 2px solid #d63031; padding-bottom: 0.5rem; color: #1f2a44; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.8rem; color: #1f2a44; }
.why-learn-list { list-style: none; padding: 0; margin: 1rem 0; }
.why-learn-list li { padding: 0.85rem 1rem; margin: 0.5rem 0; background: #fff5f5; border-left: 4px solid #d63031; }
.comparison-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.comparison-table th { background: #f2f6fb; padding: 0.8rem; text-align: left; font-weight: 700; border: 1px solid #e0e6ed; }
.comparison-table td { padding: 0.8rem; border: 1px solid #e0e6ed; }
.comparison-table tr:nth-child(even) { background: #fafbfc; }
.learning-path { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; align-items: center; }
.path-step { background: #d63031; color: #fff; padding: 1rem 1.5rem; border-radius: 8px; flex: 0 1 auto; text-align: center; font-weight: 700; font-size: 0.95rem; }
.path-arrow { font-size: 1.5rem; color: #d63031; }
@media (max-width: 768px) { .learning-path { flex-direction: column; } .path-arrow { transform: rotate(90deg); } }
details.lesson { margin: 1.5rem 0; border: 1px solid #e0e6ed; border-radius: 8px; background: #fafbfc; overflow: hidden; }
details.lesson[open] { border-color: #d63031; box-shadow: 0 4px 12px rgba(214, 48, 49, 0.12); }
details.lesson summary { padding: 1.1rem 1.3rem; cursor: pointer; font-weight: 700; font-size: 1.05rem; user-select: none; display: flex; justify-content: space-between; align-items: center; list-style: none; }
details.lesson summary::-webkit-details-marker { display: none; }
details.lesson summary:hover { background: #f2f6fb; }
details.lesson[open] summary { border-bottom: 1px solid #e0e6ed; margin-bottom: 1rem; padding-bottom: 1rem; }
.lesson-content { margin: 0 1.3rem 1.3rem; }
.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: #d63031; color: #fff; padding: 0.6rem 1.2rem; border-radius: 6px; text-decoration: none; font-weight: 700; margin: 1rem 0; transition: background 0.2s; border: none; cursor: pointer; font-size: 0.95rem; }
.try-it-btn:hover { background: #c2282e; }
.projects-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.project-item { background: #fff5f5; padding: 1.5rem; margin: 1rem 0; border-radius: 8px; border-left: 4px solid #d63031; }
.project-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.project-meta { font-size: 0.9rem; color: #5c6b7a; margin-bottom: 0.8rem; }
.project-meta span { margin-right: 1.5rem; }
.project-concepts { font-size: 0.95rem; margin-top: 0.8rem; color: #4a5c70; }
.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.resource-card { background: #fff5f5; padding: 1.5rem; border-radius: 8px; border: 1px solid #e0e6ed; }
.resource-card h4 { margin: 0 0 1rem 0; color: #1f2a44; }
.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: #d63031; text-decoration: none; }
.resource-card a:hover { text-decoration: underline; }
.completion-checkbox { display: inline-flex; align-items: center; gap: 0.6rem; margin-left: 0.8rem; padding: 0.3rem 0.6rem; background: #ffe5e5; 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.85rem 1rem; border: 1px solid #e0e6ed; border-radius: 8px; font-size: 1rem; font-family: inherit; }
.repos-search input:focus { outline: none; border-color: #d63031; box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.12); }
.repos-filters { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.filter-btn { padding: 0.65rem 1.2rem; border: 2px solid #e0e6ed; background: white; border-radius: 22px; cursor: pointer; font-weight: 700; font-size: 0.95rem; transition: all 0.2s; color: #1f2a44; }
.filter-btn:hover { border-color: #d63031; color: #d63031; }
.filter-btn.active { background: #d63031; color: #fff; border-color: #d63031; }
.repos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(450px, 100%), 1fr)); gap: 1.5rem; margin: 2rem 0; }
.repo-card { background: #fdfefe; border: 1px solid #e0e6ed; border-radius: 10px; padding: 1.5rem; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.repo-card:hover { border-color: #d63031; box-shadow: 0 10px 28px rgba(214, 48, 49, 0.18); transform: translateY(-3px); }
.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: #d63031; text-decoration: none; font-weight: 700; }
.repo-name a:hover { text-decoration: underline; }
.repo-stars { white-space: nowrap; font-weight: 700; color: #5c6b7a; 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.35rem 0.8rem; border-radius: 12px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.category-badge.learning { background: #e0ecff; color: #1f3b8f; }
.category-badge.patterns { background: #ede9fe; color: #5b21b6; }
.category-badge.project { background: #e6f7ed; color: #166534; }
.category-badge.tool { background: #fff4e5; color: #92400e; }
.activity-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 0.3rem; }
.activity-dot.active { background: #16a34a; }
.activity-dot.recent { background: #eab308; }
.activity-dot.stale { background: #9ca3af; }
.last-commit { font-size: 0.85rem; color: #5c6b7a; }
.license-badge { display: inline-block; padding: 0.25rem 0.7rem; background: #f1f5f9; border-radius: 6px; font-size: 0.8rem; color: #4b5563; font-weight: 700; }
.repo-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.topic-tag { display: inline-block; padding: 0.35rem 0.65rem; background: #eef2f7; color: #4b5563; border-radius: 6px; font-size: 0.82rem; }
.repo-rationale { margin: 1rem 0; font-size: 0.95rem; color: #4a5c70; line-height: 1.5; }
.repo-link { display: inline-block; margin-top: 0.5rem; padding: 0.65rem 1.2rem; background: #d63031; color: #fff; text-decoration: none; border-radius: 7px; font-weight: 700; font-size: 0.95rem; transition: background 0.2s; }
.repo-link:hover { background: #c2282e; }
.repos-loading { text-align: center; padding: 2rem; color: #5c6b7a; }
.repos-error { padding: 1.5rem; background: #fee2e2; border: 1px solid #fecaca; border-radius: 8px; color: #991b1b; margin-bottom: 2rem; }
.repos-empty { text-align: center; padding: 2rem; color: #5c6b7a; font-style: italic; }
@media (max-width: 900px) { .c-container { flex-direction: column; } .c-sidebar { width: 100%; position: static; border-right: none; border-bottom: 1px solid #e0e6ed; max-height: none; } .c-content { padding: 1.5rem; } .repo-header { flex-direction: column; } .repo-stars { align-self: flex-start; } }
