/* style.css — Nordic Sage CV */

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

:root {
  --bg:            #f5f4f0;
  --text:          #1a1a1a;
  --text-body:     #555;
  --text-muted:    #888;
  --text-faint:    #aaa;
  --accent:        #3d7a68;
  --accent-light:  #e8f2ef;
  --accent-border: #b8d4c8;
  --border:        #ddd;
  --border-light:  #eee;
  --font:          system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Top bar ── */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  padding: 0.5rem 0;
}

.top-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bar-name {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.15s;
}

.bar-name.visible { opacity: 1; }

.bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Filter drawer drops down from top bar */
.filter-drawer {
  padding: 0.75rem 1.25rem 0.375rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
  border-top: 1px solid var(--accent-border);
  margin-top: 0.375rem;
  background: var(--accent-light);
  margin-left: -1.25rem;
  margin-right: -1.25rem;
}

/* ── Intro section ── */
.intro {
  padding: 2rem 0 1.75rem;
  border-bottom: 2px solid var(--text);
  margin-bottom: 0;
}

.intro-top {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.name {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.05;
}

.contact {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-top: 0.375rem;
}

.contact a {
  color: var(--text-faint);
  text-decoration: none;
}

.contact a:hover { color: var(--accent); }

.intro-photo-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: 1.5rem;
}

.photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.bio {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.75;
}

.bio p { margin-bottom: 0.75rem; }
.bio p:last-child { margin-bottom: 0; }

.client-intro p { margin-bottom: 0.75rem; }
.client-intro p:last-child { margin-bottom: 0; }

/* ── Language toggle ── */
.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  background: var(--bg);
}

.lang-btn {
  background: none;
  border: none;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.4;
}

.lang-btn.active {
  background: var(--text);
  color: var(--bg);
}

/* ── Client view banner ── */
.client-banner {
  margin-top: 0.75rem;
}

.client-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.client-intro { font-size: 0.875rem; color: #2d5a4a; line-height: 1.7; }

.client-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-pdf {
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
}

/* ── Section headings ── */
.section-heading {
  padding: 1.25rem 0 1rem;
}

.section-heading h2 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ── Education section ── */
.education {
  padding: 1.25rem 0 4rem;
  border-top: 2px solid var(--text);
}

.education h2 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.education ul { list-style: none; }

.education li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.125rem 0;
}


.filter-active-count {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.btn-filter {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s;
}

.btn-filter:hover,
.btn-filter.open { border-color: var(--text); color: var(--text); }

.filter-drawer {
  padding: 0.625rem 0 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.175rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.12s;
}

.tag-pill:hover { border-color: var(--accent); color: var(--accent); }

.tag-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-clear {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--text-faint);
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font);
  margin-left: auto;
}

.btn-clear:hover { color: var(--text-muted); }

/* ── Assignments ── */
.assignments { padding-bottom: 3rem; }

.assignment {
  border-bottom: 1px solid var(--border-light);
  padding: 1.125rem 0;
}

.assignment-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.125rem;
}

.assignment-meta {
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: 0.625rem;
}

.assignment-description {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.7;
}

.assignment-description p { margin-bottom: 0.75rem; }
.assignment-description p:last-child { margin-bottom: 0; }

.assignment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.625rem;
}

.assignment-tag {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  border: 1px solid var(--border);
  color: var(--text-faint);
  background: var(--bg);
}

.no-results {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.875rem;
}

/* ── View all bottom bar (client view) ── */
.view-all {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
  text-align: center;
}

.view-all a {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1.25rem;
  transition: border-color 0.15s;
}

.view-all a:hover { border-color: var(--text); }

/* ── Utility ── */
[hidden] { display: none !important; }
