/* ========================================================
   CV / Resume Templates & Print Engine
   Supports: Modern, Professional, Minimal, Executive, Student
   A4 Dimensions: 210mm x 297mm (Standard International)
   ======================================================== */

.cv-page-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
  background: var(--gray-200);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.cv-sheet {
  width: 210mm;
  min-height: 297mm;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  color: #1e293b;
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  font-size: 10.5pt;
}

/* ==========================================
   TEMPLATE 1: MODERN
   Two-column split: left colored sidebar & right main
   ========================================== */
.cv-sheet.template-modern {
  display: flex;
}

.template-modern .cv-sidebar {
  width: 32%;
  background: #1e293b;
  color: #f8fafc;
  padding: 24mm 14mm;
  box-sizing: border-box;
}

.template-modern .cv-main {
  width: 68%;
  padding: 24mm 16mm;
  box-sizing: border-box;
}

.template-modern .cv-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #38bdf8;
  margin: 0 auto 1.5rem;
  display: block;
}

.template-modern .sidebar-section-title {
  font-size: 11pt;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.35rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.template-modern .sidebar-item {
  font-size: 9pt;
  color: #cbd5e1;
  margin-bottom: 0.6rem;
  word-break: break-word;
}

.template-modern .sidebar-skill-badge {
  display: inline-block;
  background: #334155;
  color: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 8.5pt;
  margin: 2px 2px;
}

.template-modern .cv-name {
  font-size: 24pt;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.template-modern .cv-title {
  font-size: 12.5pt;
  color: #4f46e5;
  font-weight: 600;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.template-modern .cv-section-title {
  font-size: 12pt;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #4f46e5;
  padding-bottom: 4px;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

/* ==========================================
   TEMPLATE 2: PROFESSIONAL
   Corporate full-width header with navy accent line
   ========================================== */
.cv-sheet.template-professional {
  padding: 20mm 20mm;
}

.template-professional .cv-header {
  border-bottom: 3px solid #1e3a8a;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.template-professional .cv-name {
  font-family: var(--font-serif);
  font-size: 26pt;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.01em;
}

.template-professional .cv-title {
  font-size: 12pt;
  color: #475569;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.template-professional .contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.65rem;
  font-size: 9pt;
  color: #334155;
}

.template-professional .cv-avatar {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
}

.template-professional .cv-section-title {
  font-family: var(--font-serif);
  font-size: 12pt;
  font-weight: 700;
  color: #1e3a8a;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 3px;
  margin-top: 1.3rem;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

/* ==========================================
   TEMPLATE 3: MINIMAL
   Clean Scandinavian layout, high whitespace
   ========================================== */
.cv-sheet.template-minimal {
  padding: 24mm 22mm;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #27272a;
}

.template-minimal .cv-name {
  font-size: 26pt;
  font-weight: 300;
  color: #18181b;
  letter-spacing: -0.03em;
}

.template-minimal .cv-name strong {
  font-weight: 700;
}

.template-minimal .cv-title {
  font-size: 10.5pt;
  color: #71717a;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.template-minimal .contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.8rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e4e4e7;
  font-size: 9pt;
  color: #71717a;
}

.template-minimal .cv-section-title {
  font-size: 10pt;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #18181b;
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

/* ==========================================
   TEMPLATE 4: EXECUTIVE
   Luxury charcoal & gold accents, authoritative
   ========================================== */
.cv-sheet.template-executive {
  padding: 22mm 22mm;
  background: #fff;
  border-top: 8px solid #b45309;
}

.template-executive .cv-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1.25rem;
}

.template-executive .cv-name {
  font-family: var(--font-serif);
  font-size: 28pt;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.02em;
}

.template-executive .cv-title {
  font-size: 12pt;
  color: #b45309;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.template-executive .contact-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.8rem;
  font-size: 9pt;
  color: #475569;
}

.template-executive .cv-section-title {
  font-family: var(--font-serif);
  font-size: 12pt;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 2px solid #b45309;
  padding-bottom: 3px;
  margin-top: 1.4rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================
   TEMPLATE 5: STUDENT / FRESHER
   Highlights education, projects, skills & coursework
   ========================================== */
.cv-sheet.template-student {
  padding: 20mm 20mm;
}

.template-student .student-banner {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #fff;
  padding: 1.4rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
}

.template-student .cv-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
}

.template-student .cv-name {
  font-size: 22pt;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.template-student .cv-title {
  font-size: 11pt;
  color: #e0e7ff;
  font-weight: 500;
  margin-top: 2px;
}

.template-student .contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
  font-size: 8.5pt;
  color: #f1f5f9;
}

.template-student .cv-section-title {
  font-size: 11.5pt;
  font-weight: 700;
  color: #4f46e5;
  border-left: 4px solid #4f46e5;
  padding-left: 8px;
  margin-top: 1.25rem;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

/* ==========================================
   COMMON COMPONENT STYLING FOR ALL TEMPLATES
   ========================================== */
.cv-entry {
  margin-bottom: 0.95rem;
  page-break-inside: avoid;
}

.cv-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
}

.cv-entry-title {
  font-size: 10pt;
  font-weight: 700;
  color: #0f172a;
}

.cv-entry-subtitle {
  font-size: 9.5pt;
  color: #475569;
  font-style: italic;
}

.cv-entry-date {
  font-size: 8.5pt;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

.cv-entry-body {
  font-size: 9pt;
  color: #334155;
  margin-top: 0.25rem;
  line-height: 1.45;
}

.cv-entry-bullets {
  padding-left: 1.15rem;
  margin-top: 0.25rem;
}

.cv-entry-bullets li {
  margin-bottom: 0.2rem;
}

.cv-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.cv-skill-pill {
  font-size: 8.5pt;
  background: #f1f5f9;
  color: #1e293b;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* ==========================================
   PRINT / PDF OUTPUT ENGINE
   ========================================== */
@media print {
  body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .navbar, .footer, .btn, .cv-controls, .no-print {
    display: none !important;
  }
  .cv-page-container {
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }
  .cv-sheet {
    box-shadow: none !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: 100% !important;
    page-break-after: avoid;
  }
}
