﻿/* ...existing code... */
.git-hero {
  background: linear-gradient(135deg, #f34f29 0%, #d73a49 50%, #0366d6 100%);
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.git-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.git-hero .container {
  position: relative;
  z-index: 1;
}

.git-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.highlight-git {
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.git-hero .hero-description {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

.git-hero .hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.git-hero .stat {
  text-align: center;
}

.git-hero .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
}

.git-hero .stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ...existing code... */
.content-section {
  padding: 5rem 1.5rem;
}

.alt-bg {
  background: #f7fafc;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a202c;
}

.title-icon {
  font-size: 2rem;
}

.section-description {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 800px;
  margin-bottom: 2rem;
}

/* ...existing code... */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.intro-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.intro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.intro-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.intro-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1a202c;
}

.intro-card p {
  color: #4a5568;
  line-height: 1.6;
}

/* ...existing code... */
.install-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.install-tab {
  padding: 0.75rem 1.5rem;
  border: 2px solid #edf2f7;
  background: #ffffff;
  border-radius: 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.install-tab:hover {
  border-color: #667eea;
}

.install-tab.active {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

.install-content {
  display: none;
}

.install-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  margin-bottom: 0.5rem;
  color: #1a202c;
}

.step-content p {
  color: #4a5568;
  margin-bottom: 0.75rem;
}

/* ...existing code... */
.code-block {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-family: "Fira Code", "Consolas", monospace;
  font-size: 0.9rem;
  position: relative;
  overflow-x: auto;
  margin: 0.5rem 0;
}

.code-block code {
  white-space: pre;
  display: block;
  line-height: 1.6;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ...existing code... */
.config-commands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.command-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.command-card h4 {
  margin-bottom: 1rem;
  color: #1a202c;
}

/* ...existing code... */
.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.command-detail {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  border-left: 4px solid #667eea;
}

.command-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.command-name {
  font-family: "Fira Code", "Consolas", monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f34f29;
}

.command-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: #edf2f7;
  border-radius: 9999px;
  color: #4a5568;
}

.command-desc {
  color: #4a5568;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.command-tip {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #4a5568;
}

.command-tip code {
  background: rgba(0, 0, 0, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: "Fira Code", "Consolas", monospace;
}

/* ...existing code... */
.branch-visual {
  margin: 2rem 0;
  padding: 2rem;
  background: #ffffff;
  border-radius: 16px;
  overflow-x: auto;
}

.branch-diagram {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 500px;
}

.branch-line {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.branch-label {
  width: 100px;
  font-family: "Fira Code", "Consolas", monospace;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: #667eea;
  color: white;
  border-radius: 4px;
  text-align: center;
}

.branch-line.feature .branch-label {
  background: #48bb78;
}

.commits {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  flex: 1;
}

.commits::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #667eea;
  z-index: 0;
}

.branch-line.feature .commits::before {
  background: #48bb78;
}

.commit {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 3px solid #667eea;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.2s;
}

.branch-line.feature .commit {
  border-color: #48bb78;
}

.commit:hover {
  transform: scale(1.3);
}

/* ...existing code... */
.undo-scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.scenario-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.scenario-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.scenario-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1a202c;
}

.scenario-card > p {
  color: #4a5568;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ...existing code... */
.gitignore-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gitignore-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.gitignore-card h4 {
  margin-bottom: 1rem;
  color: #1a202c;
}

.tip-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 16px;
  border-left: 4px solid #667eea;
}

.tip-icon {
  font-size: 1.5rem;
}

.tip-box a {
  color: #667eea;
  text-decoration: underline;
}

/* ...existing code... */
.practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.practice-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.practice-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.practice-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #1a202c;
}

.practice-card ul,
.practice-card ol {
  padding-left: 1.25rem;
  color: #4a5568;
  margin-bottom: 1rem;
}

.practice-card li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.practice-card code {
  background: #edf2f7;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: "Fira Code", "Consolas", monospace;
  font-size: 0.85rem;
}

.code-block.example {
  margin-top: 1rem;
}

/* ...existing code... */
.cheatsheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.cheatsheet-category {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.cheatsheet-category h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #edf2f7;
  color: #1a202c;
}

.cheatsheet-category table {
  width: 100%;
  border-collapse: collapse;
}

.cheatsheet-category td {
  padding: 0.5rem 0;
  border-bottom: 1px solid #edf2f7;
  vertical-align: top;
}

.cheatsheet-category td:first-child {
  width: 55%;
  font-family: "Fira Code", "Consolas", monospace;
  font-size: 0.85rem;
  color: #f34f29;
}

.cheatsheet-category td:last-child {
  color: #4a5568;
  font-size: 0.9rem;
}

.cheatsheet-category tr:last-child td {
  border-bottom: none;
}

/* ...existing code... */
.footer {
  background: #f7fafc;
  padding: 3rem 1.5rem 1.5rem;
  border-top: 1px solid #edf2f7;
}

.footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-content > p {
  color: #718096;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #4a5568;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #667eea;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #edf2f7;
  color: #718096;
  font-size: 0.9rem;
}

/* ...existing code... */
@media (max-width: 768px) {
  .git-hero {
    padding: 6rem 1rem 3rem;
  }

  .git-hero h1 {
    font-size: 2.5rem;
  }

  .git-hero .hero-stats {
    gap: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .commands-grid,
  .undo-scenarios,
  .cheatsheet-grid {
    grid-template-columns: 1fr;
  }

  .branch-visual {
    padding: 1rem;
  }

  .code-block {
    font-size: 0.8rem;
    padding: 0.75rem;
  }
}

/* ...existing code... */
[data-theme="dark"] .code-block {
  background: #0d1117;
}

[data-theme="dark"] .intro-card,
[data-theme="dark"] .command-card,
[data-theme="dark"] .command-detail,
[data-theme="dark"] .scenario-card,
[data-theme="dark"] .gitignore-card,
[data-theme="dark"] .practice-card,
[data-theme="dark"] .cheatsheet-category,
[data-theme="dark"] .branch-visual {
  background: #f7fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .command-tip {
  background: rgba(102, 126, 234, 0.15);
}

[data-theme="dark"] .tip-box {
  background: rgba(102, 126, 234, 0.15);
}

[data-theme="dark"] .practice-card code,
[data-theme="dark"] .command-tip code {
  background: rgba(255, 255, 255, 0.1);
}
