/**
 * SetupShell - Gedeelde stijlen
 * Glassmorphism redesign met moderne Linux-stijl
 */


/* ══════════════════════════════════════════════
   Reset
   ══════════════════════════════════════════════ */

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

/* ══════════════════════════════════════════════
   Kleurenvariabelen - Donker thema (standaard)
   ══════════════════════════════════════════════ */

:root {
  --bg-primary: #07090d;
  --bg-secondary: rgba(14, 17, 24, 0.85);
  --bg-card: rgba(18, 22, 32, 0.65);
  --bg-card-hover: rgba(26, 32, 46, 0.7);
  --bg-elevated: rgba(28, 34, 50, 0.8);
  --bg-glass: rgba(18, 22, 32, 0.45);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(108, 138, 236, 0.3);
  --text-primary: #e8edf4;
  --text-secondary: #8b95a8;
  --text-muted: #5a6478;
  --accent: #6c8aec;
  --accent-bright: #8da6ff;
  --accent-glow: rgba(108, 138, 236, 0.3);
  --accent-soft: rgba(108, 138, 236, 0.1);
  --green: #3fb950;
  --green-glow: rgba(63, 185, 80, 0.2);
  --orange: #ff9f4d;
  --red: #ff5757;
  --purple: #a78bfa;
  --ubuntu: #E95420;
  --mint: #87CF3E;
  --popos: #48B9C7;
  --fedora: #51A2DA;
  --arch: #1793D1;
  --manjaro: #35BF5C;
  --opensuse: #73BA25;
  --debian: #A80030;
  --snap: #E95420;
  --flatpak: #4A90D9;
  --nix: #7EBAE4;
  --brew: #FBB040;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --blur: blur(20px) saturate(180%);
  --blur-heavy: blur(40px) saturate(200%);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 60px rgba(108, 138, 236, 0.12);
  --shadow-glow-strong: 0 0 80px rgba(108, 138, 236, 0.2);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Licht thema kleuren */
[data-theme="light"] {
  --bg-primary: #f0f2f7;
  --bg-secondary: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-card-hover: rgba(243, 245, 250, 0.8);
  --bg-elevated: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.5);
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
  --border-glow: rgba(74, 108, 247, 0.25);
  --text-primary: #1a1d28;
  --text-secondary: #4a5168;
  --text-muted: #8b93a8;
  --accent: #4a6cf7;
  --accent-bright: #5a7df8;
  --accent-glow: rgba(74, 108, 247, 0.2);
  --accent-soft: rgba(74, 108, 247, 0.08);
  --green: #1a7f37;
  --green-glow: rgba(26, 127, 55, 0.12);
  --orange: #d97706;
  --red: #cf222e;
  --purple: #7c3aed;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 60px rgba(74, 108, 247, 0.08);
  --shadow-glow-strong: 0 0 80px rgba(74, 108, 247, 0.12);
}

/* ══════════════════════════════════════════════
   Basis elementen
   ══════════════════════════════════════════════ */

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Achtergrond mesh met glows */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 5%, rgba(108, 138, 236, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(167, 139, 250, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 50% 90%, rgba(63, 185, 80, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 60% 50% at 15% 5%, rgba(74, 108, 247, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(124, 58, 237, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 50% 90%, rgba(26, 127, 55, 0.03) 0%, transparent 60%);
}

/* Grid achtergrond patroon */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(108, 138, 236, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 138, 236, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 0%, transparent 70%);
}

[data-theme="light"] body::after {
  background-image:
    linear-gradient(rgba(74, 108, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 108, 247, 0.04) 1px, transparent 1px);
}

/* ══════════════════════════════════════════════
   Navigatiebalk - Glassmorphism
   ══════════════════════════════════════════════ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  backdrop-filter: var(--blur-heavy);
  -webkit-backdrop-filter: var(--blur-heavy);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--transition);
}

.logo:hover { transform: scale(1.02); }

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(108, 138, 236, 0.25);
  transition: box-shadow var(--transition), transform var(--transition);
}

.logo:hover .logo-icon {
  box-shadow: 0 4px 24px rgba(108, 138, 236, 0.4);
}

.logo-icon svg { color: white; width: 20px; height: 20px; }

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-slogan {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Thema wisselknop */
.theme-toggle {
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
  flex-shrink: 0;
  margin-left: 6px;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--border-glow);
  color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-bounce);
}

/* Navigatie links */
.header-right a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  position: relative;
}

.header-right a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width var(--transition);
}

.header-right a:hover { color: var(--text-primary); }
.header-right a:hover::after { width: 60%; }
.header-right a.active { color: var(--accent); }
.header-right a.active::after { width: 60%; background: var(--accent); }

/* ══════════════════════════════════════════════
   Skip to content (Toegankelijkheid)
   ══════════════════════════════════════════════ */

.skip-to-content {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-to-content:focus { top: 16px; }

/* ══════════════════════════════════════════════
   Mobiel hamburger menu
   ══════════════════════════════════════════════ */

.menu-toggle {
  display: none;
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all var(--transition);
}

.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle:hover { border-color: var(--accent); color: var(--accent); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--bg-secondary);
  backdrop-filter: var(--blur-heavy);
  -webkit-backdrop-filter: var(--blur-heavy);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px 16px;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 2px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}

.mobile-menu a:hover {
  background: var(--accent-soft);
  transform: translateX(4px);
}

/* ══════════════════════════════════════════════
   Terug naar boven knop
   ══════════════════════════════════════════════ */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 98;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: all var(--transition);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-2px) scale(1.05);
}

.back-to-top svg { width: 18px; height: 18px; }

/* ══════════════════════════════════════════════
   Footer - Glassmorphism
   ══════════════════════════════════════════════ */

footer {
  text-align: center;
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  position: relative;
  z-index: 1;
  background: var(--bg-glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
footer a:hover { color: var(--accent-bright); text-decoration: underline; }

.footer-inner { max-width: 800px; margin: 0 auto; }

.footer-brand {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.footer-brand strong {
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc { margin-bottom: 18px; line-height: 1.8; }

.footer-nav {
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.76rem;
}

.footer-disclaimer { opacity: 0.5; font-size: 0.72rem; }
.footer-copyright { opacity: 0.35; font-size: 0.68rem; margin-top: 10px; }

/* ══════════════════════════════════════════════
   Scrollbar
   ══════════════════════════════════════════════ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

::selection { background: var(--accent); color: white; }

/* ══════════════════════════════════════════════
   Globale animaties
   ══════════════════════════════════════════════ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.6; }
}

/* ══════════════════════════════════════════════
   Responsief ontwerp
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
  .header-inner { padding: 10px 18px; }
  .logo { gap: 10px; }
  .logo-icon { width: 34px; height: 34px; border-radius: 10px; }
  .logo-icon svg { width: 17px; height: 17px; }
  .logo-name { font-size: 1.15rem; }
  .logo-slogan { font-size: 0.55rem; }
  .header-links { gap: 2px; }
  .header-right a { padding: 6px 10px; font-size: 0.8rem; }
  .theme-toggle { width: 36px; height: 36px; border-radius: 10px; }
  .menu-toggle { display: flex; }
  .header-links { display: none; }
}
