/* Student Board — layout (tokens: tokens.css, components: design-system.css, spec: /DESIGN.md) */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300..800&family=Geist+Mono:wght@400..700&display=swap");
@import url("./tokens.css");
@import url("./design-system.css");
@import url("./nav-float.css");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--ds-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* —— Global header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(250, 250, 250, 0.85);
  border-bottom: 1px solid var(--ds-hairline);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.site-logo {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--ds-link);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  font-weight: 500;
}

.site-header__actions .btn-ghost {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  color: var(--text);
  text-decoration: none;
}

.site-header__actions .btn-ghost:hover {
  border-color: var(--ds-ink);
  text-decoration: none;
}

/* —— Compact header (shared/site-menu.js) —— */
.site-menu {
  display: none;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--pf-linea, var(--ds-hairline));
  border-radius: var(--ds-radius-sm);
  background: var(--pf-tarjeta, var(--ds-canvas-elevated));
  color: var(--pf-texto, var(--ds-ink));
  font: 500 14px/20px var(--ds-font-sans);
  cursor: pointer;
}

.site-menu:hover {
  border-color: currentColor;
}

.site-menu:focus-visible,
.site-header.is-compact .site-nav a:focus-visible {
  outline: 2px solid var(--ds-link);
  outline-offset: 2px;
}

.site-header.is-compact .site-menu {
  display: inline-block;
}

.site-header.is-compact :is(.site-header__inner, .bd-header__inner) {
  flex-wrap: nowrap;
}

.site-header.is-compact .site-logo {
  white-space: nowrap;
}

.site-header.is-compact .site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header.is-compact .site-header__actions > * {
  white-space: nowrap;
}

.site-header.is-compact nav {
  display: none;
}

/* Drops over the page, so opening it never shifts what you are reading */
.site-header.is-compact.is-open nav {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 66px);
  overflow-y: auto;
  padding: 8px 24px 16px;
  border-bottom: 1px solid var(--pf-linea, var(--ds-hairline));
  background: var(--pf-tarjeta, var(--ds-canvas));
  box-shadow: 0 16px 24px -16px rgba(0, 0, 0, 0.18);
}

.site-header.is-compact .site-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 0 16px;
}

.site-header.is-compact .site-nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  line-height: 24px;
}

.site-header.is-compact nav [data-theme-toggle] {
  min-height: 40px;
  margin-top: 8px;
}

.site-header.is-compact .site-header__actions .btn-ghost {
  padding: 6px 14px;
  line-height: 20px;
}

/* —— Placeholder pages —— */
.page-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.page-main h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin: 0 0 12px;
}

.page-main .lede {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 32px;
}

.placeholder-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--muted);
}

/* —— Hire me board —— */
.hire-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 8px;
}

.hire-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  margin: 0 0 8px;
}

.hire-hero p {
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

.hire-toolbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hire-search {
  flex: 1 1 220px;
  min-width: 180px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  font: inherit;
}

.hire-filter {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}

.hire-count {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 8px;
  color: var(--muted);
  font-size: 14px;
}

.hire-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.student-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, transform 0.15s;
}

.student-card:hover {
  border-color: rgba(155, 135, 245, 0.35);
  transform: translateY(-2px);
}

.student-card__who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
}

.student-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.student-card .meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.student-card .focus {
  margin: 4px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.student-card .skills {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.student-card .avail {
  margin: 4px 0 0;
  font-size: 13px;
}

.student-card .avail--open {
  color: var(--success);
}

.student-card__link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.student-card__link:hover {
  text-decoration: underline;
}

/* —— Resume profile (Resumterics-style) —— */
.profile-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

.profile-sidebar {
  position: sticky;
  top: 80px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1;
  max-width: 220px;
  margin: 0 auto 16px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #2a2a36, #1a1a22);
  display: grid;
  place-items: center;
  font-size: 56px;
  font-weight: 300;
  color: var(--accent);
}

.profile-photo--img {
  padding: 0;
  overflow: hidden;
  background: var(--ds-hairline-soft, #eee);
}

.profile-photo--img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-sidebar h1 {
  margin: 0 0 10px;
  font-size: 22px;
}

.profile-roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.profile-roles span {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
}

.profile-contact {
  text-align: left;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.profile-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
}

.profile-contact strong {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

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

.profile-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

.profile-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.profile-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.profile-main {
  min-width: 0;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  margin-bottom: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}

.profile-tabs a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.profile-tabs a:hover {
  color: var(--text);
  text-decoration: none;
}

.profile-tabs a.is-active {
  background: var(--accent-dim);
  color: var(--accent);
}

.profile-panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.profile-panel h2 {
  margin: 0 0 16px;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-panel h2::before {
  content: "";
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.profile-panel p {
  color: var(--muted);
  margin: 0 0 12px;
}

.profile-panel p:last-child {
  margin-bottom: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 24px;
  color: var(--text);
}

.stat-card span {
  font-size: 13px;
  color: var(--muted);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.skill-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
}

.skill-tile h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.skill-tile p {
  margin: 0;
  font-size: 13px;
}

.timeline-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}

.timeline-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.timeline-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.timeline-item .when {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.timeline-item ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.profile-back {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 0;
}

.profile-back a {
  font-size: 14px;
  color: var(--muted);
}

.sample-banner {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 8px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--card-border);
}

/* —— Login —— */
.login-wrap {
  max-width: 440px;
  margin: 48px auto;
  padding: 0 24px 80px;
}

.login-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
}

.login-card .hint {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.login-card label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.login-card input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  margin-bottom: 16px;
}

.login-card .btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #0c0c0f;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.login-card .btn-primary:hover {
  filter: brightness(1.05);
}

.role-grid {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.role-grid h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 8px;
}

.role-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.role-tile strong {
  display: block;
  margin-bottom: 4px;
}

.role-tile p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.role-tile a {
  font-size: 13px;
  font-weight: 500;
}

/* —— App dashboards (prototype) —— */
.app-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.app-main h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.app-badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 16px;
}

.app-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.app-action {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.app-action:hover {
  border-color: rgba(155, 135, 245, 0.35);
  text-decoration: none;
}

.app-action span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.app-action.is-locked {
  opacity: 0.45;
  pointer-events: none;
}

.account-banner {
  max-width: var(--max);
  margin: 16px auto 0;
  padding: 14px 16px;
  border-radius: var(--ds-radius-md);
  border: 1px solid var(--ds-warning);
  background: var(--ds-warning-soft);
  color: var(--ds-warning-deep);
}

.account-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.account-banner a {
  color: inherit;
  font-weight: 600;
}

.account-banner.is-ok {
  border-color: var(--ds-link);
  background: var(--ds-link-soft);
  color: var(--ds-link-deep);
}

.account-banner.is-declined {
  border-color: var(--ds-error);
  background: #fff1f1;
  color: var(--ds-error-deep);
}

.app-main .account-banner {
  margin: 0 0 20px;
}