/* ======================================================
   ParMitra CV Builder — CV Template Styles
   All 4 ATS-friendly templates
   ====================================================== */

/* ---------- Shared CV Page Base ---------- */
.cv-page {
  width: 100%;
  max-width: 794px; /* A4 width at 96dpi */
  min-height: 1123px; /* A4 height */
  background: #ffffff;
  color: #1a1a2e;
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.55;
  font-size: 10.5pt;
  margin: 0 auto;
}

.cv-page * {
  box-sizing: border-box;
}

.cv-page h1,
.cv-page h2,
.cv-page h3,
.cv-page h4 {
  margin: 0;
  line-height: 1.3;
}

.cv-page p {
  margin: 0;
}

.cv-page ul {
  list-style: disc;
  padding-left: 18px;
  margin: 4px 0 0;
}

.cv-page ul li {
  margin-bottom: 2px;
}

.cv-page a {
  color: inherit;
  text-decoration: none;
}

/* Photo common */
.cv-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Section divider line */
.cv-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 14px 0;
}

/* ======================================================
   TEMPLATE 1 — CLASSIC
   Traditional single-column, clean and professional
   ====================================================== */
.cv-classic {
  padding: 40px 48px;
}

.cv-classic .cv-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid #1a1a2e;
  margin-bottom: 18px;
}

.cv-classic .cv-header__info {
  flex: 1;
}

.cv-classic .cv-header__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24pt;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.02em;
}

.cv-classic .cv-header__title {
  font-size: 11pt;
  color: #4a5568;
  font-weight: 400;
  margin-top: 2px;
}

.cv-classic .cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 8px;
  font-size: 9pt;
  color: #4a5568;
}

.cv-classic .cv-contact span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cv-classic .cv-section {
  margin-bottom: 16px;
}

.cv-classic .cv-section__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13pt;
  font-weight: 600;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 4px;
  border-bottom: 1px solid #cbd5e0;
  margin-bottom: 10px;
}

.cv-classic .cv-entry {
  margin-bottom: 12px;
}

.cv-classic .cv-entry__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cv-classic .cv-entry__role {
  font-weight: 600;
  font-size: 10.5pt;
  color: #1a1a2e;
}

.cv-classic .cv-entry__dates {
  font-size: 9pt;
  color: #718096;
  white-space: nowrap;
}

.cv-classic .cv-entry__org {
  font-size: 9.5pt;
  color: #4a5568;
  font-style: italic;
}

.cv-classic .cv-entry__desc {
  margin-top: 4px;
  font-size: 9.5pt;
  color: #2d3748;
}

.cv-classic .cv-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.cv-classic .cv-skills-list li {
  padding: 3px 12px;
  background: #f0f0f5;
  border-radius: 4px;
  font-size: 9pt;
  font-weight: 500;
  color: #1a1a2e;
}

.cv-classic .cv-summary {
  font-size: 10pt;
  color: #2d3748;
  line-height: 1.65;
}

/* ======================================================
   TEMPLATE 2 — MODERN
   Two-column layout with accent color sidebar
   ====================================================== */
.cv-modern {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 1123px;
}

.cv-modern .cv-sidebar {
  background: #1e293b;
  color: #e2e8f0;
  padding: 36px 24px;
}

.cv-modern .cv-sidebar .cv-photo {
  width: 110px;
  height: 110px;
  border: 3px solid rgba(255,255,255,0.2);
  margin: 0 auto 16px;
  display: block;
}

.cv-modern .cv-sidebar__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18pt;
  font-weight: 600;
  text-align: center;
  color: #fff;
  margin-bottom: 4px;
}

.cv-modern .cv-sidebar__title {
  text-align: center;
  font-size: 9pt;
  color: #94a3b8;
  margin-bottom: 20px;
  font-weight: 400;
}

.cv-modern .cv-sidebar .cv-section {
  margin-bottom: 20px;
}

.cv-modern .cv-sidebar .cv-section__title {
  font-size: 8pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #dc2626;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cv-modern .cv-sidebar .cv-contact-list {
  list-style: none;
  padding: 0;
}

.cv-modern .cv-sidebar .cv-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 8.5pt;
  color: #cbd5e1;
  word-break: break-word;
}

.cv-modern .cv-sidebar .cv-contact-list li .icon {
  font-size: 10pt;
  flex-shrink: 0;
  margin-top: 1px;
}

.cv-modern .cv-sidebar .cv-skills-list {
  list-style: none;
  padding: 0;
}

.cv-modern .cv-sidebar .cv-skills-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 8.5pt;
}

.cv-modern .cv-sidebar .cv-skills-list li .skill-bar {
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.cv-modern .cv-sidebar .cv-skills-list li .skill-bar__fill {
  height: 100%;
  background: #dc2626;
  border-radius: 2px;
}

.cv-modern .cv-sidebar .cv-lang-list {
  list-style: none;
  padding: 0;
}

.cv-modern .cv-sidebar .cv-lang-list li {
  font-size: 8.5pt;
  margin-bottom: 4px;
  color: #cbd5e1;
}

.cv-modern .cv-main {
  padding: 36px 32px;
}

.cv-modern .cv-main .cv-section {
  margin-bottom: 18px;
}

.cv-modern .cv-main .cv-section__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13pt;
  font-weight: 600;
  color: #1e293b;
  padding-bottom: 4px;
  border-bottom: 2px solid #dc2626;
  margin-bottom: 12px;
}

.cv-modern .cv-summary {
  font-size: 10pt;
  color: #334155;
  line-height: 1.65;
}

.cv-modern .cv-entry {
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 2px solid #e2e8f0;
}

.cv-modern .cv-entry__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cv-modern .cv-entry__role {
  font-weight: 600;
  font-size: 10.5pt;
  color: #1e293b;
}

.cv-modern .cv-entry__dates {
  font-size: 8.5pt;
  color: #dc2626;
  font-weight: 600;
  white-space: nowrap;
}

.cv-modern .cv-entry__org {
  font-size: 9pt;
  color: #64748b;
}

.cv-modern .cv-entry__desc {
  margin-top: 4px;
  font-size: 9.5pt;
  color: #334155;
}

/* ======================================================
   TEMPLATE 3 — MINIMAL
   Ultra-clean, lots of whitespace, monochrome
   ====================================================== */
.cv-minimal {
  padding: 48px 56px;
}

.cv-minimal .cv-header {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 8px;
}

.cv-minimal .cv-header__name {
  font-family: 'Inter', sans-serif;
  font-size: 28pt;
  font-weight: 300;
  color: #111;
  letter-spacing: -0.02em;
  line-height: 1;
}

.cv-minimal .cv-header__title {
  font-size: 10pt;
  color: #888;
  font-weight: 400;
  padding-bottom: 4px;
}

.cv-minimal .cv-photo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
}

.cv-minimal .cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 8.5pt;
  color: #666;
  padding: 12px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}

.cv-minimal .cv-section {
  margin-bottom: 20px;
}

.cv-minimal .cv-section__title {
  font-size: 8pt;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #999;
  margin-bottom: 12px;
}

.cv-minimal .cv-summary {
  font-size: 10pt;
  color: #333;
  line-height: 1.7;
}

.cv-minimal .cv-entry {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
}

.cv-minimal .cv-entry__dates {
  font-size: 8.5pt;
  color: #999;
  padding-top: 2px;
}

.cv-minimal .cv-entry__role {
  font-weight: 600;
  font-size: 10pt;
  color: #111;
}

.cv-minimal .cv-entry__org {
  font-size: 9pt;
  color: #666;
}

.cv-minimal .cv-entry__desc {
  margin-top: 4px;
  font-size: 9pt;
  color: #444;
}

.cv-minimal .cv-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.cv-minimal .cv-skills-list li {
  font-size: 8.5pt;
  color: #333;
  padding: 4px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
}

.cv-minimal .cv-extras-list {
  list-style: none;
  padding: 0;
  font-size: 9pt;
  color: #444;
}

.cv-minimal .cv-extras-list li {
  margin-bottom: 3px;
}

/* ======================================================
   TEMPLATE 4 — CREATIVE
   Bold header, timeline experience, colorful accents
   ====================================================== */
.cv-creative {
  overflow: hidden;
}

.cv-creative .cv-header {
  background: linear-gradient(135deg, #4f46e5 0%, #dc2626 50%, #a855f7 100%);
  color: #fff;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cv-creative .cv-photo {
  width: 90px;
  height: 90px;
  border: 3px solid rgba(255,255,255,0.4);
}

.cv-creative .cv-header__info {
  flex: 1;
}

.cv-creative .cv-header__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26pt;
  font-weight: 700;
  line-height: 1.1;
}

.cv-creative .cv-header__title {
  font-size: 11pt;
  font-weight: 300;
  opacity: 0.85;
  margin-top: 4px;
}

.cv-creative .cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 10px;
  font-size: 8.5pt;
  opacity: 0.9;
}

.cv-creative .cv-contact span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cv-creative .cv-body {
  padding: 28px 40px 40px;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 32px;
}

.cv-creative .cv-main {
  /* left column */
}

.cv-creative .cv-aside {
  /* right column */
}

.cv-creative .cv-section {
  margin-bottom: 18px;
}

.cv-creative .cv-section__title {
  font-size: 11pt;
  font-weight: 700;
  color: #4f46e5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-creative .cv-section__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.cv-creative .cv-summary {
  font-size: 10pt;
  color: #334155;
  line-height: 1.65;
}

/* Timeline entries */
.cv-creative .cv-timeline {
  position: relative;
  padding-left: 20px;
}

.cv-creative .cv-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, #dc2626, #e2e8f0);
  border-radius: 1px;
}

.cv-creative .cv-timeline .cv-entry {
  position: relative;
  margin-bottom: 16px;
}

.cv-creative .cv-timeline .cv-entry::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc2626;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #dc2626;
}

.cv-creative .cv-entry__role {
  font-weight: 600;
  font-size: 10.5pt;
  color: #1e293b;
}

.cv-creative .cv-entry__org {
  font-size: 9pt;
  color: #64748b;
}

.cv-creative .cv-entry__dates {
  font-size: 8pt;
  color: #dc2626;
  font-weight: 600;
}

.cv-creative .cv-entry__desc {
  margin-top: 4px;
  font-size: 9pt;
  color: #334155;
}

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

.cv-creative .cv-skills-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 8.5pt;
  color: #334155;
}

.cv-creative .cv-skills-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
  flex-shrink: 0;
}

.cv-creative .cv-aside .cv-section__title {
  font-size: 9pt;
}

.cv-creative .cv-extras-list {
  list-style: none;
  padding: 0;
  font-size: 8.5pt;
  color: #334155;
}

.cv-creative .cv-extras-list li {
  margin-bottom: 4px;
  padding-left: 14px;
  position: relative;
}

.cv-creative .cv-extras-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 700;
}

/* ---------- Empty state ---------- */
.cv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: #94a3b8;
  text-align: center;
  padding: 40px;
}

.cv-empty__icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.cv-empty__text {
  font-size: 14px;
  font-weight: 500;
}

.cv-empty__subtext {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}
