/* =========================================
   Mulder Security Consulting – Workshop CSS
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Mono:wght@400;500&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg:          #0d0f12;
  --surface:     #151820;
  --border:      #242830;
  --accent:      #7b38b2;
  --accent-dim:  #4e3662;
  --text:        #ffffff;
  --text-muted:  #d0d0d0;
  --red:         #e05252;
}

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

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 3rem 2rem;
  border-bottom: 1px solid var(--border);
}

.logo-mark {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent-dim);
  padding: 0.45rem 0.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.header-text h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.2;
}

.tagline {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── Main ── */
main {
  flex: 1;
  padding: 3rem 3rem 2rem;
  max-width: 860px;
}

.intro p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  border-left: 2px solid var(--accent-dim);
  padding-left: 1rem;
}

/* ── Workshop list ── */
.workshop-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workshop-item {
  border: 1px solid var(--border);
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  transition: background 0.2s;
}

.workshop-item:first-child {
  border-top: 1px solid var(--border);
}

/* disabled items */
.workshop-item.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.workshop-label {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.status-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
}

/* active item */
.workshop-item.active {
  border-color: var(--accent-dim);
  background: #1a1b14;
}

.workshop-item.active:hover {
  background: #1f201a;
}

.workshop-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-decoration: none;
  color: var(--text);
}

.workshop-link .workshop-label {
  color: var(--accent);
}

.arrow {
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.workshop-item.active:hover .arrow {
  transform: translateX(4px);
}

/* ── Assignments list (ai_security page) ── */
.assignments-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.assignment-item {
  border: 1px solid var(--border);
  border-top: none;
}

.assignment-item:first-child {
  border-top: 1px solid var(--border);
}

.assignment-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.2rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
}

.assignment-link:hover {
  background: var(--surface);
  color: var(--accent);
}

.assignment-link:hover .assignment-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.assignment-number {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  width: 2rem;
  flex-shrink: 0;
}

.assignment-info {
  flex: 1;
}

.assignment-title {
  font-size: 0.95rem;
  font-weight: 400;
}

.assignment-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.assignment-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  transition: transform 0.2s, color 0.2s;
}

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

/* ── Footer ── */
footer {
  padding: 1.5rem 3rem;
  border-top: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
