:root {
  --background-color: #0a0a0a;
  --card-background-color: #111111;
  --button-background-color: #1a1a1a;
  --button-background-hover-color: #2a2a2a;
  --border-color-light: #222;
  --border-color-dark: #333;
  --border-color-darker: #444;
  --text-color-dark: #555;
  --text-color-darker: #666;
  --text-color-darkest: #888;
  --text-color-light: #b0b0b0;
  --text-color-lighter: #e0e0e0;
  --text-color-lightest: #ffffff;
  --primary-color: #4a9eff;
  --primary-color-light: #66b3ff;
  --bilibili-color: #fc8bab;
  --bilibili-color-hover: #f96a90;
  --donate-color: #dc3545;
  --donate-color-hover: #bd2130;
  --level-link-color: #007bff;
  --level-link-color-hover: #0056b3;
  --soundcloud-color: #ff8800;
  --soundcloud-color-hover: #ff3300;
  --modrinth-color: #1bd96a;
  --modrinth-color-hover: #17c85e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Chillax', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--background-color);
  color: var(--text-color-lighter);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Icon styles for local SVG icons */
.icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  fill: currentColor;
  flex-shrink: 0;
  vertical-align: middle;
}

.icon-inline {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  position: relative;
  top: -1px;
}

.icon-large {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  position: relative;
  top: -2px;
}

.icon-small {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  position: relative;
  top: -1px;
}

/* Level meta icons need special alignment */
.level-meta .icon {
  vertical-align: -3px;
}

/* Icon color overrides for specific contexts */
.intro a:not(.link-button):not(.button) .icon,
.additional-buttons a:not(.link-button):not(.button) .icon,
.nav a.active-nav .icon,
.card p a:not(.link-button):not(.button) .icon,
.tutorial-step p a:not(.link-button):not(.button) .icon,
.suggestions a:not(.link-button):not(.button) .icon,
p a[href]:not(.link-button):not(.button) .icon {
  /* Filter to convert white (#FFFFFF) to primary blue (#4a9eff) */
  filter: brightness(0) saturate(100%) invert(55%) sepia(96%) saturate(1731%) hue-rotate(198deg) brightness(100%) contrast(107%);
}

/* Button icons stay white */
.link-button .icon,
.button .icon,
.bilibili-button .icon,
.donate-button .icon,
.button .icon {
  filter: none;
}

/* Color override for intro section button icons */
.intro .link-button .icon {
  filter: brightness(0) saturate(100%) invert(55%) sepia(96%) saturate(1731%) hue-rotate(198deg) brightness(100%) contrast(107%);
}

.icon-red {
  /* #dc3545 */
  filter: brightness(0) saturate(100%) invert(32%) sepia(93%) saturate(1354%) hue-rotate(330deg) brightness(92%) contrast(93%);
}

.icon-yellow {
  /* #ffc107 */
  filter: brightness(0) saturate(100%) invert(81%) sepia(52%) saturate(483%) hue-rotate(329deg) brightness(102%) contrast(101%);
}

.github-button .icon {
  color: white;
}

.modrinth-button .icon {
  color: white;
}

/* Nav specific icon adjustments */
.nav a .icon {
  margin-right: 4px;
}

/* Button and link icon alignments */
.back-button a,
.additional-buttons a,
.filters button,
.error-button {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.level-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 198, 255, 0.05) 0%, transparent 50%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, var(--card-background-color) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, var(--card-background-color) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px;
  background-position: 0 0, 50px 50px;
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  transition: all 0.5s ease;
}

header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color-light);
  margin-bottom: 0;
  padding: 1rem 0;
  text-align: left;
}

header.scrolled .header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-color-lightest);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  transition: all 0.5s ease;
}

header.scrolled h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.nav {
  display: none;
  gap: 2rem;
}

header.scrolled .nav {
  display: flex;
}

.nav a {
  color: var(--text-color-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
}

.nav a .material-icons {
  position: relative;
  top: 0;
  margin-right: 4px;
}

.nav a:hover {
  color: var(--text-color-lightest);
  border-bottom-color: var(--primary-color);
}

.subtitle {
  color: var(--text-color-darkest);
  font-size: 1.1rem;
  font-weight: 400;
}

.intro {
  background: var(--card-background-color);
  border: 1px solid var(--border-color-light);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
  transition: border-color 0.3s ease;
}

.intro:hover {
  border-color: var(--border-color-dark);
}

.intro h2 {
  font-size: 1.5rem;
  color: var(--text-color-lightest);
  margin-bottom: 1rem;
  font-weight: 400;
}

.intro p {
  margin-bottom: 1rem;
  color: var(--text-color-light);
}

.intro a,
.changelog a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.intro a:hover,
.changelog a:hover {
  color: var(--primary-color-light);
}

.sections {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-card {
  background: var(--card-background-color);
  border: 1px solid var(--border-color-light);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.section-card:hover {
  border-color: var(--border-color-dark);
  transform: translateY(-2px);
}

.section-card h3 {
  font-size: 1.3rem;
  color: var(--text-color-lightest);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.section-card p {
  color: var(--text-color-light);
  margin-bottom: 1rem;
}

.section-card strong {
  color: var(--text-color-lighter);
}

.link-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--button-background-color);
  color: var(--text-color-lighter);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--border-color-dark);
  font-family: 'Chillax', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.link-button:hover {
  background: var(--button-background-hover-color);
  border-color: var(--border-color-darker);
  transform: translateY(-1px);
  outline: none;
}

.link-button:disabled,
.link-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--button-background-color);
  border-color: var(--border-color-dark);
}

.link-button:disabled:hover,
.link-button[disabled]:hover {
  transform: none;
  background: var(--button-background-color);
  border-color: var(--border-color-dark);
}

.bilibili-button {
  background-color: var(--bilibili-color);
  text-decoration: none;
}

.bilibili-button:hover {
  background-color: var(--bilibili-color-hover);
}

.donate-button {
  background-color: var(--donate-color);
  text-decoration: none;
}

.donate-button:hover {
  background-color: var(--donate-color-hover);
}

footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color-light);
  color: var(--text-color-darker);
  font-size: 0.9rem;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-color-dark);
  margin-top: 0.5rem;
}

/* Scroll offset for fixed header */
.container.with-fixed-header {
  padding-top: 5rem;
}

/* Subtle animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container > * {
  animation: fadeIn 0.6s ease-out;
}

.intro {
  animation-delay: 0.1s;
}

.sections .section-card:nth-child(1) {
  animation-delay: 0.2s;
}

.sections .section-card:nth-child(2) {
  animation-delay: 0.3s;
}

.sections .section-card:nth-child(3) {
  animation-delay: 0.4s;
}

/* Error page */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  line-height: 1;
  text-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
  }
  to {
    text-shadow: 0 0 30px rgba(74, 158, 255, 0.6);
  }
}

.error-title {
  font-size: 2rem;
  color: var(--text-color-lightest);
  margin: 1rem 0;
  font-weight: 400;
}

.error-message {
  font-size: 1.1rem;
  color: var(--text-color-light);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.error-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--button-background-color);
  color: var(--text-color-lighter);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--border-color-dark);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-family: 'Chillax', sans-serif;
}

.error-button:hover {
  background: var(--button-background-hover-color);
  border-color: var(--border-color-darker);
  transform: translateY(-2px);
}

.error-button.primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-color-lightest);
  text-decoration: none;
}

.error-button.primary:hover {
  background: var(--primary-color-light);
  border-color: var(--primary-color-light);
}

.suggestions {
  background: var(--card-background-color);
  border: 1px solid var(--border-color-light);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 600px;
  margin-top: 2rem;
  text-align: left;
}

.suggestions h3 {
  color: var(--text-color-lightest);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 400;
}

.suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.suggestions li {
  color: var(--text-color-light);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.suggestions li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.suggestions a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.suggestions a:hover {
  color: var(--primary-color-light);
}

/* Floating animation for the 404 */
.error-code {
  animation: float-404 3s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
}

@keyframes float-404 {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Custom Levels Page Styles */
.container {
  width: 75%;
}

.back-button {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.back-button a {
  padding: 0.5rem 1rem;
  background-color: var(--level-link-color);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-family: 'Chillax', sans-serif;
  font-weight: bold;
  transition: background-color 0.3s;
}

.back-button a:hover {
  background-color: var(--level-link-color-hover);
}

.additional-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  gap: 16px;
}

.additional-buttons a {
  padding: 0.5rem 1rem;
  background-color: var(--button-background-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 0.5rem;
  font-family: 'Chillax', sans-serif;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
  border: 1px solid var(--border-color-dark);
}

.additional-buttons a:hover {
  background-color: var(--button-background-hover-color);
  color: var(--primary-color-light);
}

.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.search-bar input {
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color-dark);
  width: 250px;
  font-family: 'Chillax', sans-serif;
  background: var(--button-background-color);
  color: var(--text-color-lighter);
}

.list-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.level-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.level-card-link:hover .level-card {
  background: rgba(230, 230, 255, 0.1);
}

.level-card {
  border: 1px solid var(--border-color-dark);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s, color 0.3s;
}

.level-card:hover {
  background: rgba(230, 230, 255, 0.1);
  cursor: pointer;
}

.level-info {
  font-weight: bold;
}

.level-icon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 12px;
}

.icon-container {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.level-icon-secondary {
  position: absolute;
  width: 24px;
  height: 24px;
  top: -5px;
  right: 0;
}

.level-meta {
  font-size: 0.9rem;
  text-align: right;
  color: var(--text-color-light);
}

.level-expanded {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 0.75rem 0.75rem;
  padding: 0;
  margin-top: 0;
  border-top: 0 solid var(--border-color-dark);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, border-top 0.3s ease;
}

.level-expanded.open {
  padding: 1rem;
  max-height: 1000px;
  border-top: 1px solid var(--border-color-dark);
}

.level-expanded .video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 1rem;
}

.level-expanded .missing-video {
  display: block;
  margin-bottom: 1rem;
  min-height: 200px;
}

.level-expanded .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.level-expanded .level-description {
  margin-top: 0;
}

.level-expanded .level-description p {
  margin: 0.5rem 0;
  line-height: 1.6;
  color: var(--text-color-light);
}

.level-actions {
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  display: block;
  gap: 12px;
}

.sort-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sort-bar span {
  font-weight: bold;
  font-family: 'Chillax', sans-serif;
}

.sort-bar select {
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color-dark);
  font-family: 'Chillax', sans-serif;
  background: var(--button-background-color);
  color: var(--text-color-lighter);
}

.sort-bar label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Chillax', sans-serif;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.6rem;
  border-radius: 0.3rem;
}

/* Icon alignment for buttons and links in other pages */
.back-button a,
.additional-buttons a,
.filters button,
.error-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.level-info {
  display: flex;
  align-items: center;
}

.page-subheader {
  text-align: center;
  margin: 0.5rem 0 1.5rem;
}

.page-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-color-light);
}

/* Additional styles specific to projects hub */
.filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filters button {
  padding: 0.6rem 1.2rem;
  background: var(--button-background-color);
  color: var(--text-color-lighter);
  border: 1px solid var(--border-color-dark);
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Chillax', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.filters button:hover {
  background: var(--button-background-hover-color);
  border-color: var(--border-color-darker);
  transform: translateY(-1px);
}

.filters button.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-color-lightest);
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--card-background-color);
  border: 1px solid var(--border-color-light);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.card:hover {
  border-color: var(--border-color-dark);
  transform: translateY(-2px);
}

.card h2 {
  font-size: 1.3rem;
  color: var(--text-color-lightest);
  margin-bottom: 1rem;
  font-weight: 400;
}

.card p {
  color: var(--text-color-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card p a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.card p a:hover {
  color: var(--primary-color-light);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: rgba(74, 158, 255, 0.2);
  color: var(--primary-color);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.date {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color-darkest);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.github-button {
  background-color: var(--border-color-dark) !important;
  color: var(--text-color-lightest) !important;
}

.github-button:hover {
  background-color: var(--border-color-darker) !important;
}

.modrinth-button {
  background-color: var(--modrinth-color) !important;
  color: var(--text-color-lightest) !important;
}

.modrinth-button:hover {
  background-color: var(--modrinth-color-hover) !important;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-section {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.search-section input {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color-dark);
  background: var(--button-background-color);
  color: var(--text-color-lighter);
  font-family: 'Chillax', sans-serif;
  min-width: 250px;
  transition: border-color 0.3s ease;
}

.search-section input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-section select {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color-dark);
  background: var(--button-background-color);
  color: var(--text-color-lighter);
  font-family: 'Chillax', sans-serif;
  cursor: pointer;
}

.search-section label {
  color: var(--text-color-light);
  font-size: 0.9rem;
}

/* Additional styles for navigation and scrolling */
.container.with-fixed-header {
  padding-top: 6rem;
}

.nav a[data-project] {
  cursor: pointer;
}

.nav a.active-nav {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.nav.nav-hidden {
  display: none;
}
/* Show navigation in header when scrolled */
header.scrolled .nav {
  display: flex;
  margin-top: 1rem;
}

.back-button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  width: 100%;
}

/* Animation delays for cards */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* Additional styles for kv install tutorial page */
    .tutorial-step {
      background: var(--card-background-color);
      border: 1px solid var(--border-color-light);
      border-radius: 8px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      transition: all 0.3s ease;
    }

    .tutorial-step:hover {
      border-color: var(--border-color-dark);
      transform: translateY(-2px);
    }

    .tutorial-step h2 {
      font-size: 1.3rem;
      color: var(--text-color-lightest);
      margin-bottom: 1rem;
      font-weight: 400;
      display: flex;
      align-items: center;
    }

    .tutorial-step p {
      color: var(--text-color-light);
      line-height: 1.6;
      margin-bottom: 1rem;
    }

    .tutorial-step ul {
      color: var(--text-color-light);
      line-height: 1.6;
      margin-left: 1.5rem;
      margin-bottom: 1rem;
    }

    .tutorial-step li {
      margin-bottom: 0.5rem;
    }

    .tutorial-step code {
      background: rgba(74, 158, 255, 0.2);
      color: var(--primary-color);
      padding: 2px 6px;
      border-radius: 4px;
      font-family: 'Monaco', 'Menlo', monospace;
      font-size: 0.9em;
    }

    .tutorial-step strong {
      color: var(--text-color-lightest);
      font-weight: 600;
    }

    .tutorial-step a {
      color: var(--primary-color);
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .tutorial-step a:hover {
      color: var(--primary-color-light);
    }

    .note {
      background: rgba(255, 193, 7, 0.1);
      border: 1px solid rgba(255, 193, 7, 0.3);
      border-radius: 8px;
      padding: 1rem;
      color: #ffc107;
      margin-top: 2rem;
      font-size: 0.95rem;
    }

    .note strong {
      color: #ffd54f;
    }

    .step-number {
      background: var(--primary-color);
      color: var(--text-color-lightest);
      border-radius: 50%;
      width: 24px;
      height: 24px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-right: 0.5rem;
      font-size: 0.9rem;
      font-weight: 600;
    }

/* Changelog Styles */
.changelog {
  background: var(--card-background-color);
  border: 1px solid var(--border-color-light);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.changelog-entry {
  margin-bottom: 1.5rem;
}

.changelog-entry:last-child {
  margin-bottom: 0;
}

.changelog-date {
  color: var(--text-color-darkest);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.changelog-content {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color-light);
}

.changelog-content:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.changelog-content h4 {
  color: var(--text-color-lightest);
  margin-bottom: 0.5rem;
  font-weight: 400;
  font-size: 1.2rem;
}

.changelog-content h5 {
  color: var(--text-color-light);
  margin-bottom: 0.5rem;
  font-weight: 400;
  font-size: 1rem;
}

.changelog-content ul {
  padding-left: 1.5rem;
  color: var(--text-color-light);
  margin-bottom: 1rem;
}

.changelog-content li {
  margin-bottom: 0.3rem;
}

.changelog-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color-light);
}

.changelog-footer p {
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  .container.with-fixed-header {
    padding-top: 4rem;
  }

  h1 {
    font-size: 2rem;
  }

  header.scrolled h1 {
    font-size: 1.2rem;
  }

  .intro, .section-card {
    padding-left: 2rem;
    padding-right: 2rem;
    padding: 1.5rem;
  }

  .nav {
    gap: 1rem;
  }

  .nav a {
    font-size: 0.8rem;
  }

  .error-code {
    font-size: 6rem;
  }

  .error-title {
    font-size: 1.5rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-button {
    width: 200px;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .container {
    width: 95%;
  }
  
  header {
    padding: 1rem 0.5rem;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  .back-button,
  .additional-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .additional-buttons {
    gap: 10px;
  }
  
  .search-bar input {
    width: 90%;
  }
  
  .sort-bar {
    flex-direction: column;
    gap: 10px;
  }
  
  .level-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.5rem;
  }
  
  .level-meta {
    text-align: left;
  }

  .nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav a {
    font-size: 0.8rem;
    padding: 0.3rem 0;
  }

  .container.with-fixed-header {
    padding-top: 7rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-section {
    flex-direction: column;
    align-items: stretch;
  }

  .search-section input {
    min-width: auto;
  }

  .filters {
    gap: 0.3rem;
  }

  .filters button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* Documentation-specific styles */
.doc-section {
  background: var(--card-background-color);
  border: 1px solid var(--border-color-light);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.doc-section:hover {
  border-color: var(--border-color-dark);
}

.doc-section h2 {
  font-size: 1.8rem;
  color: var(--text-color-lightest);
  margin-bottom: 1rem;
  font-weight: 400;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.doc-section h3 {
  font-size: 1.4rem;
  color: var(--text-color-lighter);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 400;
}

.doc-section h4 {
  font-size: 1.2rem;
  color: var(--text-color-light);
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  font-weight: 400;
}

.doc-section p {
  color: var(--text-color-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.doc-section ul, .doc-section ol {
  color: var(--text-color-light);
  line-height: 1.8;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.doc-section li {
  margin-bottom: 0.5rem;
}

.doc-section code {
  background: rgba(74, 158, 255, 0.15);
  color: var(--primary-color-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.9em;
}

.doc-section pre {
  background: var(--background-color);
  border: 1px solid var(--border-color-dark);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.doc-section pre code {
  background: none;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
  .container {
    padding: 1rem 0.5rem;
    max-width: 100%;
  }
  
  header .header-content {
    padding: 1rem 0.5rem;
  }
  
  .doc-section {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }

  .doc-section h2 {
    font-size: 1.5rem;
  }

  .doc-section h3 {
    font-size: 1.2rem;
  }

  .doc-section pre {
    font-size: 0.85rem;
    padding: 0.75rem;
  }
  
  .intro div[style*="margin-top"] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  header.scrolled .nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav a, .intro .link-button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .nav a .icon-inline, .intro .link-button .icon-inline {
    margin-right: 8px;
  }
}

.note-text {
  color: var(--text-color-darkest);
  font-style: italic;
  font-size: 0.95rem;
}

.error-box {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}

.error-box strong {
  color: #dc3545;
  display: block;
  margin-bottom: 0.5rem;
}

.error-box pre {
  background: rgba(0, 0, 0, 0.3);
  margin: 0.5rem 0 0 0;
}

.output-box {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}

.output-box strong {
  color: #28a745;
  display: block;
  margin-bottom: 0.5rem;
}

.output-box pre {
  background: rgba(0, 0, 0, 0.3);
  margin: 0.5rem 0 0 0;
}

.doc-footer {
  background: var(--card-background-color);
  border: 1px solid var(--border-color-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.doc-footer p {
  color: var(--text-color-light);
  margin-bottom: 0.5rem;
}

.doc-footer p:last-child {
  margin-bottom: 0;
}

.doc-footer strong {
  color: var(--text-color-lighter);
}

.doc-footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.doc-footer a:hover {
  color: var(--primary-color-light);
}

footer {
  margin-top: 3rem;
}

footer p {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-color-light);
}

@media (max-width: 768px) {
  .doc-section {
    padding: 1.5rem;
  }

  .doc-section h2 {
    font-size: 1.5rem;
  }

  .doc-section h3 {
    font-size: 1.2rem;
  }

  .doc-section pre {
    font-size: 0.85rem;
  }
}
