/* ======== BASIS ======== */
/* 1. Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Poppins:wght@600;700&display=swap');

/* 2. Root variabelen */
:root {
  /* Kleuren */
  --primary: #5c6ef8;
  --accent: #a96ff9;
  --gradient: linear-gradient(135deg, #a96ff9 0%, #5c6ef8 100%);
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --background: #000000;

  /* Typografie */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout & spacing */
  --max-width: 1200px;
  --padding: 1.5rem;
  --section-spacing: 6rem;
  --radius: 1rem;
  --transition: 0.3s ease-in-out;
  --shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

/* 3. Basis setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
}

/* 4. Typography */
h1, h2 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3, h4, h5, h6, p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* 5. Layout helpers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding);
}

section {
  padding: var(--section-spacing) var(--padding);
}

section + section {
  margin-top: 2rem;
}

/* 6. Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

/* CTA-knop met gradient */
.btn-cta {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(92, 110, 248, 0.25);
}

/* Secundaire knop */
.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* 7. Animaties */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ======== TOASTS ======== */
.toast-container {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 1em;
  z-index: 1100;
  width: auto;
  max-width: 90vw;
  padding: 0 1rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 1em 1.25em;
  border-radius: 16px;
  color: #fff;
  font-weight: 500;
  background: rgba(20, 20, 20, 0.75); /* semi-transparant donker */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  width: fit-content;
  max-width: 100%;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInSlideDown 0.5s ease-out forwards, fadeOutSlideUp 0.5s ease-in forwards 9.5s;
}

.toast i {
  font-size: 1.2rem;
}

.toast.success i {
  color: #4ade80; /* zacht groen */
}

.toast.error i {
  color: #f87171; /* zacht rood */
}

.toast-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  margin-left: auto;
  padding: 0 0.25em;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.toast-close:hover {
  opacity: 1;
}

@keyframes fadeInSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutSlideUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@media (max-width: 600px) {
  .toast-container {
    width: 100%;
    padding: 0 1rem;
    align-items: center;
  }

  .toast {
    max-width: 100%;
  }
}

/* Font Awesome basis voor pseudo-iconen */
.toast::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 0.75em;
  font-size: 1.25rem;
  display: inline-block;
}

/* Success icon: fa-circle-check */
.toast.success::before {
  content: "\f058";
  color: #4ade80;
}

/* Error icon: fa-circle-xmark */
.toast.error::before {
  content: "\f057";
  color: #f87171;
}

/* ======== GLOBAL MODAL STYLING ======== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #111111e6;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  color: white;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  position: relative;
  animation: modalFadeIn 0.3s ease;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.modal .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.modal .close-button:hover {
  opacity: 1;
}

@keyframes modalFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem;
  }
}


/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .header-container {
    display: none;
  }

  .mobile-header {
    display: flex;
  }
}

/* ======== UTIL ======== */
.hidden {
  display: none !important;
}
