@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700&display=swap');

:root {
  /* Brand palette */
  --brand-blue: #6EC1E4;   /* primary */
  --brand-gray: #54595F;   /* anthracite */
  --brand-light: #F1F1F1;  /* light background */
  --brand-pink: #E50099;   /* accent */

  /* Light base */
  --bg: var(--brand-light);
  --card: #ffffff;
  --text: #2b2f33; /* slightly darker than brand-gray for contrast */
  --muted: #6d737a; /* derived from brand-gray */
  --border: #e4e7ea;

  /* Accents (primary blue, secondary magenta) */
  --accent: var(--brand-blue);
  --accent-ink: #3b8cb0;  /* darker for focus ring */
  --accent-2: var(--brand-pink);

  /* State colors */
  --ok: #1f9d55;
  --warn: #f59e0b;
  --error: #dc2626;
  --full: #94a3b8;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.06), 0 1px 1px rgba(2, 6, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(2, 6, 23, 0.08);
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg) url('/images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Inter', system-ui, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, .display-1, .display-2, .display-3, .display-4, .display-5 {
  font-family: 'Poppins', 'Inter', system-ui, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: -0.01em;
}

.container { max-width: 1040px; margin: 40px auto; padding: 0 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0 24px;
  box-shadow: var(--shadow-sm);
}

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 14px; color: var(--muted); }

input, select, textarea, .form-control, .form-select {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus, select:focus, textarea:focus, .form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(110, 193, 228, 0.22);
}

/* Buttons (also overriding Bootstrap) */
button, .btn {
  border-radius: 10px;
  font-weight: 600;
}

.btn-primary, button[type="submit"], button.primary {
  background: linear-gradient(180deg, #86ceea 0%, var(--accent) 100%);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(110, 193, 228, 0.35);
}
.btn-primary:hover, button[type="submit"]:hover, button.primary:hover {
  background: linear-gradient(180deg, #5fb4d2 0%, #3b8cb0 100%);
  border-color: #3b8cb0;
}
.btn-outline-primary {
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline-primary:hover {
  background: rgba(110, 193, 228, 0.12);
}
/* Ensure filled on focus/active */
.btn-outline-primary:active, .btn-outline-primary:focus {
  background: rgba(110,193,228,0.18);
  color: var(--accent);
}

/* Links */
a { color: var(--accent); text-decoration-color: rgba(110, 193, 228, 0.35); }
a:hover { text-decoration-color: rgba(110, 193, 228, 0.6); }

/* Badges & messages */
.badge { padding: 6px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); }
.badge-primary, .text-bg-primary { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; }
.badge.ok { background: rgba(22,163,74,.12); border-color: rgba(22,163,74,.35); color: #166534; }
.badge.full { background: rgba(148,163,184,.15); color: #334155; }
.msg { margin-top: 12px; padding: 10px 12px; border-radius: 10px; }
.msg.ok { background: rgba(22,163,74,.12); border: 1px solid rgba(22,163,74,.35); color: #166534; }
.msg.error { background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.35); color: #7f1d1d; }

.title { font-weight: 700; }
.muted { color: var(--muted); font-size: 14px; margin-top: 6px; }

.list .date-group { margin-bottom: 16px; }
.list .row { display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:1px dashed var(--border); gap:12px; }
.list .row:last-child { border-bottom: none; }

/* Hero and feature accents */
.hero {
  background: radial-gradient(1200px 400px at 10% -10%, rgba(229,0,153,0.10), transparent 50%),
              radial-gradient(1200px 400px at 90% -10%, rgba(110,193,228,0.12), transparent 50%),
              linear-gradient(180deg, #f6f8fa 0%, #ffffff 100%);
}
.home-hero {
  position: relative;
  background-image: linear-gradient(rgba(16,24,40,.55), rgba(16,24,40,.55)), url('/images/bg-header.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}
.home-hero h1 { text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.home-hero .lead { color: #eef2f6; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.home-hero .card { background: rgba(255,255,255,.9); }
.home-hero .btn-outline-primary { color:#fff; border-color: rgba(255,255,255,.8); }
.home-hero .btn-outline-primary:hover { background: rgba(255,255,255,.12); border-color:#fff; }
.feature-icon { background: rgba(110,193,228,0.12); color: var(--accent); }

/* Images */
img { border-radius: 10px; }

/* =============================
   Glint-inspired landing theme
   ============================= */

/* Accent swap (neon green) when desired */
.theme-glint { --accent: var(--brand-blue); --accent-ink: var(--accent-ink); }

/* Transparent navbar over hero */
.navbar-landing {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent !important;
  border: 0 !important;
  z-index: 20;
}
.navbar-landing .navbar-brand,
.navbar-landing .nav-link { color: #e5e7eb !important; }
.navbar-landing .nav-link:hover { color: #ffffff !important; }

/* Dark hero with soft neon glows and crisp type */
.hero-glint {
  position: relative;
  color: #e5e7eb;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: radial-gradient(800px 300px at 10% -20%, rgba(110,193,228,0.18), transparent 55%),
              radial-gradient(900px 320px at 90% -20%, rgba(229,0,153,0.12), transparent 60%),
              linear-gradient(180deg, #0c0c0f 0%, #0a0a0d 100%);
  overflow: hidden;
}
.hero-glint::after {
  content: "";
  position: absolute; inset: -2px;
  background: radial-gradient(1200px 500px at 50% -30%, rgba(255,255,255,0.05), transparent 60%);
  pointer-events: none;
}
.hero-glint h1, .hero-glint .display-5 {
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}
.hero-glint p.lead { color: #cbd5e1; }
.hero-glint .btn-primary {
  background: linear-gradient(180deg, #86ceea 0%, var(--accent) 100%);
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(110,193,228,.35);
}
.hero-glint .btn-primary:hover { background: linear-gradient(180deg, #5fb4d2 0%, #3b8cb0 100%); border-color: #3b8cb0; }
.hero-glint .btn-outline-primary { color: #ffffff; border-color: rgba(255,255,255,.7); }
.hero-glint .btn-outline-primary:hover { background: rgba(255,255,255,.08); border-color: #ffffff; }

/* Ensure image background wins when both hero-glint and home-hero are present */
.hero-glint.home-hero {
  background: linear-gradient(rgba(16,24,40,.55), rgba(16,24,40,.55)), url('/images/bg-header.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}

/* Contact page hero image */
.hero-glint.contact-hero {
  background: linear-gradient(rgba(16,24,40,.55), rgba(16,24,40,.55)), url('/images/contact.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}
/* Slightly translucent cards on contact hero */
.contact-hero .card { background: rgba(255,255,255,.8); color: var(--text); }
/* Ensure left-card text colors are uniform (override hero glint whites) */
.contact-hero .card h1,
.contact-hero .card h2,
.contact-hero .card p,
.contact-hero .card .lead { color: var(--text); }

/* Section headers styling similar to Glint vibe */
.section-title { text-transform: uppercase; letter-spacing: .18em; font-weight: 600; color: #0f172a; }
.section-kicker { color: var(--accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }

/* Workshop detail page */
.ws-info { display:block; }
.ws-info .lead { color: var(--muted); }
.ws-days { display:grid; gap:12px; }
.ws-date { padding:12px 0; border-bottom:1px solid var(--border); }
.ws-date h3 { font-size: 18px; margin: 0 0 8px; }
.time-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px dashed var(--border); }
.time-row:last-child { border-bottom: 0; }
.ws-meta { color: var(--muted); font-size: 14px; }

/* Higher contrast variant for forms */
.form-contrast .card { border-color: #cbd5e1; }
.form-contrast .form-control,
.form-contrast .form-select,
.form-contrast input,
.form-contrast select,
.form-contrast textarea { border-color: #cbd5e1; background: #ffffff; }
.form-contrast label { color:#475569; }

/* Availability info styles */
.avail-ok { color:#166534; }
.avail-bad { color:#7f1d1d; }

/* Sidebar workshop list (inschrijven) */
#workshopList li { margin-bottom: 6px; }
#workshopList a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--accent);
  transition: background .15s ease, color .15s ease, transform .05s ease;
}
#workshopList a:hover {
  background: rgba(110,193,228,0.12);
  text-decoration: none;
}
#workshopList a:active { transform: translateY(1px); }

