* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #090d14;
  color: #e5e7eb;
  font-family: Arial, sans-serif;
}

/* STARTSEITE / DOCS */

body.docs-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100vh;
}

.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 28px;
  background: #0b111c;
  border-right: 1px solid #1f2937;
}

.logo {
  width: 170px;
  max-height: 90px;
  object-fit: contain;
  display: block;
  margin-bottom: 35px;
}

.sidebar p {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 24px 0 10px;
}

.side-link,
.sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  color: #94a3b8;
  text-decoration: none;

  padding: 12px;
  border-radius: 12px;
  margin-bottom: 6px;

  transition: 0.2s;
}

.side-link:hover,
.sidebar a:hover,
.sidebar a.active {
  background: #2563eb22;
  color: white;
}

.disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.admin-link {
  margin-top: 30px;
  background: #2563eb22;
  color: white !important;
}

.content {
  width: 100%;
  max-width: 1250px;
  padding: 60px;
}

.badge {
  display: inline-block;
  color: #60a5fa;
  font-weight: 900;
  margin-bottom: 14px;
}

h1 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

h2 {
  font-size: 34px;
  margin-bottom: 20px;
}

.desc {
  color: #94a3b8;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 45px;
}

/* CARDS */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.doc-card {
  overflow: hidden;
  display: block;

  text-decoration: none;
  color: white;

  background: #0b111c;
  border: 1px solid #1f2937;
  border-radius: 22px;

  transition: 0.25s;
}

.doc-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 0 35px rgba(37, 99, 235, 0.2);
}

.doc-card img,
.image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #1f2937;
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020617;
  color: #64748b;
}

.card-content {
  padding: 24px;
}

.card-content h2 {
  font-size: 24px;
  margin: 14px 0 10px;
}

.card-content p {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 14px;
}

.card-content small {
  color: #64748b;
}

.disabled-card {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* STATUS TAGS */

.status,
.side-link b {
  display: inline-flex;
  align-items: center;

  padding: 5px 10px;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.release {
  background: #22c55e22;
  color: #86efac;
  border: 1px solid #22c55e55;
}

.beta {
  background: #2563eb22;
  color: #93c5fd;
  border: 1px solid #3b82f655;
}

.wip {
  background: #f59e0b22;
  color: #fcd34d;
  border: 1px solid #f59e0b55;
}

.not_released {
  background: #ef444422;
  color: #fca5a5;
  border: 1px solid #ef444455;
}

/* SCRIPT PAGE */

.update-alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;

  background: linear-gradient(135deg, #2563eb33, #22c55e22);
  border: 1px solid #3b82f655;

  padding: 18px 20px;
  border-radius: 18px;
  margin-bottom: 35px;
}

.update-alert strong {
  color: white;
}

.update-alert span {
  color: #94a3b8;
}

section {
  border-bottom: 1px solid #1f2937;
  margin-bottom: 40px;
  padding-bottom: 40px;
}

section p,
section li {
  color: #a8b3c5;
  line-height: 1.8;
}

pre {
  background: #020617;
  border: 1px solid #1f2937;
  padding: 20px;
  border-radius: 16px;
  overflow-x: auto;
  margin-top: 18px;
}

code {
  color: #bfdbfe;
}

/* ADMIN */

.admin-body {
  display: block;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,0.25), transparent 30%),
    #090d14;
}

.admin-page {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 60px 30px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.create-box,
.admin-card,
.login-box {
  background: rgba(11,17,28,0.92);
  border: 1px solid #1f2937;
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 30px;
  box-shadow: 0 0 40px rgba(0,0,0,0.2);
}

.create-box form,
.admin-card {
  display: grid;
  grid-template-columns: 1fr 1fr 170px;
  gap: 14px;
}

.admin-card textarea,
.create-box textarea,
.admin-preview {
  grid-column: 1 / -1;
}

.admin-preview {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #1f2937;
}

.admin-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;

  background: #020617;
  border: 1px solid #1f2937;
  border-radius: 12px;

  color: white;
  font-size: 15px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #3b82f6;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button,
.logout-btn,
.delete-btn {
  width: fit-content;
  padding: 14px 22px;

  border-radius: 12px;
  color: white;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  border: none;
}

button {
  background: #2563eb;
}

button:hover {
  background: #3b82f6;
}

.logout-btn {
  background: #ef444422;
  border: 1px solid #ef444455;
  color: #fca5a5;
}

.delete-btn {
  background: #991b1b22;
  border: 1px solid #ef444455;
  color: #fca5a5;
}

.login-box {
  width: 100%;
  max-width: 420px;
  margin: 100px auto;
}

.error {
  color: #fca5a5;
  margin-bottom: 15px;
}

/* MOBILE */

@media (max-width: 1000px) {
  body.docs-layout {
    display: block;
  }

  .sidebar {
    height: auto;
    position: relative;
  }

  .content,
  .admin-page {
    padding: 30px 20px;
  }

  .grid,
  .create-box form,
  .admin-card {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 40px;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

label {
  font-size: 14px;
  font-weight: 800;

  color: white;

  margin-bottom: -4px;
}

.field-info {
  color: #64748b;

  font-size: 13px;

  margin-top: -6px;
  margin-bottom: 6px;
}

.changelog-box {
  background: #0b111c;

  border: 1px solid #1f2937;

  border-radius: 18px;

  padding: 22px;

  margin-bottom: 18px;
}

.changelog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 16px;
}

.version-badge {
  background: #2563eb22;

  border: 1px solid #3b82f655;

  color: #93c5fd;

  padding: 6px 12px;

  border-radius: 999px;

  font-size: 13px;
  font-weight: 900;
}

.discord-btn {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 14px 22px;
  background: #5865f2;
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
}

.discord-btn:hover {
  background: #4752c4;
}