:root {
  --accent-red: #e63946;
  --accent-blue: #4a82ff;
  --bg-primary: #0a0a0f;
  --bg-secondary: #1a1a2e;
  --card-bg: #1f203a;
  --text-light: #e0e0e0;
  --text-muted: #a0a0a0;
  --border-color: #3b3b5c;
  --link-color: var(--accent-red);
  --link-hover: #ff6b6b;
  --nav-bg: var(--bg-secondary);
  --footer-bg: var(--bg-secondary);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* NAVBAR - Verbeterde styling */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--nav-bg);
  padding: 1rem 1.5rem;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-pfp {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-red);
}

nav h1 {
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;
}

nav h1 a {
  color: var(--text-light);
  text-decoration: none;
  line-height: 1;
}

/* Menu */
#nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 999;
}

/* Algemene linkstijl in de nav voor niet-knop-links */
#nav-menu li a:not(#dashboard-link):not(a[href*="logout"]):not(#login-link) {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

/* Hover-effect voor niet-knop-links */
#nav-menu li a:not(#dashboard-link):not(a[href*="logout"]):not(#login-link):hover {
  color: var(--accent-red);
  background-color: rgba(230, 57, 71, 0.1);
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
  transition: transform 0.3s ease;
}

.hamburger div {
  width: 24px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
  transform-origin: center;
}

.hamburger.open div:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open div:nth-child(2) {
  opacity: 0;
}

.hamburger.open div:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Responsive nav */
@media (max-width: 768px) {
  #nav-menu {
    flex-direction: column;
    background-color: var(--nav-bg);
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease;
  }

  #nav-menu.open {
    max-height: 400px;
    padding: 0.5rem 0;
  }

  #nav-menu li {
    width: 100%;
    padding: 0.5rem 1.2rem;
  }
  
  #nav-menu li a {
    padding: 0.75rem 1rem;
  }
  
  #nav-menu li a button {
    width: 100%;
    padding: 0;
  }

  .hamburger {
    display: flex;
  }
}

/* Main content */
/* Algemene styling voor gewone pagina's */
main:not(.dashboard-main) {
  padding: 2rem 1.5rem;
  max-width: 720px;
  margin: 2rem auto;
  flex-grow: 1;
  text-align: left;
}


/* Specifieke styling voor dashboard main */
.dashboard-main {
  max-width: 100%;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
}

/* Link color */
a {
  color: var(--link-color);
  text-decoration: none;
}

/* De container voor de header en de knop */
.header-with-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Algemene stijl voor de "Add to server" knop */
#invite-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  background-color: var(--card-bg);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
  font-weight: 600;
  border: 1px solid var(--border-color);
  line-height: 1; /* Zorgt ervoor dat de tekst netjes in het midden staat */
}

/* Hover-effect voor de hele knop */
#invite-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Het plus-icoon gedeelte */
#invite-button .icon-part {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--accent-red);
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 8px 0 0 8px;
  position: relative;
  transition: all 0.3s ease;
}

/* Hover-effect voor het plus-icoon met een 'glow' */
#invite-button:hover .icon-part {
  background-color: #ff6b6b; /* Iets lichtere kleur bij hover */
  box-shadow: 0 0 10px var(--accent-red), 0 0 20px var(--accent-red);
}

/* Het tekstgedeelte van de knop */
#invite-button .text-part {
  padding: 0 1rem;
}

/* Verwijder de oude .add-server-icon stijl die je niet meer gebruikt */
.add-server-icon {
  display: none; /* of verwijder de hele regel */
}



/* Header styling blijft gelijk */
main h2 {
  color: var(--accent-red);
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Paragraaf styling voor normale main */
main:not(.dashboard-main) p {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}



/* Footer */
footer {
  background-color: var(--footer-bg);
  padding: 1rem 0;
  text-align: center;
  border-radius: 0 0 6px 6px;
  margin-top: auto;
  font-size: 0.9rem;
}

/* Dashboard grid layout */
.dashboard-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}


/* Serverkaart styling */
.guild-card {
  background-color: var(--card-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-align: center;
  border: 3px solid transparent;
}

.guild-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-red);
}

.guild-card img {
  border-radius: 50%;
  width: 90px;
  height: 90px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.guild-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Status kleuren */
.guild-card.green-border {
  border-color: limegreen;
}
.guild-card.red-border {
  border-color: crimson;
}




/* Algemene knopstijl voor Dashboard, Logout en Login links */
a#dashboard-link, a[href*="logout"], a#login-link, #logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0.75rem 1.25rem;
  font-weight: bold;
  color: white;
  background: linear-gradient(45deg, var(--accent-red), #ff6b6b);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(230, 57, 71, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Hover effect voor de knop-links */
a#dashboard-link:hover, a[href*="logout"]:hover, a#login-link:hover, #logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(230, 57, 71, 0.6);
}

/* Styling van de button in de login link */
a#login-link button {
  background: none;
  border: none;
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
  padding: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}



/* User info container */
#user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-secondary);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.168);
  margin-bottom: 2rem;
  max-width: 400px;
}

/* Avatar styling */
#user-info .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-red);
}

/* Username styling */
#user-info span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
}