@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');
:root {
  --bg: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
  --text: #f0f0f0;
  --card-bg: rgba(255, 255, 255, 0.06);
  --btn-bg: #6c5ce7;
  --btn-hover: #4c3cd4;
  --text-muted: #bbbbbb;
  --subtitle-color: #a8a8a8;
  --header-bg: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
  --header-border: #57e2e5;
  --hover-brightness: 1.12;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  --clip-glow: rgba(87, 226, 229, 0.35);
  --code-bg: #111;
  --code-text: #d4d4d4;
  --code-border: rgba(255, 255, 255, 0.1);
  caret-color: transparent;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Merriweather', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  min-width: 900px;
  margin: 0 0 3rem;
  margin-inline-start: 4rem;
  padding: 3rem 3rem;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 6px solid var(--header-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  margin-bottom: 1rem;
}

.logo-link:hover {
  transform: scale(1.03);
}

header svg {
  max-width: 100%;
  height: auto;
}

.Top-Section h1 {
  font-size: 3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px var(--clip-glow);
}

.Top-Section p {
  font-size: 1.2rem;
  color: var(--subtitle-color);
  max-width: 700px;
  margin: 0 auto;
}

.cli-nav {
  position: fixed;
  top: 50%;
  left: 0.5rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  background: rgba(30, 36, 42, 0.6);
  backdrop-filter: blur(10px);
  padding: 1rem 1.2rem;
  border-radius: 14px;
  box-shadow: 0 0 16px rgba(87, 226, 229, 0.3);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: transparent;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 5;
}

.cli-nav .nav-content::-webkit-scrollbar {
  width: 8px;
}

.cli-nav .nav-content::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.cli-nav .nav-content::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.cli-nav .nav-content::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.cli-nav svg {
  width: 100px;
  height: 100px;
  stroke: #fff;
}

.cli-nav .nav-content a {
  color: #e0f7ff;
  text-decoration: none;
  padding: 0.2rem 0.1rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.cli-nav .nav-content a:hover {
  color: #00ffb3;
  border-left: 3px solid #00ffb3;
  transform: translateX(4px);
}

.cli-nav.open {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow: hidden;
  z-index: 9;
  display: flex;
  flex-direction: column;
}

.cli-nav.open {
  transform: translateX(0);
}

.cli-nav.open .nav-content {
  overflow-y: auto;
  flex: 1;
  padding: 1rem;
}

.cli-nav.open .nav-toggle {
  display: block;
}

.nav-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  font-size: 1.8rem;
  background: var(--clip-glow);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  display: none;
}

.developer-link {
  color: #40c4ff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
  text-shadow: 0 0 3px rgba(64, 196, 255, 0.5);
}

.developer-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: #40c4ff;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.developer-link:hover,
.developer-link:focus {
  color: #00b0ff;
  text-shadow: 0 0 8px rgba(0, 176, 255, 0.7);
  transform: scale(1.05);
}

.developer-link:hover::after,
.developer-link:focus::after {
  width: 100%;
}

.developer-link:active {
  color: #0081cb;
  text-shadow: 0 0 6px rgba(0, 129, 203, 0.6);
  transform: scale(0.98);
}

main {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.card, .guide-card {
  display: flex;
  align-items: flex-start;
  gap: 1.8rem;
  background-color: rgba(20, 24, 28, 0.8);
  border-left: 6px solid var(--btn-bg);
  padding: 1.8rem 2rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, background-color 0.3s ease;
  position: relative;
  margin: 0 2rem 0;
  min-width: 900px;
}

.card:hover, .guide-card:hover {
  background-color: rgba(30, 36, 42, 0.95);
  transform: translateY(-4px);
}

.card h2 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 0.8rem;
  font-weight: 600;
  max-width: 20%;
  min-width: 20%;
}

.card .long-command {
  min-width: 0;
}

.card {
  flex: 1;
  display: flex;
  flex-direction: row;
}

.guide-card {
  flex: 1;
  display: block;
}

.command-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.command-wrapper {
  position: relative;
  width: 100%;
}

.command {
  position: relative;
  background-color: var(--code-bg);
  color: var(--code-text);
  font-family: 'Fira Code', monospace;
  padding: 1rem 3.5rem 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-x: auto;
  border: 1px solid var(--code-border);
  width: 100%;
}

pre.command {
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn,
.download-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background-color: var(--btn-bg);
  color: #fff;
  border: none;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.download-btn {
  top: 3rem;
}

.copy-btn:hover,
.download-btn:hover {
  background-color: var(--btn-hover);
  transform: scale(1.05);
}

.copy-btn svg,
.download-btn svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

.command-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  padding-left: 0.25rem;
  border-left: 4px solid var(--btn-bg);
  border-radius: 8px;
  line-height: 1.6;
}

.guide-description {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  font-size: 1.1rem;
  color: #e0e0e0;
  line-height: 1.75;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.015));
  padding: 1.2rem 1.8rem;
  border-left: 4px solid var(--btn-bg);
  border-radius: 14px;
  margin: 0.1rem 0;
  font-weight: 400;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.guide-description:hover {
  background: rgba(255, 255, 255, 0.045);
}

.step-list {
  padding-left: 2rem;
  margin-top: 2rem;
  color: #cccccc;
  font-size: 1.05rem;
  line-height: 1.75;
  list-style-type: decimal;
}

.step-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 0.5rem;
}

.note {
  font-size: 1rem;
  color: #bbbbbb;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--btn-bg);
  border-radius: 10px;
  margin-top: 1.5rem;
  line-height: 1.6;
  font-style: italic;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.copied-message {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 1em;
  color: inherit;
  user-select: none;
}

.copied-message-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.copied-message-text {
  position: relative;
  display: block;
  font-size: 0.8rem;
  text-align: right;
  right: 0;
  top: -2px;
  color: gray;
}
