:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #5f6b7a;
  --accent: #3b82f6;
  --accent-2: #a855f7;
  --border: #e5e7eb;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px circle at 15% 20%, rgba(59, 130, 246, 0.18), transparent 50%),
    radial-gradient(850px circle at 80% 0%, rgba(168, 85, 247, 0.16), transparent 50%),
    radial-gradient(700px circle at 70% 80%, rgba(16, 185, 129, 0.12), transparent 45%),
    var(--bg);
  animation: float 18s ease-in-out infinite alternate;
  filter: saturate(120%);
}

@keyframes float {
  from { transform: translateY(0px) scale(1); }
  to { transform: translateY(12px) scale(1.01); }
}

header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(247, 249, 252, 0.85);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  z-index: 20;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

.brand img {
  height: 36px;
  width: auto;
  border-radius: 10px;
  box-shadow: none;
  background: transparent;
  mix-blend-mode: multiply;
}

.brand span {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.nav-link:hover {
  background: rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 6px;
  animation: fadeIn 160ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-item:hover .dropdown {
  display: flex;
}

.dropdown a {
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
}

.dropdown a:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--text);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -60px;
  background:
    radial-gradient(600px circle at 20% 0%, rgba(59, 130, 246, 0.12), transparent 40%),
    radial-gradient(700px circle at 90% 10%, rgba(168, 85, 247, 0.14), transparent 40%);
  opacity: 0.9;
  z-index: -1;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.6px;
}

.hero p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pill strong {
  color: var(--text);
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.14);
}

.sections {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.apv-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.apv-sections .card {
  width: 100%;
}

.apv-sections ul {
  padding-left: 20px;
}

.apv-sections ul ul {
  padding-left: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(59, 130, 246, 0.14);
}

.card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.card th,
.card td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.card th {
  font-weight: 700;
  color: var(--text);
  background: rgba(59, 130, 246, 0.05);
}

.card tr:last-child td {
  border-bottom: none;
}

.card h2, .card h3 {
  margin: 0;
  letter-spacing: -0.3px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

form {
  display: grid;
  gap: 10px;
}

label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  display: grid;
  gap: 4px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fdfefe;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: border var(--transition), box-shadow var(--transition), transform var(--transition);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

button {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.24);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(59, 130, 246, 0.28);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status {
  font-size: 14px;
  color: var(--muted);
  min-height: 20px;
}

.status.success { color: #16a34a; }
.status.error { color: #dc2626; }

footer {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-buttons a {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cta-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.18);
}

@media (max-width: 800px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }
  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 12px;
  }
  .nav-item:hover .dropdown {
    display: flex;
  }
}

/* Discord Widget Styles */
.discord-widget {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
  box-shadow: 0 8px 32px rgba(88, 101, 242, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.discord-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(88, 101, 242, 0.3);
}

.discord-widget-loading {
  padding: 60px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.discord-widget-header {
  background: rgba(0, 0, 0, 0.2);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.discord-widget-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discord-logo {
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #5865f2;
  font-size: 18px;
}

.discord-widget-title {
  color: white;
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}

.discord-widget-members {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.discord-widget-members::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #57f287;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(87, 242, 135, 0.6);
}

.discord-widget-content {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.discord-widget-channels {
  margin-bottom: 24px;
}

.discord-widget-section-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin-bottom: 4px;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}

.discord-channel:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.discord-channel-icon {
  font-size: 16px;
  opacity: 0.8;
}

.discord-widget-members-list {
  display: grid;
  gap: 12px;
}

.discord-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}

.discord-member:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.discord-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.discord-member-status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.3);
}

.discord-member-status.online {
  background: #57f287;
  box-shadow: 0 0 8px rgba(87, 242, 135, 0.6);
}

.discord-member-status.idle {
  background: #fee75c;
  box-shadow: 0 0 8px rgba(254, 231, 92, 0.6);
}

.discord-member-status.dnd {
  background: #ed4245;
  box-shadow: 0 0 8px rgba(237, 66, 69, 0.6);
}

.discord-member-info {
  flex: 1;
  min-width: 0;
}

.discord-member-name {
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord-member-game {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord-widget-footer {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.discord-join-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  color: #5865f2;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.discord-join-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.discord-widget-error {
  padding: 40px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.discord-widget-error p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* Scrollbar styling voor Discord widget */
.discord-widget-content::-webkit-scrollbar {
  width: 8px;
}

.discord-widget-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.discord-widget-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.discord-widget-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

