/* styles.css — Gedeelde stylesheet voor de Vraagstelling-applicatie */
/* Stijl conform Innovatieradar Stylebook */

/* ===== Google Fonts: Inter ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== Design Tokens ===== */
:root {
  --primary:          #1e3a5f;
  --primary-light:    #2d5a8e;
  --primary-dark:     #152a45;
  --primary-50:       #f0f5fa;
  --primary-100:      #dae5f2;
  --primary-200:      #b5cce6;
  --surface:          #f8fafc;
  --border:           #e2e8f0;
  --success:          #16a34a;
  --success-light:    #dcfce7;
  --warning:          #d97706;
  --warning-light:    #fef3c7;
  --danger:           #dc2626;
  --danger-light:     #fee2e2;
  --text-primary:     #1a202c;
  --text-secondary:   #64748b;
  --text-tertiary:    #94a3b8;
  --text-dark:        #1e293b;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

.card a[href]:not(.btn) {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Navbar ===== */
.navbar {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 150ms;
  text-decoration: none;
}

.nav-link:hover {
  color: #fff;
}

/* ===== Container ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

/* ===== Page Header ===== */
.page-header {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 2rem 1.5rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-header p {
  opacity: 0.85;
  font-size: 1rem;
  font-weight: 400;
}

/* ===== Cards ===== */
.card {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', inherit;
  border: none;
  text-align: center;
  transition: background-color 150ms, color 150ms, border-color 150ms;
  line-height: 1.5;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-50);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  background: #15803d;
}

/* ===== Badges ===== */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-red {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-orange {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-green {
  background: var(--success-light);
  color: var(--success);
}

.badge-primary {
  background: var(--primary-100);
  color: var(--primary);
}

/* ===== Status Dots ===== */
.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.status-red {
  background: var(--danger);
}

.status-orange {
  background: var(--warning);
}

.status-green {
  background: var(--success);
}

/* ===== Star Rating ===== */
.star-rating {
  display: inline-flex;
  gap: 2px;
  font-size: 1.1rem;
}

.star-filled {
  color: #f59e0b;
}

.star-empty {
  color: var(--border);
}

/* ===== Progress Bar ===== */
.progress-bar {
  background: var(--border);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  width: 100%;
}

.progress-fill {
  background: var(--primary);
  height: 100%;
  border-radius: 8px;
  transition: width 0.4s ease;
}

/* ===== Dimension Tiles & Grid ===== */
.dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.dimension-tile {
  min-height: 120px;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  background: #fff;
  transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}

.dimension-tile:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.12);
  transform: translateY(-2px);
}

/* ===== Question Box ===== */
.question-box {
  font-size: 1.1rem;
  background: var(--primary-50);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  line-height: 1.7;
  color: var(--text-dark);
}

/* ===== Question Part Highlights ===== */
.highlight-actor {
  background: #fef9c3;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.highlight-verb {
  background: var(--primary-100);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.highlight-value {
  background: var(--success-light);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

/* ===== Comparison Grid ===== */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ===== Input Group ===== */
.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.input-field {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: 'Inter', inherit;
  font-size: 0.9rem;
  transition: border-color 150ms, box-shadow 150ms;
  resize: vertical;
  color: var(--text-primary);
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

/* ===== Feedback Panel ===== */
.feedback-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: 8px;
}

/* ===== Signal Words ===== */
.signal-word {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0.15rem;
}

.signal-eindig {
  background: var(--danger-light);
  color: var(--danger);
}

.signal-oneindig {
  background: var(--success-light);
  color: var(--success);
}

/* ===== Check Item ===== */
.check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

/* ===== Module Intro ===== */
.module-intro {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== Drag & Sort ===== */
.drag-handle {
  cursor: grab;
  color: var(--text-tertiary);
}

.sortable-card {
  cursor: grab;
  transition: box-shadow 150ms;
}

.sortable-card:hover {
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.1);
}

.sortable-ghost {
  opacity: 0.4;
}

/* ===== Utilities ===== */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-secondary);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
  display: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .dimension-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .navbar-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .container {
    padding: 1rem;
  }
}
