/* ==========================================================================
   Scrum Flow Dashboard — styles.css
   Palet afgestemd op dashboard.js (Atlassian/Jira-tinten) met indigo accent.
   De generator-card en modal worden in de inline <style> van de pagina zelf
   gestyled; dit bestand levert base, header, hero, step-cards, buttons en tags.
   ========================================================================== */

:root {
  --indigo:        #4f46e5;
  --indigo-dark:   #4338ca;
  --indigo-soft:   #eef0ff;
  --coral:         #ff5630;
  --green:         #36b37e;

  --text:          #172b4d;
  --text-muted:    #6b778c;
  --border:        #dfe1e6;
  --surface:       #ffffff;
  --bg:            #f4f5f7;

  --radius:        18px;
  --radius-sm:     10px;
  --shadow:        0 1px 2px rgba(9, 30, 66, 0.08), 0 4px 16px rgba(9, 30, 66, 0.06);
  --maxw:          1080px;
}

/* --- Reset / base ------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--text); line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }

.section-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header ------------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--indigo); }
.logo em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.back-link:hover {
  text-decoration: none;
  color: var(--indigo);
  background: var(--indigo-soft);
}
.back-link svg { display: block; }

/* --- Hero --------------------------------------------------------------- */
.tool-hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(79, 70, 229, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 3rem;
}
.tool-hero-inner { max-width: 760px; }
.tool-hero-inner p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  background: var(--indigo-soft);
  color: var(--indigo-dark);
}
.section-tag.indigo-inv {
  background: var(--indigo);
  color: #fff;
}

/* --- Step cards --------------------------------------------------------- */
.tool-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-number {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.step-title { font-size: 1.3rem; font-weight: 700; margin: 0; }
.step-desc { color: var(--text-muted); margin: 0.15rem 0 0; font-size: 0.95rem; }

/* --- Recommendations / callouts ---------------------------------------- */
.recommendations { display: flex; flex-direction: column; gap: 0.75rem; }

.rec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.5;
}
.rec-item.indigo {
  background: var(--indigo-soft);
  border-color: rgba(79, 70, 229, 0.25);
}
.rec-icon { flex: 0 0 auto; font-size: 1.2rem; line-height: 1.4; }

/* --- Forms / labels ----------------------------------------------------- */
.config-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

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

.btn.ghost {
  background: transparent;
  color: var(--indigo);
  border-color: var(--border);
}
.btn.ghost:hover { background: var(--indigo-soft); border-color: var(--indigo); }

/* .indigo is reeds gedekt door de primary/ghost-varianten hierboven;
   behoud een fallback voor losse .btn.indigo zonder variant. */
.btn.indigo:not(.primary):not(.ghost) {
  background: var(--indigo);
  color: #fff;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 640px) {
  .logo em { display: none; }
  .step-card { padding: 1.4rem; }
  .tool-hero { padding: 2.5rem 0 2rem; }
}
