:root {
  --bg: #f8fafc;
  --text: #1e293b;
  --primary: #3b82f6;
  --secondary: #8b5cf6;
  --card: #ffffff;
  --border: #e2e8f0;
  --hover: #eff6ff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --text: #e2e8f0;
    --card: #1e293b;
    --border: #334155;
    --hover: #1e40af;
  }
}
.dark-mode {
  --bg: #0f172a;
  --text: #e2e8f0;
  --card: #1e293b;
  --border: #334155;
  --hover: #1e40af;
}
* {
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100vh;
}
.header {
  padding: 30px;
  text-align: center;
}
h1 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
}
.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-top: 0.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}
.search-bar {
  flex: 1;
  min-width: 300px;
  position: relative;
}
#search {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 1.1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  transition: all 0.3s;
}
#search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.3rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.filter-btn .count {
  background: rgba(255,255,255,0.2);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
}
.stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  flex: 1;
  min-width: 150px;
  text-align: center;
  transition: transform 0.3s;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  font-size: 0.9rem;
  color: #64748b;
}
.command-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.command-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}
.command-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px -10px rgba(0,0,0,0.15);
  border-color: var(--primary);
}
.command-card.most-used {
  border-left: 6px solid var(--primary);
}
.command-card.advanced {
  border-left: 6px solid var(--danger);
}
.command-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.command-name {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  word-break: break-word;
}
.command-desc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}
.command-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.category-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
  white-space: nowrap;
}
.difficulty {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--hover);
  color: var(--text);
}
.difficulty.beginner { background: #10b981; color: white; }
.difficulty.intermediate { background: #f59e0b; color: white; }
.difficulty.advanced { background: #ef4444; color: white; }
.command-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.favorite-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #cbd5e1;
  transition: color 0.2s;
  padding: 0.2rem;
}
.favorite-btn.active {
  color: #fbbf24;
  animation: pulse 0.5s;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.details {
  padding: 0 1.5rem 1.5rem;
  display: none;
  border-top: 1px solid var(--border);
}
.details.open {
  display: block;
}
.details h4 {
  margin-top: 0;
  color: var(--text);
}
.example {
  background: var(--hover);
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  position: relative;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  overflow-x: auto;
}
.example-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.5rem;
  font-style: italic;
  line-height: 1.4;
}
.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}
.copy-btn:hover {
  background: #2563eb;
}
.param-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.param-list li {
  margin-bottom: 0.5rem;
}
.param-name {
  font-family: monospace;
  color: var(--primary);
}
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.toast.show {
  opacity: 1;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}
.feature-card {
  background: var(--card);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  margin-top: 0;
  color: var(--primary);
}
footer {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--primary);
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
/* Visual Graph Section */
.visual-graph-section {
  background: var(--card);
  border-radius: 20px;
  padding: 2rem;
  margin: 3rem 0;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.visual-graph-section h2 {
  margin-top: 0;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.graph-container {
  margin-top: 1.5rem;
}
.graph-svg-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg);
  margin-bottom: 1.5rem;
}
#git-graph {
  display: block;
  min-width: 800px;
  height: 300px;
}
.graph-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.graph-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}
.graph-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}
.graph-btn[data-cmd="reset"] {
  background: var(--danger);
}
.graph-btn[data-cmd="reset"]:hover {
  background: #dc2626;
}
.graph-description {
  text-align: center;
  color: #64748b;
  font-style: italic;
  padding: 1rem;
  background: var(--hover);
  border-radius: 10px;
}

/* IDE Plugins Section */
.ide-plugins-section {
  background: var(--card);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 3rem 0;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.ide-plugins-section h2 {
  margin-top: 0;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.ide-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.ide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: var(--primary);
}
.ide-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.ide-card h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.3rem;
}
.ide-card ul {
  padding-left: 1.2rem;
  margin: 0.8rem 0;
}
.ide-card li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: var(--text);
}
.ide-card strong {
  color: var(--primary);
}
.ide-note {
  text-align: center;
  font-size: 0.95rem;
  color: #64748b;
  padding: 1rem;
  background: var(--hover);
  border-radius: 10px;
  margin-top: 2rem;
}

/* Command Builder Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal.show {
  display: flex;
}
.modal-content {
  background: var(--card);
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  animation: modalFade 0.3s ease-out;
}
@keyframes modalFade {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  margin: 0;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.close-modal:hover {
  background: var(--hover);
  color: var(--danger);
}
.modal-body {
  padding: 2rem;
}
.builder-form .form-group {
  margin-bottom: 1.5rem;
}
.builder-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.builder-form select,
.builder-form input[type="text"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.builder-form select:focus,
.builder-form input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.option-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.option-checkbox:hover {
  border-color: var(--primary);
  background: var(--hover);
}
.option-checkbox input {
  margin: 0;
}
.command-preview {
  background: var(--hover);
  padding: 1.2rem;
  border-radius: 12px;
  margin-top: 0.5rem;
  position: relative;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  overflow-x: auto;
}
.command-preview code {
  color: var(--primary);
  font-weight: bold;
  word-break: break-all;
}
.command-preview .copy-btn {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
}
.preview-desc {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #64748b;
  font-style: italic;
}
.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}
.modal-btn {
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}
.modal-btn.primary {
  background: var(--primary);
  color: white;
}
.modal-btn.primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
}
.modal-btn.secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}
.modal-btn.secondary:hover {
  background: var(--hover);
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  .command-list { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-bar { min-width: auto; }
  .stats { flex-direction: column; }
  .graph-controls { flex-direction: column; align-items: stretch; }
  .graph-btn { width: 100%; }
}


        .logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }

        .logo {
            width: 100px;
            height: 100px;
            background: white;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 29px;
            color: #667eea;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .brand-name {
            font-size: 32px;
            font-weight: 700;
            color: white;
            letter-spacing: -0.5px;
        }

        .brand-tagline {
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 10px;
        }

        .footer {
            padding: 1px 1px;
            color: #090909;
            text-align: center;
            position: relative;
            overflow: hidden;
            margin-top: 60px;
            color: #ff6b6b;
        }

        .footer::before {
            content: '';
            color: #090909;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 0px;
        }

        .footer-content {
            max-width: 1000px;
            color: #090909;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 25px;
            position: relative;
            z-index: 1;
        }

        .footer-copyright {
            font-size: 20px;
            color: #c1bdd7;
            font-weight: 200;
            -webkit-background-clip: text;
            background-clip: text;
            margin: 0;
            text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
            letter-spacing: 0.5px;
        }

        .footer-version {
            font-size: 16px;
            color: #f4f4f4;
            margin: 0;
            font-weight: 500;
            padding: 8px 20px;
            border-radius: 20px;
            border: 1px solid rgba(102, 126, 234, 0.2);
            backdrop-filter: blur(3px);
        }

        .footer-heart {
            color: #ff6b6b;
            animation: heartbeat 1.5s infinite;
            display: inline-block;
        }

        @keyframes heartbeat {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }

        .btn-discover {
            margin-top: 6px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 16px 32px;
            font-size: 16px;
            font-weight: 700;
            text-decoration: none;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            transition: all 0.3s ease;
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
            border: 2px solid rgba(198, 189, 189, 0.1);
            position: relative;
            overflow: hidden;
        }

        .btn-discover::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .btn-discover:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
        }
