/**
 * Styles for Brayden Gourlay's Resume.
 */

.resume-page {
  min-height: 100dvh;
  background: var(--modal-bg, #f8f8f8);
  color: var(--modal-text, #1a1a1a);
  font-family: var(--font, system-ui, -apple-system, sans-serif);
  line-height: 1.5;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ---------- Top navigation bar ---------- */
.resume-top {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  background: color-mix(in srgb, var(--modal-bg) 0%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--modal-border, rgba(0,0,0,0.08));
  transition: background 0.2s;
}

.back-link {
  padding: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  color: var(--modal-text);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s, background 0.2s;
}
.back-link:hover {
  opacity: 1;
  background: rgba(127, 127, 127, 0.15);
}

/* ---------- Main container ---------- */
.resume-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 1rem;
}

/* ---------- Header ---------- */
.resume-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 2px solid var(--modal-border, rgba(0,0,0,0.1));
}

.name-block h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
  line-height: 1.15;
  transition: color var(--transition);
}

.name-block .title {
  font-size: 1.1rem;
  margin: 0;
}

.contact-block {
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}
.contact-block a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  border-bottom-color: currentColor;
}
.contact-block a:hover {
  color: var(--option-active);
  border-bottom-color: currentColor;
}

/* ---------- Sections ---------- */
.resume-section {
  margin-bottom: 2rem;
}

.resume-section h2 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--option-active, #7c5cff);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.resume-section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--modal-border, rgba(0,0,0,0.12));
}

/* ---------- Experience entries ---------- */
.entry {
  margin-bottom: 1.5rem;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.entry h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0;
}

.entry .date {
  font-size: 0.88rem;
  opacity: 0.7;
  white-space: nowrap;
}

.entry .role {
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0.85;
  margin: 0.15rem 0 0.4rem;
}

.entry ul {
  margin: 0.35rem 0 0 1.1rem;
  padding: 0;
}

.entry li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

/* ---------- Grid layout ---------- */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.75rem;
}

/* ---------- Sidebar ---------- */
.resume-sidebar .resume-section {
  background: color-mix(in srgb, var(--option-bg, #f0f0f0) 70%, transparent);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--modal-border, rgba(0,0,0,0.06));
}

.skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skills-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.skills-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--option-active);
  font-weight: 700;
}

.dev-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
  color: var(--modal-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  border-bottom-color: var(--modal-text);;
  transition: transform 0.2s, border-bottom-color 0.2s, color 0.2s;
}
.dev-link:hover {
  color: #7c5cff;
  border-bottom-color: #7c5cff;
  transform: scale(1.03);
}

/* ---------- Responsiveness ---------- */
@media (max-width: 800px) {
  .resume-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-block {
    text-align: left;
  }

  .resume-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .resume-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .entry-header {
    flex-direction: column;
    gap: 0.15rem;
  }
}

/* ---------- Print styles ---------- */
@media print {
  .resume-top {
    display: none;
  }
  .resume-page {
    background: white;
    color: black;
  }
  .resume-container {
    max-width: 80%;
    padding: 4rem 0;
  }
}