/* 
MIT License
Copyright (c) 2025 And-rix
GitHub: https://github.com/And-rix
License: /LICENSE
*/

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(-45deg, #0d1117, #161b22, #0d1117, #1f2937);
  background-size: 400% 400%;
  animation: gradientBG 90s ease infinite;
  color: #c9d1d9;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-align: center;
}

header {
  padding: 1rem 1rem 0;
}

nav {
  border-bottom: 1px solid #2e2e2e;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.5rem 0 0.5rem;
  margin: 0;
  flex-wrap: wrap;
}

.nav-menu li a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: #58a6ff;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-menu li a:hover,
.nav-menu li a:focus,
.nav-menu li a.active {
  background-color: #1f2937;
  color: #79b8ff;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0;
  color: #58a6ff;
  text-shadow: 0 0 8px #58a6ff44;
}

header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 1rem auto;
  color: #8b949e;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1rem 3rem;
  max-width: 900px;
  margin-inline: auto;
  width: 100%;
  gap: 2rem;
}

section {
  background-color: #161b22;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  padding: 2rem;
  margin-inline: auto;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 0 10px #00000033;
  text-align: left;
}

section h2 {
  color: #58a6ff;
  margin-top: 0;
  margin-bottom: 1rem;
}

body, p, li, ul, section p, section ul {
  color: #8b949e;
}

section ul {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

.important-section {
  border-left: 5px solid #ffcc00; 
}

.copy-container {
  position: relative;
  background-color: #0d1117;
  border-radius: 6px;
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: #58a6ff;
  overflow-x: auto;
}

.copy-container pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn {
  margin-top: 0.75rem;
  background-color: #1e1e1e;
  color: #58a6ff;
  border: 1px solid #2e2e2e;
  border-radius: 5px;
  padding: 0.5em 1em;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #2e2e2e;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.copy-btn:hover,
.copy-btn:focus {
  background-color: #2a2a2a;
  border-color: #58a6ff;
  outline: none;
}

.repo-btn {
  margin: 1rem auto;
  display: inline-block;
}

footer {
  font-family: 'JetBrains Mono', monospace;
  background-color: #1e1e1e;
  color: #6e7681;
  padding: 1rem 0;
  font-size: 0.85rem;
  border-top: 1px solid #2e2e2e;
  box-shadow: inset 0 1px 0 0 #2e2e2e;
  position: static;
  bottom: 0;
  width: 100%;
  text-align: center;
}

a {
  color: #58a6ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:visited {
  color: #58a6ff;
}

a:hover,
a:focus {
  color: #79b8ff;
  outline: none;
}

@media (max-width: 600px) {
  header {
    padding-top: 1rem;
  }

  section {
    padding: 1rem;
    width: 95%;
  }

  .copy-btn {
    width: 100%;
  }

  .nav-menu li a {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 6px;
  border: 3px solid #1e1e1e;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #444 #1e1e1e;
}

details {
  margin-top: 1rem;
  border-top: 1px solid #2e2e2e;
  padding-top: 1rem;
}

summary {
  font-family: 'JetBrains Mono', monospace;
  color: #58a6ff;
  cursor: pointer;
  margin-bottom: 1rem;
  list-style: none;
}

summary::before {
  content: "➕ ";
}

summary::-webkit-details-marker {
  display: none;
}

details[open] summary::before {
  content: "➖ ";
}

details section {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #0f131a;
  border: 1px dashed #2e2e2e;
  border-radius: 6px;
}
