/* General header styling */

/* Reset margin og padding */
html, body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow-x: auto; /* Prevent horizontal scrolling */
}

body {
  background: linear-gradient(135deg, #2b293a, #4d4963);
}

/* ====== HEADER (premium, sticky, glass) ====== */
header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: linear-gradient(135deg, #1f1c2c, #928DAB); /* mørk premium gradient */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  padding: 12px 0;
  display: flex;
  justify-content: center;
}

/* ====== NAV CONTAINER ====== */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  gap: 24px;
  padding: 0 20px;
}

/* ====== LOGO ====== */
nav .logo a {
  text-decoration: none;
  color: #fff;
}

nav .logo h1 {
  font-size: 1.6rem;
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, #FFD700, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* guld-gradient tekst */
}

nav .logo a:hover {
  text-decoration: none;
  color: inherit;
}

/* ====== MAIN MENU ====== */
nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding-left: 0;
  margin: 0;
  justify-content: flex-start;
  flex: 1;
}

nav ul li {
  text-align: center;
  margin: 0;
  padding: 0;
}

nav ul li a {
  display: inline-block;
  font-size: 0.98rem;
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.25s ease;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 0 rgba(255,255,255,0.12);
}

nav ul li a:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.18);
}

nav ul li a:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Mobil menu-knap (vises på mobil) */
.menu-button {
  display: none;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
  background: transparent;
  border: none;
}

/* ====== ICONS & DROPDOWN ====== */
.icons-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.hamburger-icon {
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}

.hamburger {
  font-size: 1.4rem;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s ease, color 0.2s ease;
}

.hamburger:hover {
  transform: scale(1.2);
  color: #FFD700;
}

/* DROPDOWN */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: fadeDown 0.25s ease;
  z-index: 11001;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: background 0.2s ease;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

.show {
  display: block;
}

/* ====== CREDITS (wallet card look – uden at ændre din HTML) ====== */
.credits-section {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(249,217,118,0.9), rgba(243,159,134,0.9));
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.3);
}

.credits-section .credits {
  background: rgba(255,255,255,0.18);
  color: #2b2b2b;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.credits-section a {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #111;
  background-color: #FFD700;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.06);
}

.credits-section a:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.18);
}

.credits-section a:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Energi/ratings mv. (URØRT) */
.energy-label {
  font-size: 1.2rem;
  color: #000;
  text-align: center;
  width: 100%;
  margin: 10px 0;
}

.user-info {
  background: transparent;
  padding-top: 40px;
  padding-bottom: 0px;
}

/* Ratings bar */
.user-info .ratings {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.user-info .rating {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.user-info .rating .bar {
  width: 500px;
  max-width: 500px;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 5px;
  position: relative;
  margin: 0 auto;
}

.user-info .rating .value {
  display: block;
  height: 100%;
  background-color: #ff6b6b;
  border-radius: 5px;
}

/* Energy text inside the bar */
.user-info .rating .energy-text {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 0;
  color: darkgrey;
  font-weight: bold;
  line-height: 20px;
  z-index: 1;
  font-size: 1rem;
}

.settings-icon {
  font-size: 2.0rem;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* ====== LOGIN/SIGNUP KNAPPER (matcher header) ====== */
.login-signup-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-signup-section .btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
  color: #111;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.06);
}

.login-signup-section .login-btn {
  background-color: #ff6b6b;
  color: #fff;
  border-color: transparent;
}

.login-signup-section .login-btn:hover {
  background-color: #e65c5c;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.22);
}

.login-signup-section .login-btn:active {
  transform: translateY(0);
}

.login-signup-section .signup-btn {
  background-color: #FFD700;
  color: #111;
}

.login-signup-section .signup-btn:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.22);
}

.login-signup-section .signup-btn:active {
  transform: translateY(0);
}

/* Ekstra generel klasse til knapper */
.button {
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  color: black;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.button:active {
  transform: translateY(1px);
  box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

/* ====== ENERGI WIDGET (URØRT) ====== */
.energy-container {
  margin-top: auto;
  position: fixed;
  width: 60px;
  height: auto;
  right: 26px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.9);
  padding: 6px !important;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 9999;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.energy-bar {
  width: 50px;
  height: 200px;
  background-color: #e0e0e0;
  border-radius: 5px;
  position: relative;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.energy-level {
  width: 100%;
  height: var(--energy-value, 0%);
  background-color: #007bff;
  position: absolute;
  bottom: 0;
  transition: height 0.3s ease-in-out;
}

.energy-symbol {
  position: absolute;
  font-size: 1.5rem;
  color: white;
}

.vote-energy-button {
  background-color: #ff6b6b;
  color: white;
  border: none;
  padding: 10px 10px;
  font-size: 0.9rem;
  font-weight: normal;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.vote-energy-button:hover {
  background-color: #e65c5c;
  transform: scale(1.1);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.vote-energy-button:active {
  transform: translateY(1px);
  box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {

  header {
    position: static; /* gør den "normal" */
  }


  .energy-container {
    position: fixed;
    width: 94%;
    right: 26px;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(255,255,255,0.9);
    padding: 6px !important;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 9999;
    box-sizing: border-box;
  }

  .energy-bar {
    width: 85%;
    height: 80px;
    background-color: #e0e0e0;
    border-radius: 5px;
    position: relative;
    margin-right: 10px;
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: right;
  }

  .energy-level {
    height: 100%;
    width: var(--energy-value, 0%);
    background-color: #007bff;
    position: absolute;
    bottom: 0;
    transition: height 0.3s ease-in-out;
  }

  .vote-energy-button {
    width: 80px !important;
    height: 60% !important;
    background-color: #ff6b6b;
    color: white;
    border: none;
    font-size: 0.9rem;
    font-weight: normal;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  .energy-symbol {
    position: absolute;
    font-size: 1.5rem;
    color: white;
    padding-right: 45%;
  }

  /* Mobil nav */
  .menu-button {
    display: block;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }


  .credits-section {
    align-self: stretch;
    justify-content: space-between;
  }

  .user-info .rating .bar {
    width: 200px;
    max-width: 200px;
  }
}

@media (max-width: 480px) {

  .settings-icon {
      font-size: 1.5rem;
  }

  header {
      padding: 20px;
  }

  .credits-card {
    margin-right: 0px !important; /* overskriver desktop margin */
  }

  .energy-container {
    position: fixed;
    width: 95%;
    height: 70px;
    right: 10px;
    bottom: 0 !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(255,255,255,0.95);
    padding: 5px !important;
    border-radius: 8px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    z-index: 9999;
    box-sizing: border-box;
  }

  .energy-bar {
    width: 75%;
    height: 60px;
    background-color: #e0e0e0;
    border-radius: 4px;
    position: relative;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: right;
  }

  .energy-level {
    height: 100%;
    width: var(--energy-value, 50%);
    background-color: #007bff;
    position: absolute;
    bottom: 0;
    transition: width 0.3s ease-in-out;
  }

  .vote-energy-button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    font-size: 0.8rem;
    font-weight: normal;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  .energy-symbol {
    position: absolute;
    font-size: 1.2rem;
    color: white;
    padding-right: 40%;
  }
}

  .third-col {
    gap: 20px;
    display: flex;
    flex-direction: row;

  }

/* Mobil: Vis hamburger-menu og skjul hovedmenu (gentaget for sikkerhed) */
@media (max-width: 768px) {
  .credits-card {
    margin-right: 0px !important; /* overskriver desktop margin */
  }

  nav {
    gap: 20px;
  }
}

/* (Valgfrit) Credits Card Styling – hvis du senere bruger .credits-card markup */
.credits-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: linear-gradient(135deg, #f9d976, #f39f86);
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 180px;
}

.credits-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: #4a4a4a;
  font-size: 1.2rem;
}

.credits-icon { font-size: 1.5rem; }
.credits-amount { font-size: 1.4rem; color: #222; }

.credits-btn {
  background: #fff;
  color: #d4af37;
  font-weight: bold;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.credits-btn:hover {
  background: #d4af37;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}




.settings-icon:hover {
  transform: rotate(20deg);
  color: #FFD700;
}

/* Fade/slide animation */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.third-col {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.plan-status-card {
  display: flex;
  align-items: center;
}

.header-plan-badge {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  white-space: nowrap;
}

.header-plan-badge.pro {
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  color: #111;
  cursor: default;
}

.header-plan-badge.free {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}

.header-plan-badge.free:hover {
  background: rgba(255,255,255,0.20);
  transform: translateY(-2px);
}

.header-plan-badge.free:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .third-col {
    width: 100%;
    flex-direction: column;
    justify-content: center;
  }

  .credits-card {
    min-width: unset;
    margin-right: 0;
  }

  .header-plan-badge {
    padding: 9px 12px;
    font-size: 0.85rem;
  }
}
