/* ============================================
   HOT GIRL SUMMER - Hoofdstijlen
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --pink:        #FF6B9D;
  --pink-light:  #FFB3CC;
  --peach:       #FFD4A3;
  --lavender:    #C4B5FD;
  --mint:        #A7F3D0;
  --yellow:      #FDE68A;
  --coral:       #FF8C69;
  --white:       #FFFAF7;
  --text-dark:   #2D1B33;
  --text-mid:    #6B4F72;
  --text-light:  #A07BAD;
  --card-bg:     rgba(255,255,255,0.82);
  --radius:      18px;
  --shadow:      0 8px 32px rgba(255,107,157,0.10);
  --shadow-hover:0 16px 48px rgba(255,107,157,0.22);
  --gradient:    linear-gradient(135deg, #FF6B9D 0%, #C4B5FD 50%, #FFB3CC 100%);
  --gradient-soft: linear-gradient(135deg, #FFF0F5 0%, #F5EEFF 50%, #FFF5E0 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--gradient-soft);
  color: var(--text-dark);
  min-height: 100vh;
  background-attachment: fixed;
}

/* Decorative blobs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #FF6B9D, #FFB3CC);
  top: -200px; right: -200px;
}
body::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #C4B5FD, #A7F3D0);
  bottom: -150px; left: -150px;
}

/* ── Typografie ── */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.page-wrap { min-height: 100vh; padding-bottom: 60px; }

/* ── Navigatie ── */
.navbar {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,107,157,0.15);
  position: sticky; top: 0; z-index: 100;
  padding: 0 20px;
}
.navbar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--pink-light);
  color: #b5004b;
}
.nav-links a.btn-nav {
  background: var(--gradient);
  color: white;
}
.nav-links a.btn-nav:hover { opacity: 0.88; color: white; }

/* ── Knoppen ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none;
  text-decoration: none; transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(255,107,157,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,157,0.45); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--pink);
  color: var(--pink);
}
.btn-outline:hover { background: var(--pink); color: white; }
.btn-ghost {
  background: rgba(255,107,157,0.1);
  color: var(--pink);
}
.btn-ghost:hover { background: rgba(255,107,157,0.2); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-danger { background: #ff4757; color: white; }
.btn-success { background: linear-gradient(135deg, #A7F3D0, #34d399); color: #065f46; }

/* ── Kaarten ── */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.9);
  overflow: hidden;
}
.card-body { padding: 28px; }
.card-header {
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255,107,157,0.1);
  display: flex; align-items: center; justify-content: space-between;
}

/* ── Hero sectie ── */
.hero {
  padding: 80px 20px 60px;
  text-align: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FFB3CC, #FDE68A);
  padding: 6px 20px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  color: #7C3AED; margin-bottom: 20px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.hero h1 { margin-bottom: 16px; }
.hero h1 em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem; color: var(--text-mid);
  max-width: 520px; margin: 0 auto 32px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Dashboard ── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
}
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.78rem; color: var(--text-light); font-weight: 500; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Voortgangsbalk */
.progress-wrap { margin: 16px 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-mid); margin-bottom: 6px; }
.progress-bar {
  height: 10px; border-radius: 10px;
  background: rgba(255,107,157,0.12);
  overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 10px;
  background: var(--gradient);
  transition: width 0.7s cubic-bezier(.4,0,.2,1);
}

/* ── Checklist ── */
.checklist-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-btn {
  padding: 6px 16px; border-radius: 50px; border: none;
  font-size: 0.82rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  background: rgba(255,255,255,0.7);
  color: var(--text-mid);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--gradient);
  color: white;
}

.checklist-item {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 10px;
  transition: all 0.25s;
  box-shadow: 0 2px 12px rgba(255,107,157,0.06);
  cursor: pointer;
}
.checklist-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.checklist-item.completed {
  opacity: 0.65;
  border-color: rgba(167,243,208,0.5);
  background: rgba(167,243,208,0.12);
}
.item-checkbox {
  width: 26px; height: 26px;
  border-radius: 50%; border: 2px solid var(--pink-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s;
  background: white;
}
.checklist-item.completed .item-checkbox {
  background: var(--gradient);
  border-color: transparent;
  color: white;
}
.item-emoji { font-size: 1.5rem; flex-shrink: 0; }
.item-info { flex: 1; min-width: 0; }
.item-title { font-weight: 600; font-size: 0.95rem; }
.item-desc { font-size: 0.8rem; color: var(--text-light); margin-top: 2px; }
.item-points {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}
.item-badge {
  font-size: 0.7rem; font-weight: 600;
  padding: 3px 10px; border-radius: 50px;
  background: rgba(196,181,253,0.25);
  color: #7C3AED;
}

/* ── Formulieren ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 0.85rem;
  font-weight: 600; color: var(--text-mid);
  margin-bottom: 6px;
}
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid rgba(255,107,157,0.2);
  border-radius: 12px;
  font-size: 0.95rem; font-family: 'Inter', sans-serif;
  background: rgba(255,255,255,0.85);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,107,157,0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Punten selector */
.points-select {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px;
}
.points-opt {
  padding: 8px 18px; border-radius: 50px;
  border: 2px solid rgba(255,107,157,0.2);
  background: white; cursor: pointer;
  font-weight: 600; font-size: 0.88rem;
  color: var(--text-mid); transition: all 0.2s;
}
.points-opt.selected, .points-opt:hover {
  background: var(--gradient); color: white; border-color: transparent;
}

/* ── Auth pagina's ── */
.auth-wrap {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 20px; position: relative; z-index: 1;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(255,107,157,0.18);
  border: 1px solid rgba(255,255,255,0.95);
  overflow: hidden;
}
.auth-header {
  padding: 36px 36px 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,107,157,0.08), rgba(196,181,253,0.08));
}
.auth-logo { font-size: 2.4rem; margin-bottom: 12px; }
.auth-body { padding: 28px 36px 36px; }

/* ── Leaderboard ── */
.leaderboard-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: 14px;
  margin-bottom: 8px;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 12px rgba(255,107,157,0.06);
  transition: all 0.2s;
}
.leaderboard-item:hover { box-shadow: var(--shadow); }
.leaderboard-item.me { border-color: var(--pink-light); background: rgba(255,179,204,0.12); }
.lb-rank {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.88rem;
  background: rgba(255,107,157,0.1); color: var(--text-mid);
  flex-shrink: 0;
}
.lb-rank.gold   { background: linear-gradient(135deg, #FFD700, #FFA500); color: white; }
.lb-rank.silver { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: white; }
.lb-rank.bronze { background: linear-gradient(135deg, #CD7F32, #A0522D); color: white; }
.lb-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: white;
  flex-shrink: 0;
}
.lb-name { flex: 1; font-weight: 600; }
.lb-score {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lb-pts { font-size: 0.75rem; color: var(--text-light); }

/* ── Meldingen ── */
.alert {
  padding: 14px 18px; border-radius: 12px;
  font-size: 0.9rem; font-weight: 500;
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.alert-error   { background: #ffe4e6; color: #9f1239; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-info    { background: rgba(196,181,253,0.25); color: #4C1D95; }

/* ── Toast notificaties ── */
.toast-container { position: fixed; bottom: 28px; right: 28px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-left: 4px solid var(--pink);
  font-weight: 500; font-size: 0.9rem;
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  max-width: 320px;
}
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(10px); } }

/* ── Modal ── */
.modal-bg {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(45,27,51,0.45);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-bg.open { display: flex; }
.modal-card {
  background: white;
  border-radius: 24px;
  width: 100%; max-width: 480px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.2);
  animation: popIn 0.25s ease;
}
@keyframes popIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { padding: 24px 28px 16px; border-bottom: 1px solid rgba(255,107,157,0.1); display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 24px 28px 28px; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--text-light); }

/* ── Secties ── */
.section-title {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.section-title h2 { font-size: 1.3rem; }

/* ── Emoji grid ── */
.emoji-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.emoji-opt {
  width: 38px; height: 38px; border-radius: 10px;
  border: 2px solid transparent; background: rgba(255,107,157,0.08);
  cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.emoji-opt.selected, .emoji-opt:hover { border-color: var(--pink); background: rgba(255,107,157,0.15); }

/* ── Lege staat ── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-light); }
.empty-state .big-emoji { font-size: 3.5rem; display: block; margin-bottom: 12px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .auth-body, .auth-header { padding-left: 24px; padding-right: 24px; }
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
  .nav-links a:not(.btn-nav) { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 50px 16px 40px; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--pink-light); border-radius: 3px; }

/* ── Hamburger menu (mobiel) ── */
.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text-mid); font-size: 1.4rem; }
@media (max-width: 768px) { .hamburger { display: block; } }

.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 150;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.3rem; font-weight: 600;
  color: var(--text-dark); text-decoration: none;
  font-family: 'Playfair Display', serif;
}
.mobile-menu-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-mid);
}

/* ── Extra fun stijlen ── */
.cat-section { transition: all 0.2s; }

/* Straf sectie rood accent */
[data-section="straf"] .checklist-item {
  border-color: rgba(255,71,87,0.15);
}

/* Countdown banner */
.countdown-bar {
  background: linear-gradient(135deg, #FF6B9D, #C4B5FD);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.countdown-bar span { opacity: 0.85; margin: 0 8px; }

/* Rules sectie */
.rules-card {
  background: linear-gradient(135deg, rgba(255,107,157,0.08), rgba(196,181,253,0.1));
  border: 1px solid rgba(255,107,157,0.2);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
