/* =============================================
   RESUME PAGE STYLES (Screen + Print)
   ============================================= */

:root {
  --navy: #0f1c2e;
  --navy-light: #1a2f4b;
  --gold: #c9973c;
  --gold-dark: #a07830;
  --text: #1e293b;
  --text-light: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

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

html { font-size: 15px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- TOOLBAR (Screen only) ---- */
.resume-toolbar {
  background: var(--navy);
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.toolbar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.toolbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  background: linear-gradient(135deg, var(--gold), #e6c455);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: opacity 0.2s, transform 0.2s;
}

.toolbar-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.toolbar-btn.secondary {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
}

.toolbar-btn.secondary:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

/* ---- RESUME PAGE ---- */
.resume-page {
  max-width: 820px;
  margin: 2.5rem auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ---- RESUME HEADER ---- */
.resume-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  position: relative;
}

.resume-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #e6c455, var(--gold));
}

.resume-name {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.resume-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.resume-contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
  flex-shrink: 0;
}

.rc-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.rc-item svg { color: var(--gold); flex-shrink: 0; }

/* ---- SECTIONS ---- */
.resume-section {
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.resume-section:last-child { border-bottom: none; }

.rs-heading {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.rs-body {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.75;
}

.rs-entry {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--bg);
}

.rs-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

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

.rs-degree {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.rs-org {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 400;
}

.rs-period {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.rs-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
}

.rs-subdesc {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.rs-bullets {
  list-style: none;
  margin-top: 0.4rem;
}

.rs-bullets li {
  font-size: 0.84rem;
  color: var(--text-light);
  padding: 0.2rem 0 0.2rem 1.2rem;
  position: relative;
  line-height: 1.6;
}

.rs-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

.rs-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.rs-skill-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.rs-skill-list {
  list-style: none;
}

.rs-skill-list li {
  font-size: 0.82rem;
  color: var(--text-light);
  padding: 0.15rem 0 0.15rem 1rem;
  position: relative;
}

.rs-skill-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  top: 0.3rem;
}

.rs-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rs-interests span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
  background: rgba(15,28,46,0.06);
  border: 1px solid rgba(15,28,46,0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* ---- PRINT STYLES ---- */
@media print {
  @page {
    size: A4;
    margin: 18mm 18mm 20mm;
  }

  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  body {
    background: white;
    font-size: 10pt;
  }

  .no-print { display: none !important; }

  .resume-page {
    max-width: 100%;
    margin: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
  }

  .resume-header {
    background: var(--navy) !important;
    padding: 1.25rem 1.5rem 1rem;
  }

  .resume-name { font-size: 1.8rem; }

  .resume-section { padding: 0.875rem 1.5rem; page-break-inside: avoid; }

  .rs-entry { page-break-inside: avoid; }

  .resume-header::after { background: linear-gradient(90deg, var(--gold), #e6c455, var(--gold)) !important; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .resume-page { margin: 1rem; border-radius: 6px; }
  .resume-header { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .resume-contact-block { align-items: flex-start; }
  .resume-section { padding: 1.25rem 1.5rem; }
  .rs-skills-grid { grid-template-columns: 1fr; }
  .rs-entry-header { flex-direction: column; gap: 0.2rem; }
  .toolbar-inner { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}
