﻿/*=== BASICS & VARIABLES ===*/
:root {
  --glass-color: rgba(142, 69, 202, 0.35);
  --headline-gap: 10vh;
  --accent-main: #bc48ff;        /* Haupt-Purple/Pink */
  --accent-secondary: #8bffd8;   /* Cyan für Interaktion */
  --text-main: #ffffff;
  --text-secondary: #d0d0ff;
  --neon-glow: 0px 0px 11px 3px rgba(255, 79, 255, 0.53);
}

html {
  scrollbar-color: var(--accent-main) rgb(142, 69, 202);
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

body, html {
  margin: 0;
  height: 100%;
  background: linear-gradient(135deg, #1b124e, #7d3cff, #bc48ff);
  background-size: 300% 300%;
  font-family: 'Courier New', Courier, monospace;
  color: white;
}

main {
  position: relative;
  margin-top: var(--headline-gap);
  min-height: calc(100vh - var(--headline-gap)); 
  
  /* HIER STECKT DIE RETTUNG: */
  overflow-y: auto; 
  overflow-x: hidden;
}

.pls-gv-air {
  padding: 5%;
}

#backgroundCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/*=== USAGES & COMPONENTS ===*/
.glassyPane {
  background-color: var(--glass-color);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: solid hsl(from var(--accent-main) h s l / 0.2);
}

.icon {
  aspect-ratio: 1 / 1;
  max-height: 200px;
  border-radius: 50%; 
  transition: transform 0.3s ease-in-out;
}

.icon:hover {
  transform: scale(1.1); /* 'transform: scale' ist stabiler als die reine 'scale'-Property */
}

/*=== HEADLINE / NAVIGATION ===*/
#headline {
  animation: blend_mode 0.7s forwards;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  width: 100vw;
  height: var(--headline-gap);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

#headline .icon {
  height: 90%;
}

#headline a {
  text-decoration: none;
  font-size: clamp(14px, 2rem, 25px); /* Min-Wert auf 14px erhöht, damit es lesbar bleibt */
  color: hwb(293 50% 0%);
  font-weight: bold;
  border-radius: 20px;
  position: relative;
  transition: color 0.3s ease;
}

#headline a::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -50%;
  height: 3px;
  width: 0;
  background-color: hwb(293 47% 0% / 0.466);
  border-radius: 20%;
  transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

#headline a:hover::after {
  width: 100%;
  left: 0;
}

#headline a.selected::after {
  animation: a_headline_selected 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  background-color: lab(67.7% 71.43 -38.1 / 0.616);
  width: 100%;
  left: 0;
}

.toggleBtnSettings {
  background-image: url("../assets/images/settings.svg");
  background-size: contain;
  background-color: transparent;
  border: 0;
  aspect-ratio: 1 / 1;
  height: 90%;
  border-radius: 10%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggleBtnSettings:hover {
  background-color: var(--glass-color);
}

#headline .toggleBtnSettings {
  height: 70%;
}

/*=== CANVAS & CONTAINERS ===*/
.canvas-wrapper {
  width: 80%;
  height: 80%;
  overflow: hidden;
  border-radius: 20px;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  animation: blend_mode 0.7s forwards;
}

#settingContent {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  width: 0;
  height: 100vh;
  background-color: var(--glass-color);
  overflow-x: hidden;
  opacity: 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

#settingContent .h1 {
  align-self: center;
}

#settingContent.open {
  width: clamp(400px, 20%, 500px);
  opacity: 1;
}

#settingContent .toggleBtnSettings {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
}

div.container {
  padding: 3%;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

div.container .contTitle {
  position: absolute;
  top: 0;
  left: 1rem;
  transform: translateY(-50%);
  padding: 0 0.6rem;
  font-weight: bold;
}

label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/*=== FORM ELEMENTS ===*/
input[type="range"]::-webkit-slider-runnable-track {
  background-color: #8400ff5d;
  height: 8px;
  border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  background: #ff00c8;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -6px;
}

input[type="checkbox"] {
  background-color: var(--glass-color);
  transform: scale(1.5);
  cursor: pointer;
}

/*=== DETAILS / ACCORDION ===*/
details {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
  backdrop-filter: blur(5px);
}

#settingContent .container {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#settingContent.open .container {
  opacity: 1;
}

details:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

summary {
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

summary::after {
  content: "›";
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

details[open] summary::after {
  transform: rotate(90deg); /* Natürlicheres Drehen für das Icon */
}

details p {
  margin: 0.5rem 0 0 0;
  line-height: 1.5;
}

/*=== SPECIAL EFFECTS & DECO ===*/
.banner {
  transition: 0.5s;

  background-color: var(--glass-color);
  margin: 2% 0;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  gap: 2%;
  align-items: center;
  justify-content: space-evenly;

  border-radius: 50px;

  border: solid var(--accent-main);

  position: relative;
  z-index: 1;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(185, 97, 235, 0.05);
  box-shadow: 0px 0px 15px -1px rgba(188, 104, 236, 0.1);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.banner:hover::after {
  opacity: 1;
}

.banner h1 {
  font-size: 200%;

  width: 90%;

  position: relative;
}

.banner h1::after {

  content: '';

  position: absolute;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 3px;

  border-radius: 2px;

  background-color: hsl(from var(--accent-secondary) h s l / 0.2);
}

.banner:hover {
  transition: 0.5s;
  
  scale: 1.05;

  border: solid hsl(from var(--accent-main) h s calc(l * 1.1));

  transform: translateY(-10px);
}

.jitran {
  font-weight: 700;
  background: linear-gradient(135deg, cyan, rgb(111, 0, 255), violet, magenta, rgb(255, 0, 149));
  background-size: 400% 400%;
  animation: rainbowText 6s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.decoLine1, .decoLine2, .decoLine3 {
  display: block;
  width: 100%;
  margin: 1.2rem 0;
  flex-shrink: 0;
  border-radius: 20%;
}
.decoLine1 { height: 3px; background-color: var(--accent-main); }
.decoLine2 { height: 2px; background-color: rgba(188, 72, 255, 0.38); }
.decoLine3 {
  height: 1px;
  background-image: repeating-linear-gradient(to right, var(--accent-main), var(--accent-main) 10px, transparent 20px, transparent 60px);
}

h1.head { --font-color: #cb39e9; --num-color: #34b7ce; }
h2.head { --font-color: #74a2b4; --num-color: #7fc3cf; }

.head {
  color: var(--font-color);
  padding: 1%;
  position: relative;
}

.head .num {
  color: var(--num-color);
  font-style: oblique;
}

.head::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 90%;
  transition: box-shadow 1s ease-in-out;
  box-shadow: 0px 0px 1px 1px #23ffff;
}

.head:hover::before {
  transition: ease-in-out 2s;
  box-shadow: 50px 0px 15px 1px #23ffff;
}

.release-section {
    margin-bottom: 3rem;
    width: 100%;
}

.release-section h2 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Tabellen */

.table {
    width: 100%;
    overflow: hidden;

    border-radius: 20px;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    background: var(--glass-color);

    border: 1px solid
        hsl(from var(--accent-main) h s l / .25);

    box-shadow:
        0 0 15px rgba(188,72,255,.1);
}

.table table{
    width:100%;
    border-collapse: collapse;
}

.table th{
    padding: 1rem;
    text-align: left;

    font-size: .95rem;
    font-weight: 600;

    color: white;

    
    background:
        var(--accent-main)
}

.table td{
    padding: .9rem 1rem;

    color: var(--text-main);

    border-bottom:
        1px solid rgba(255,255,255,.08);
}

.table tr:last-child td{
    border-bottom:none;
}

.table tbody tr{
    transition: .25s ease;
}

.table tbody tr:hover{
    background:
        rgba(255,255,255,.04);
}

/* Version */

.version{
    font-family: monospace;
    color: var(--text-secondary);
}


/* Badges */

.badge{
    padding: .35rem .8rem;

    border-radius: 50px;

    font-size: .8rem;
    font-weight: bold;
}

.lts{
    background:
        rgba(139,255,216,.15);

    color:
        var(--accent-secondary);
}

.snapshot{
    background:
        rgba(255,180,50,.15);

    color:
        #ffd27a;
}


/* Download */

.download{
    display:inline-block;

    padding:.55rem 1rem;

    border-radius:12px;

    text-decoration:none;
    color:white;

    background:
        rgba(188, 72, 255, 0.699);

    border:
        5px solid rgba(255,255,255,.1);

    transition:.2s ease;
}

.download:hover{

    transform:
        translateY(-2px);

    border-color:
        var(--accent-secondary);

    background:
        rgba(139,255,216,.15);
}


/* Github Link */

.release-link{
    color:
        var(--text-secondary);

    text-decoration:none;
}

.release-link:hover{
    color:
        var(--accent-secondary);
}