:root {
  --bg: #0f0f12;
  --text: #ffffff;
  --text-soft: rgba(255,255,255,0.72);

  --glass: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.14);

  --shadow: 0 10px 35px rgba(0,0,0,0.22);
}

/* Globaler Reset & Hintergrund */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--text);
  background:
    linear-gradient(rgba(0, 0, 0, 0.519), rgba(0, 0, 0, 0.519)),
    url("../images/background4.jpg") no-repeat center center fixed;
  background-size: cover;
  font-family: 'Pixel', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

@font-face {
    font-family: 'Pixel';
    src: url('../fonts/fartingisfun.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* =========================
   Globales Layout (Header & Sidebar)
   ========================= */

.header-global {
  height: 45px;
  width: 100vw;
  background: rgba(0, 0, 0, 0.186);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding-left: 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-sizing: border-box;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-global .webtitle {
  margin: 0;
  font-size: 1.1rem;
}

.header-global .webtitle a {
  color: white;
  text-decoration: none;
}

.page-layout {
  display: flex;
  margin-top: 45px;
  min-height: calc(100vh - 45px);
  width: 100vw;
}

.sidebar-nav {
  width: 200px;
  background: rgba(0, 0, 0, 0.186);
  border-right: 1px solid var(--border);
  padding: 20px 15px;
  box-sizing: border-box;
  flex-shrink: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sidebar-nav .nbar .nav-row {
  margin-bottom: 15px;
}

.sidebar-nav .nbar a {
  display: inline-block;
  margin: 3px 2px;
}

.main-content {
  flex: 1;
  padding: 30px 40px;
  text-align: left;
  box-sizing: border-box;
  overflow-y: auto;
}

/* =========================
   Globales Downloads Page View Design
   ========================= */

.downloads-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.download-card,
.download-view-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-align: left;
}

.download-card:hover,
.download-view-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.35);
}

.download-card h3,
.download-view-title {
    margin-top: 0;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 1.2rem;
}

.download-card p,
.download-view-desc {
    margin: 5px 0 15px 0;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.badge {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-left: 8px;
}

.badge-safe { background: #1b4d1b; color: #51cf66; }
.badge-preview { background: #4d4d1b; color: #ffd43b; }
.badge-beta { background: #4d331b; color: #ffa94d; }
.badge-exp { background: #4d1b1b; color: #ff6b6b; }
.badge-unstable { background: #3d0a0a; color: #ff8787; }
.badge-pre { background: #2f753b; color: #51cf66; }

.download-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    transition: 0.2s;
    width: fit-content;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    text-decoration: none;
}

.category-title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
    margin: 25px 0 15px 0;
    text-align: left;
    color: #74c0fc;
}

/* =========================
   Standard Glass-Elemente & Komponenten
   ========================= */

.header,
.navbar-top,
.footer,
.welcome {
  background: linear-gradient(rgba(0, 0, 0, 0.364), rgba(0, 0, 0, 0.364));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.creator-card img {
  border: 4px solid #fff;
}

.guestbook {
    margin-bottom: 12px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.changelog {
  width: min(700px, 92%);
  scroll-behavior: smooth;
  margin: 0 auto 60px auto;
  padding: 20px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.changelog-entry {
  padding: 12px 14px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.25s ease;
}

.changelog-entry:hover {
  background: rgba(255,255,255,0.18);
  transform: translateX(4px);
}

.changelog::-webkit-scrollbar {
  width: 8px;
}

.changelog::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
}

.changelog::-webkit-scrollbar-track {
  background: transparent;
}

.marqueebox {
    margin-top: 20px;
    padding: 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.htxt {
  background: linear-gradient(to bottom, 
    #c8ffc5 0%, 
    #1fbf24 55%,
    #009a05 55%, 
    #457a28 100%
  );
  text-align: center;
}