:root {
  --theme-main: #6b1f2b;
  --theme-dark: #17070a;
  --theme-mid: #2a0d13;
  --theme-light: #b94355;
  --theme-glow: rgba(185, 67, 85, 0.55);

  --text-main: #fff2f4;
  --text-muted: #d8a6ad;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  background:
    radial-gradient(circle at top, var(--theme-main), transparent 35%),
    linear-gradient(135deg, var(--theme-dark), #040102);
}

header {
  padding: 20px;
  border-bottom: 1px solid var(--theme-light);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 24px var(--theme-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
  letter-spacing: 1px;
}

header p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.homeLink {
  color: white;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--theme-light);
  border-radius: 12px;
  background: var(--theme-mid);
}

.homeLink:hover {
  background: var(--theme-main);
  box-shadow: 0 0 12px var(--theme-glow);
}

main {
  padding: 20px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
}

.navPanel,
.contentPanel {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--theme-light);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

.navPanel {
  height: fit-content;
  position: sticky;
  top: 16px;
}

.navBtn {
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid var(--theme-light);
  background: var(--theme-mid);
  color: var(--text-main);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: 0.15s;
}

.navBtn:hover,
.navBtn.active {
  background: var(--theme-main);
  box-shadow: 0 0 12px var(--theme-glow);
}

.contentPanel {
  min-height: 500px;
}

.section h2 {
  margin-top: 0;
  font-size: 28px;
}

.section p,
.section li {
  color: var(--text-muted);
  line-height: 1.5;
}

.cardGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0;
}

.codeBox {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  overflow-x: auto;
  white-space: pre-wrap;
}

.warning {
  border-left: 4px solid #ffcc66;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 204, 102, 0.1);
  color: var(--text-muted);
}

.good {
  border-left: 4px solid #6bffb8;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(107, 255, 184, 0.1);
  color: var(--text-muted);
}

@media (max-width: 850px) {
  main {
    grid-template-columns: 1fr;
  }

  .navPanel {
    position: static;
  }
}
