/* 
Generelle stilarter

Primær blå = #2AB7FE
Box baggrund 1 = #4e636e , tekst = #181f22
Box baggrund 2 = #3f5058 , tekst = #7e8d96
*/

:root { 
  --page-max: 1200px; 
  --nav-h: 94px;
  --nav-gap: 12px;
}

/* Base reset ---------------------------------------------------------------*/
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body{
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  background: #0e1418;
  line-height: 1.45;
}

/* Scrollbar ----------------------------------------------------------------*/
body::-webkit-scrollbar{ width: 11px; }
body::-webkit-scrollbar-track{ background: rgba(43, 42, 42, 0.98); }
body::-webkit-scrollbar-thumb{
  background-color: rgba(53, 53, 53, 0.95);
  border-radius: 20px;
}

/* Baggrund -----------------------------------------------------------------*/
.background{
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.background img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px);
  transform: scale(1.08);
}
.background::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    inset 0 0 90px rgba(0,0,0,.85);
}

/* Layout -------------------------------------------------------------------*/
.container{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Topnav -------------------------------------------------------------------*/
.topnav{
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  background: rgba(43, 42, 42, 0.95);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.topnav .nav-inner{
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* venstre | center | højre */
  align-items: center;
  gap: 12px;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 6px 12px;
  min-height: var(--nav-h);
}

/* Topnav items -------------------------------------------------------------*/
.topnav .nav-actions,
.topnav .nav-content{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.topnav .nav-actions{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;      /* <-- vigtig */
  gap: 4px 8px;
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
}

.nav-right{
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.topnav a{
  color: #2AB7FE;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  display: block;
  padding: 10px;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}
.topnav a:hover{ background: rgba(59, 58, 58, 0.8); }

/* Dropdown i topnav --------------------------------------------------------*/
.topnav .dropdown{ position: relative; }

.topnav .dropdown-toggle{
  background: transparent;
  border: 0;
  color: #2AB7FE;
  font-weight: bold;
  font-size: 20px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.topnav .dropdown-toggle::after{
  content: "▾";
  margin-left: 6px;
  font-size: 0.9em;
}
.topnav .dropdown-toggle:hover,
.topnav .dropdown-toggle:focus-visible{
  background-color: rgba(59, 58, 58, 0.8);
  outline: none;
}

.topnav .dropdown-menu{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  display: none;
  padding: 8px;
  border-radius: 12px;
  background: rgba(43, 42, 42, 0.95);
  border: 2px solid rgba(43, 42, 42, 0.95);
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  z-index: 50;
  flex-direction: column;
  gap: 4px;
}
.topnav .dropdown.open .dropdown-menu{ display: flex; }

.topnav .dropdown-item{
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  color: #2AB7FE;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.topnav .dropdown-item:hover,
.topnav .dropdown-item:focus-visible{
  background: rgba(59, 58, 58, 0.8);
  outline: none;
}

/* Discord login ------------------------------------------------------------*/
.topnav a.discord-login{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  box-sizing: border-box;
  line-height: 1.2;
  font-size: 18px;
  font-weight: bold;
  background-color: #5865F2;
  color: #fff !important;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
}
.topnav a.discord-login:hover{
  background-color: #4752C4;
  color: #fff !important;
  transform: scale(1.05);
  cursor: pointer;
}
.topnav a.discord-login .discord-icon{ width: auto; height: 1.2em; display: block; }
.topnav a.discord-login:focus-visible{ outline: none; box-shadow: 0 0 0 3px rgba(42,183,254,.35); }

/* Avatar i topnav ----------------------------------------------------------*/
.navbar-avatar{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 0;
  margin: 0 8px;
}
.topnav a.navbar-avatar:hover{ background: none !important; }
.navbar-avatar .avatar-img{
  width: 60px;
  height: auto;
  display: block;
  border-radius: 25%;
  border: 1.5px solid #344249;
  object-fit: cover;
  transition: transform 0.2s;
}
.navbar-avatar .avatar-img:hover{ transform: scale(1.1); cursor: pointer; }
.topnav a.navbar-avatar{ color: inherit; font-size: inherit; text-decoration: none; }

/* -------------------------------------------------------------------------- */
/* SERVER STATUS POPUP (hele boksen slider ud, tab bliver tilbage)            */
/* -------------------------------------------------------------------------- */

.server-status-popup{
  position: fixed;
  right: 16px;
  top: calc(var(--nav-h) + var(--nav-gap));
  z-index: 3000;

  display: flex;
  align-items: stretch;

  background: rgba(43, 42, 42, 0.95);
  border: 2px solid rgba(43, 42, 42, 0.95);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(4px);

  overflow: hidden;

  /* KUN slide */
  transform: translateX(0);
  transition: transform 220ms ease;
}

/* Indhold */
.server-status-popup .server-status{
  width: 270px;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  color: #fff;
}

/* Pil er en FAST del af boksen */
.server-status-popup .ssp-toggle{
  width: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;

  display: grid;
  place-items: center;

  color: rgba(255,255,255,.75);
  font-weight: 900;
  font-size: 22px;

  border-left: 1px solid rgba(255,255,255,.06);
}
.server-status-popup .ssp-toggle:hover{
  background: rgba(59, 58, 58, 0.35);
  color: #fff;
}

/* Collapsed: hele boksen kører ud til højre, men efterlader en tab (pilen) */
.server-status-popup.collapsed{
  transform: translateX(calc(100% - 44px));
}

/* Når collapsed: pilen skal visuelt ligge i venstre side af tab’en */
.server-status-popup.collapsed .ssp-toggle{
  border-left: 0;
  border-right: 1px solid rgba(255,255,255,.06);
}

/* Når collapsed: pilen skal stå i venstre side af tab’en */
.server-status-popup.collapsed{
  transform: translateX(calc(100% - 44px));
  flex-direction: row-reverse; /* <-- VIGTIG: flytter pilen til venstre */
}

/* Når collapsed: byt separator-linje så den ligger korrekt */
.server-status-popup.collapsed .ssp-toggle{
  border-left: 0;
  border-right: 1px solid rgba(255,255,255,.06);
}

/* Normal state: separatoren er til venstre for pilen */
.server-status-popup .ssp-toggle{
  border-left: 1px solid rgba(255,255,255,.06);
  border-right: 0;
}

/* Server status indhold (genbruges) */
.ss-top{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 8px;
  opacity: .85;
}
.ss-dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52,211,153,.85);
}
.server-status.offline .ss-dot{
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239,68,68,.85);
}
.ss-title{
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 12px;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
}
.ss-count{
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 8px;
}
.ss-now,
.ss-max{
  font-size: 22px;
  font-weight: 900;
  color: rgba(255,255,255,.85);
}
.ss-sub{
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,.55);
}

/* Mobil: gem popuppen */
@media (max-width: 900px){
  .server-status-popup{ display: none; }
}

/* Intro header -------------------------------------------------------------*/
.intro-container{ grid-column: 1 / -1; }

.intro-header{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 3%;
}

.intro-logo-wrap{
  width: 220px;
  display: flex;
  justify-content: center;
}
.intro-logo{
  width: 220px;
  height: auto;
  display: block;
  filter: drop-shadow(3px 3px 3px rgba(0,0,0,.65));
  transform: translateX(-8px);
}
.intro-title{
  text-align: center;
  font-size: clamp(32px, 4vw, 56px);
  color: #2AB7FE;
  font-weight: 800;
  font-style: italic;
  text-shadow: 3px 3px 3px #000;
  margin: 0;
}

@media (max-width: 600px){
  .intro-header{ flex-direction: column; gap: 8px; }
  .intro-logo{ width: 78px; transform: none; }
}

/* Login info ---------------------------------------------------------------*/
.login-info{
  grid-column: 2 / 3;
  height: 60px;
  text-align: center;
  color: #2AB7FE;
  text-shadow: 3px 3px 3px #000000;
  padding-top: 15px;
  margin-left: 8%;
  margin-right: 8%;
}

/* Intro boxes --------------------------------------------------------------*/
.intro-boxes{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2%;
  margin: 4% auto 2rem;
  width: min(1200px, 86vw);
}

.intro-card{
  display: flex;
  flex-direction: column;
  background: rgba(43, 42, 42, 0.95);
  border: 4px solid rgba(43, 42, 42, 0.95);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(4px);
  color: #dce8ee;
  transition: transform .15s ease, box-shadow .15s ease;
}
.intro-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}
.intro-card .card-head{
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.intro-card img{
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
}
.intro-card h3{
  margin: 0;
  font-weight: 800;
  font-style: italic;
  color: #2AB7FE;
  text-shadow: 2px 2px 2px #000;
  font-size: 20px;
}
.intro-card p{
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* Changelog ----------------------------------------------------------------*/
.changelog{
  text-align: center;
  grid-column: 1 / -1;
  margin-top: 8%;
  font-size: 56px;
  color: #2AB7FE;
  font-weight: bold;
  font-style: italic;
  text-shadow: 3px 3px 3px #000000;
}

/* Changelog bokse ----------------------------------------------------------*/
.boks{
  background-color: rgba(43, 42, 42, 0.98);
  margin-top: 10%;
  border-radius: 16px;
  padding: 10px;
  border: 4.5px solid rgba(43, 42, 42, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.boks1{ grid-column: 1 / 2; margin-left: 10%; margin-right: 5%; }
.boks2{ grid-column: 2 / 3; margin-left: 5%; margin-right: 5%; }
.boks3{ grid-column: 3 / 4; margin-left: 5%; margin-right: 10%; }

.boks .titel{
  font-size: 26px;
  font-weight: bold;
  font-style: italic;
  color: #2AB7FE;
  text-shadow: 3px 3px 3px #000000;
}
.boks .overskrift{
  margin-top: 3%;
  font-size: 18px;
  font-weight: bold;
  font-style: italic;
  color: #2AB7FE;
  text-shadow: 3px 3px 3px #000000;
}

.tekst_add,
.tekst_fix,
.tekst_remove{
  margin-top: 2%;
  font-weight: bold;
  color: #7e8d96;
}

.boks ul{
  margin-top: 2%;
  padding-left: 20px;
  list-style-type: none;
}

.tekst_add li,
.tekst_fix li,
.tekst_remove li{
  position: relative;
  margin-bottom: 10px;
}

.tekst_add li::before{ content: '\2705'; position: absolute; left: -20px; top: 0; }
.tekst_fix li::before{ content: '\1F527'; position: absolute; left: -20px; top: 0; }
.tekst_remove li::before{ content: '\274C'; position: absolute; left: -20px; top: 0; }

.apply_footer_style{
  font-size: 12px;
  color: #7e8d96;
  align-self: flex-end;
  margin-top: auto;
  font-weight: bold;
}

/* Ansøgnings-overskrift ----------------------------------------------------*/
.apply_titel{
  text-align: center;
  grid-column: 1 / -1;
  margin-top: 8%;
  margin-bottom: 0.5rem;
  font-size: 56px;
  color: #2AB7FE;
  font-weight: bold;
  font-style: italic;
  text-shadow: 3px 3px 3px #000000;
}

/* Ansøgningsliste ----------------------------------------------------------*/
.apply{
  grid-column: 1 / -1;
  margin: 48px auto 96px;
  width: min(1600px, 100%);
}

.apply-list{
  display: flex;
  flex-direction: column;
  gap: 0;
}

.apply-item{
  background-color: rgba(43, 42, 42, 0.9);
  border-radius: 0;
  border: 2px solid rgba(43, 42, 42, 0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.apply-list .apply-item:first-child{ border-radius: 16px 16px 0 0; }
.apply-list .apply-item:last-child{ border-radius: 0 0 16px 16px; }
.apply-list .apply-item + .apply-item{ border-top-width: 1px; }

.apply-item-header{
  width: 100%;
  padding: 16px 20px;
  border: none;
  outline: none;
  background: rgba(39, 38, 38, 0.85);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  text-shadow: 2px 2px 3px #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.apply-item-header:focus-visible{ box-shadow: 0 0 0 2px #2AB7FE; }

.apply-item-title{ flex: 1; text-align: left; }
.apply-item-subtitle{ font-size: 14px; opacity: 0.8; }
.apply-item-arrow{ font-size: 16px; transition: transform 0.25s ease; }
.apply-item.open .apply-item-arrow{ transform: rotate(90deg); }

.apply-item-body{
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease;
  background-color: rgba(32, 32, 32, 0.95);
}
.apply-item.open .apply-item-body{ opacity: 1; }

.apply-item-body-inner{
  display: flex;
  gap: 20px;
  padding: 18px 20px 20px;
  align-items: center;
}

.apply-item-logo img{
  display: block;
  width: 172px;
  height: 172px;
  object-fit: contain;
}

.apply-item-content{ flex: 1; }

.apply-item-description{
  margin: 0 0 10px;
  color: #e4f5ff;
  font-size: 18px;
  line-height: 1.4;
}

.apply-rules{
  margin: 4px 0 10px;
  padding-left: 20px;
  font-size: 16px;
  color: #d5e6f5;
}
.apply-rules li{ margin-bottom: 3px; }

.apply-item-actions{
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-right: 25px;
  gap: 10px;
}

/* Ansøg-knap ----------------------------------------------------------------*/
.apply_button_style1{
  position: relative;
  overflow: hidden;
  background: #28af60;
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  padding: 10px 26px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.apply_button_style1:hover{ transform: translateX(3px); }
.apply_button_style1::after{
  content: ">";
  margin-left: 4px;
  position: relative;
  right: 0;
  transition: right 0.2s ease;
}
.apply_button_style1:hover::after{ right: -2px; }

.apply_button_style1:disabled{
  background: #6d6d6d;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.apply_hint{
  grid-column: 1 / -1;
  margin-top: 12px;
  text-align: center;
  color: #d5e6f5;
  font-size: 16px;
  font-weight: 600;
}
.apply_hint a{ color: #2AB7FE; text-decoration: underline; }

.apply-list .apply-item:first-child:last-child{
  border-radius: 16px !important;
  border-width: 2px;
}

/* Mobil tilpasning ---------------------------------------------------------*/
@media (max-width: 768px){
  .apply{ margin-top: 24px; width: 100%; }
  .apply-item-body-inner{ flex-direction: column; align-items: flex-start; }
  .apply-item-logo img{ width: 100px; height: 100px; }
}

/* Footer -------------------------------------------------------------------*/
.footer{
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  min-height: 100px;
  text-align: center;
  color: #fff;
  background: rgba(32, 32, 32, 0.99);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.footer p{ margin: 0; }

.footer #copyright {
  margin-top: 3%;
  margin-bottom: 2%;
}

/* Donator slider i footer --------------------------------------------------*/
.donator-footer{
  width: min(1700px, 92vw);
}

.donator-title{
  margin-top: 3%;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  opacity: .95;
  margin-bottom: 8px;
}

.donator-marquee{
  margin-top: 2%;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}

.donator-track{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  white-space: nowrap;
  will-change: transform;
  animation: donatorScroll var(--donator-duration, 40s) linear infinite;
}

.donator-marquee:hover .donator-track{
  animation-play-state: paused;
}

.donator-card{
  --role-color: rgba(255,255,255,.18);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
  min-width: 190px;
  text-align: center;
}

.donator-center-label{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  opacity: .75;
}

.donator-role{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .3px;
  color: rgba(255,255,255,.95);
  /* Fallback */
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  /* Moderne browsere */
  background: color-mix(in srgb, var(--role-color), rgba(0,0,0,.55) 55%);
  border: 1px solid color-mix(in srgb, var(--role-color), rgba(255,255,255,.18) 45%);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

.donator-role-emoji{ line-height: 1; }

.donator-role-name{
  font-size: 12px;
  text-transform: uppercase;
}

.donator-user{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.donator-avatar{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
}

.donator-name{
  font-weight: 800;
  color: rgba(255,255,255,.92);
}

@keyframes donatorScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* Cookie banner ------------------------------------------------------------*/
.cookie-consent{
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92vw);

  background: rgba(43, 42, 42, 0.95);
  border: 2px solid rgba(43, 42, 42, 0.95);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);

  padding: 14px 16px;
  z-index: 9999;

  display: none;

  color: rgba(255,255,255,.80);
  font-weight: 700;
  font-style: italic;
}

.cookie-consent.is-visible{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.cookie-consent p{
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.35;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.cookie-consent a{
  color: #2AB7FE;
  text-decoration: underline;
}

.cookie-consent button{
  margin: 0;
  padding: 8px 14px;

  background: #2AB7FE;
  color: #0e1418;
  font-weight: 900;
  font-size: 14px;

  border: 0;
  border-radius: 12px;
  cursor: pointer;

  white-space: nowrap;
  flex: 0 0 auto;

  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cookie-consent button:hover{
  transform: translateY(-1px);
  filter: brightness(0.95);
}

/* Responsive tweaks --------------------------------------------------------*/
@media (max-width: 900px){
  .topnav a, .topnav .dropdown-toggle{ font-size: 18px; padding: 8px; }
  .apply_button_style1{ margin-left: auto; margin-right: auto; padding: 8px 16px; }
  .footer, .login-info{ margin-left: 4%; margin-right: 4%; }
}
