:root {
  --primary: #0366d6;
  --primary-hover: #0056b3;
  --bg: #0d1117;
  --card-bg: rgba(22, 27, 34, 0.9);
  --text-main: #c9d1d9;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --border: #30363d;
  --success: #238636;
  --warning: #ffa657;
}

* {
  box-sizing: border-box;
  transition: all 0.3s ease;
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: url(./logo.png);
  background-size: 20rem;
  background-color: black;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-blend-mode: hard-light;
  color: var(--text-main);
  margin: 0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-bottom: 50px;
}

.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% -20%, #1e2631 0%, #0d1117 80%);
  z-index: -1;
}

.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  z-index: -1;
  animation: orbFloat 20s infinite alternate;
}

.orb-1 {
  background: var(--primary);
  top: -100px;
  left: -100px;
}

.orb-2 {
  background: #bc8cff;
  bottom: -150px;
  right: -100px;
  animation-duration: 25s;
  animation-delay: -5s;
}

.orb-3 {
  background: var(--accent);
  top: 40%;
  left: 60%;
  width: 300px;
  height: 300px;
  opacity: 0.1;
  animation-duration: 30s;
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent);
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 50px);
  }
}

header {
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
}
h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 10px;
}
.subtitle {
  color: var(--accent);
  font-weight: 500;
  font-size: 1.1rem;
}

.container {
  max-width: 900px;
  width: 95%;
  display: grid;
  grid-template-columns: 1fr;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0 0 20px 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.8s ease-out;
  margin-bottom: 20px;
}

.step-box {
  margin-bottom: 40px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}
h3 {
  color: #fff;
  margin-top: 0;
}

.bookmark-btn {
  display: inline-block;
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: move;
  box-shadow: 0 5px 15px rgba(3, 102, 214, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.copy-section {
  margin-top: 30px;
  padding: 20px;
  text-align: left;
}
@media screen and (max-width: 768px) {
  .tool-card,
  .copy-section {
    padding: 30px 10px;
  }
}
.code-wrapper {
  position: relative;
  background: #010409;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 15px;
  overflow: hidden;
}

pre#raw-code-input {
  margin: 0;
  padding: 15px;
  font-family: "Cascadia Code", "Fira Code", monospace;
  font-size: 0.85rem;
  color: #79c0ff;
  max-height: 30rem;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

pre#raw-code-input::-webkit-scrollbar {
  width: 6px;
}
pre#raw-code-input::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.copy-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid var(--border);
}

.copy-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
}
.copy-btn:hover {
  background: var(--primary-hover);
}

/* Ostrzeżenie */
.warning-box {
  background: rgba(255, 166, 87, 0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
  padding: 15px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-align: left;
}
.info-box {
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 15px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-align: left;
}
.attribution-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;

  gap: 20px;
  animation: fadeIn 1s ease-out;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #0056b3;
  padding: 2px;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  font-size: 2rem;
  color: white;
  font-weight: bold;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.doc-item {
  background: var(--card-bg);

  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

kbd {
  background: #21262d;
  border: 1px solid #6e7681;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 0.8rem;
}
.avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
#markdown-content {
  color: #fff;
  margin-top: 0;
  text-align: left;
}
#markdown-content a {
  color: var(--accent);
  text-decoration: none;
}
#instructions-header {
  text-align: left;
  margin-bottom: 10px;
  font-size: 3.5rem;
  color: #fff;
  text-decoration: underline;
}
#menu {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 15px 20px;
  transition: all 0.3s ease;
}

#menu a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease;
}

#menu a:hover {
  color: var(--accent);
}

#menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

#menu a:hover::after {
  width: 100%;
}

@media (max-width: 600px) {
  #menu {
    gap: 20px;
    padding: 12px 10px;
  }
  #menu a {
    font-size: 0.8rem;
  }
}
a {
  color: var(--accent);
  text-decoration: none;
}
