:root {
  --transition-cubic: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --glass-effect: rgba(255, 255, 255, 0.03);
  --card-radius: 24px;
}

.docs-page {
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.docs-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.docs-main {
  padding-bottom: 100px;
}

/* --- Hero Section --- */
.hero-section {
  text-align: center;
  padding: 80px 20px 40px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.05) 0%,
    transparent 70%
  );
  border-radius: 40px;
}

.title-badge {
  background: var(--accent-gradient);
  color: white;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  display: inline-block;
  box-shadow: 0 5px 15px -3px rgba(99, 102, 241, 0.3);
}

.hero-section h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
  letter-spacing: -2px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Navigation Style (from style.css) --- */
.shared-header {
  margin-bottom: 0px !important;
}

/* --- Section Design --- */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 8px;
}

.section-title svg,
.section-title .material-symbols-rounded {
  color: var(--primary-purple);
  font-size: 28px;
}

/* --- Command List (Accordion) --- */
.command-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 64px;
}

details.command-row {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  transition: var(--transition-cubic);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

details.command-row:hover {
  transform: translateY(-4px);
  border-color: var(--primary-purple);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

details.command-row[open] {
  background: #fff;
  border-color: var(--primary-purple);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

details.command-row summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  list-style: none;
  outline: none;
}

details.command-row summary::-webkit-details-marker {
  display: none;
}

.cmd-info {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.cmd-icon {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-purple);
  transition: var(--transition-cubic);
}

details.command-row:hover .cmd-icon {
  background: var(--primary-purple);
  color: white;
}

.cmd-meta-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmd-syntax {
  font-family: "Fira Code", monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}

.cmd-brief {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cmd-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cmd-type-badge {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.type-std {
  background: #eff6ff;
  color: #1d4ed8;
}
.type-fast {
  background: #fef2f2;
  color: #b91c1c;
}
.type-logic {
  background: #fffbeb;
  color: #b45309;
}

.cmd-arrow {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

details.command-row[open] .cmd-arrow {
  transform: rotate(180deg);
  color: var(--primary-purple);
}

/* --- Detailed View --- */
.cmd-details {
  padding: 0 32px 32px 100px;
  animation: slideContentDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.detail-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 24px;
}

.code-wrapper {
  background: #0f172a;
  border-radius: 16px;
  padding: 20px;
  position: relative;
}

.code-wrapper pre {
  margin: 0;
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.6;
}

/* --- Grid Section --- */
.aliases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.alias-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transition: var(--transition-cubic);
}

.alias-card:hover {
  border-color: var(--primary-blue);
  background: #f8fafc;
}

.alias-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.alias-card code {
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--primary-blue);
  font-weight: 700;
  font-family: "Fira Code", monospace;
}

@media (max-width: 768px) {
  .cmd-details {
    padding: 0 24px 24px 24px;
  }
  .cmd-info {
    gap: 16px;
  }
  .cmd-icon {
    width: 36px;
    height: 36px;
  }
  .cmd-actions {
    display: none;
  }
  .hero-section {
    padding-top: 40px;
  }
}
