/* =============================================================
   theme-formal.css — Traditional CV, print-optimized
   Font: Playfair Display (headings) + EB Garamond (body)
   Palette: Clean white, navy, burgundy accent
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
.theme-formal {
  --color-bg:         #ffffff;
  --color-surface:    #ffffff;
  --color-border:     #d1d5db;
  --color-text:       #111827;
  --color-text-muted: #6b7280;
  --color-primary:    #1e3a8a;   /* navy */
  --color-accent:     #991b1b;   /* burgundy */
  --color-tag-bg:     #f3f4f6;
  --color-tag-text:   #374151;
  --color-card-bg:    #ffffff;
  --color-toggle-bg:  #1e3a8a;
  --color-toggle-text: #ffffff;

  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-size: 16px;
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* ── Theme toggle ───────────────────────────────────────────── */
.theme-formal .theme-toggle {
  background: var(--color-toggle-bg);
  color: var(--color-toggle-text);
  font-family: 'EB Garamond', serif;
}

/* ── Override container to be wider for formal ──────────────── */
.theme-formal .container { max-width: 860px; }

/* ── Section layout: sidebar + main on desktop ──────────────── */
.theme-formal .section:not(.section-header):not(.section-contact) {
  padding: 0;
}

/* ── Header ─────────────────────────────────────────────────── */
.theme-formal .section-header {
  background: var(--color-bg);
  border-bottom: 3px solid var(--color-primary);
  padding: 2.5rem 0 2rem;
}

.theme-formal .header-avatar {
  border: 2px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 96px;
  height: 96px;
}

.theme-formal .name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-text);
}
.theme-formal .title {
  font-family: 'EB Garamond', serif;
  color: var(--color-primary);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: italic;
}
.theme-formal .tagline { color: var(--color-text-muted); }
.theme-formal .contact-link { color: var(--color-text); font-size: 0.82rem; }

/* ── Formal two-column layout wrapper ───────────────────────── */
.theme-formal main > .section:not(.section-header):not(.section-contact) {
  background: #fff;
}

.theme-formal .section-summary,
.theme-formal .section-experience,
.theme-formal .section-skills,
.theme-formal .section-education,
.theme-formal .section-projects {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* ── Section titles (formal style) ─────────────────────────── */
.theme-formal .section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
}
.theme-formal .section-title svg { display: none; }

/* ── Summary ────────────────────────────────────────────────── */
.theme-formal .summary-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* ── Experience ─────────────────────────────────────────────── */
.theme-formal .experience-list { gap: 1.75rem; }

.theme-formal .experience-item {
  position: relative;
  padding-left: 0;
}

/* No card border in formal — use rule/spacing instead */
.theme-formal .experience-company {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--color-text);
  font-weight: 700;
}
.theme-formal .experience-title {
  color: var(--color-primary);
  font-style: italic;
  font-size: 0.95rem;
}
.theme-formal .experience-meta,
.theme-formal .experience-dates { color: var(--color-text-muted); }

.theme-formal .experience-highlights { margin-top: 0.6rem; }
.theme-formal .experience-highlights li {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.65;
}
.theme-formal .experience-highlights li::before {
  content: "•";
  color: var(--color-accent);
}

/* ── Skills ─────────────────────────────────────────────────── */
.theme-formal .skills-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.theme-formal .skills-category-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.78rem;
  color: var(--color-primary);
  letter-spacing: 0.06em;
}

.theme-formal .skill-tag {
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  border-radius: 2px;
  border: 1px solid var(--color-border);
  font-family: 'EB Garamond', serif;
  font-size: 0.82rem;
}

/* ── Education ──────────────────────────────────────────────── */
.theme-formal .education-degree {
  font-family: 'Playfair Display', serif;
  color: var(--color-text);
}
.theme-formal .education-school { color: var(--color-primary); font-style: italic; }
.theme-formal .education-honors { color: var(--color-accent); }
.theme-formal .education-dates  { color: var(--color-text-muted); }

/* ── Projects ───────────────────────────────────────────────── */
.theme-formal .project-card {
  background: #f9fafb;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}
.theme-formal .project-name { font-family: 'Playfair Display', serif; }
.theme-formal .project-tech-tag {
  background: var(--color-tag-bg);
  color: var(--color-text-muted);
  border-radius: 2px;
  border: 1px solid var(--color-border);
}
.theme-formal .project-link { color: var(--color-primary); }

/* ── Contact ─────────────────────────────────────────────────── */
.theme-formal .section-contact { border-top: 2px solid var(--color-primary); }
.theme-formal .btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
}
.theme-formal .btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 4px;
}
.theme-formal .footer-note { color: var(--color-text-muted); }

/* ═══ PRINT STYLES ════════════════════════════════════════════ */
@media print {
  body.theme-formal {
    font-size: 11pt;
    background: white;
    color: black;
  }

  .theme-formal .theme-toggle,
  .modal-overlay { display: none !important; }

  .theme-formal .container { max-width: 100%; padding: 0; }

  .theme-formal .section-header { padding: 0 0 0.75rem; border-bottom: 2pt solid #1e3a8a; }
  .theme-formal .name { font-size: 18pt; }
  .theme-formal .title { font-size: 11pt; }

  .theme-formal .section-title { font-size: 10pt; letter-spacing: 0.1em; }

  .theme-formal .experience-item { page-break-inside: avoid; }
  .theme-formal .experience-highlights li { font-size: 10pt; }

  .theme-formal .section { padding: 0.5rem 0; }
  .theme-formal .section-summary,
  .theme-formal .section-experience,
  .theme-formal .section-skills,
  .theme-formal .section-education,
  .theme-formal .section-projects { border-bottom: 0.5pt solid #d1d5db; }

  .theme-formal .project-card { border: 0.5pt solid #d1d5db; }
  .theme-formal .section-contact { display: none; }

  a[href]::after { content: none; }
}
