/* ========================================
   HireReady AI - Resume Templates
   css/templates.css
   ======================================== */

/* ===== TEMPLATE SELECTOR ===== */

.template-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.template-btn {
  padding: 8px 16px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.template-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.template-btn.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* Second template selector row */
.template-btn-preview {
  padding: 7px 14px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
  font-family: inherit;
}

.template-btn-preview:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.template-btn-preview.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* ===== TEMPLATE 1: MODERN ===== */

.resume-modern {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #1e293b;
  line-height: 1.5;
  background: white;
  padding: 28px 36px;
}

.resume-modern .header {
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 2px solid #2563eb;
  position: relative;
}

.resume-modern .header-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.resume-modern .header-title {
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.resume-modern .header-contact {
  font-size: 11px;
  color: #64748b;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.resume-modern .header-photo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid #2563eb;
  display: block;
  object-fit: cover;
}

.resume-modern .section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 16px 0 8px 0;
  padding-bottom: 5px;
  border-bottom: 2px solid #2563eb;
}

.resume-modern .section-body {
  font-size: 12px;
  line-height: 1.55;
}

.resume-modern .entry {
  margin-bottom: 10px;
}

.resume-modern .entry-title,
.resume-modern .entry-head {
  font-weight: 700;
  font-size: 12px;
  color: #0f172a;
  margin-top: 4px;
}

.resume-modern .entry-subtitle {
  font-size: 11px;
  color: #2563eb;
  font-style: italic;
}

.resume-modern .entry-date {
  font-size: 10.5px;
  color: #94a3b8;
}

.resume-modern .skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.resume-modern .skill-tag {
  background: #eff6ff;
  color: #2563eb;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #dbeafe;
}

/* ===== TEMPLATE 2: EXECUTIVE ===== */

.resume-executive {
  font-family: 'Georgia', serif;
  color: #17181f;
  line-height: 1.6;
  background: white;
  padding: 28px 36px;
}

.resume-executive .header {
  display: flex;
  gap: 22px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 2px solid #8b1e3f;
  position: relative;
}

.resume-executive .header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 90px;
  height: 2px;
  background: #111820;
}

.resume-executive .header-photo {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  border: 2px solid #8b1e3f;
  flex-shrink: 0;
  object-fit: cover;
}

.resume-executive .header-info {
  flex: 1;
}

.resume-executive .header-name {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  letter-spacing: 1px;
}

.resume-executive .header-title {
  font-size: 12px;
  color: #8b1e3f;
  font-weight: 700;
  margin: 6px 0;
}

.resume-executive .header-contact {
  font-size: 10.5px;
  color: #6b7280;
}

.resume-executive .header-contact span {
  display: block;
  margin: 2px 0;
}

.resume-executive .section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  margin: 18px 0 10px 0;
  letter-spacing: 2px;
  border-bottom: 1px solid #e5d9dd;
  padding-bottom: 5px;
}

.resume-executive .section-body {
  font-size: 12px;
  line-height: 1.55;
}

.resume-executive .entry {
  margin-bottom: 12px;
}

.resume-executive .entry-title,
.resume-executive .entry-head {
  font-weight: 700;
  font-size: 12px;
  color: #111827;
  margin-top: 4px;
}

.resume-executive .entry-subtitle {
  font-size: 10.5px;
  color: #8b1e3f;
  font-style: italic;
}

.resume-executive .entry-date {
  font-size: 10px;
  color: #9ca3af;
}

.resume-executive .skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.resume-executive .skill-tag {
  background: #f5e6ea;
  color: #8b1e3f;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #e5d0d7;
}

/* ===== TEMPLATE 3: CREATIVE ===== */

.resume-creative {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  color: #333;
  line-height: 1.6;
  background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
  padding: 0;
  min-height: 100%;
}

.resume-creative .wrapper {
  background: white;
  margin: 20px;
  border-radius: 14px;
  overflow: hidden;
}

.resume-creative .header {
  background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
  color: white;
  padding: 28px 36px;
  text-align: center;
}

.resume-creative .header-photo {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 3px solid white;
  display: block;
  object-fit: cover;
}

.resume-creative .header-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin: 0 0 6px 0;
}

.resume-creative .header-title {
  font-size: 12.5px;
  opacity: 0.92;
  margin: 0 0 10px 0;
}

.resume-creative .header-contact {
  font-size: 11px;
  opacity: 0.85;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.resume-creative .content {
  padding: 24px 32px;
}

.resume-creative .section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #6d28d9;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 18px 0 10px 0;
  padding-bottom: 7px;
  border-bottom: 2px solid #6d28d9;
}

.resume-creative .section-body {
  font-size: 12px;
  line-height: 1.55;
}

.resume-creative .entry {
  margin-bottom: 10px;
}

.resume-creative .entry-title,
.resume-creative .entry-head {
  font-weight: 700;
  font-size: 12px;
  color: #2c2540;
  margin-top: 4px;
}

.resume-creative .entry-subtitle {
  font-size: 11px;
  color: #6d28d9;
  font-weight: 600;
}

.resume-creative .entry-date {
  font-size: 10.5px;
  color: #999;
}

.resume-creative .skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.resume-creative .skill-tag {
  background: #f2edfc;
  color: #6d28d9;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #e4d9fa;
}

/* ===== TEMPLATE 4: ATS-FRIENDLY ===== */

.resume-ats {
  font-family: Calibri, Arial, Helvetica, sans-serif;
  color: #111;
  line-height: 1.5;
  background: white;
  padding: 28px 36px;
}

.resume-ats .header {
  text-align: center;
  margin-bottom: 16px;
  border-bottom: 1.5px solid #000;
  padding-bottom: 12px;
}

.resume-ats .header-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin: 0 0 4px 0;
}

.resume-ats .header-title {
  font-size: 12px;
  margin: 0 0 6px 0;
}

.resume-ats .header-contact {
  font-size: 11px;
  color: #333;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.resume-ats .header-photo {
  display: none;
}

.resume-ats .section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 14px 0 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #000;
}

.resume-ats .section-body {
  font-size: 12px;
  line-height: 1.5;
}

.resume-ats .entry {
  margin-bottom: 8px;
  font-size: 12px;
}

.resume-ats .entry-title,
.resume-ats .entry-head {
  font-weight: 700;
  margin-top: 3px;
}

.resume-ats .entry-subtitle {
  margin-top: 2px;
}

.resume-ats .entry-date {
  font-size: 10.5px;
  color: #444;
}

.resume-ats .skill-tag {
  display: inline;
  margin-right: 8px;
}

.resume-ats .skill-tag:not(:last-child)::after {
  content: ',';
}

/* ===== CONTAINER FOR ALL TEMPLATES ===== */

#rs-body {
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
}

.resume-modern,
.resume-executive,
.resume-creative,
.resume-ats {
  margin: 0;
  font-size: 12px;
}

.resume-creative .wrapper {
  margin: 0;
  border-radius: 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .template-selector { gap: 8px; }
  .template-btn { padding: 6px 12px; font-size: 12px; }
  .resume-modern { padding: 20px; }
  .resume-modern .header-name { font-size: 20px; }
  .resume-executive { padding: 20px; }
  .resume-executive .header { flex-direction: column; gap: 12px; }
  .resume-executive .header-photo { width: 70px; height: 70px; }
  .resume-creative .content { padding: 18px; }
  .resume-ats { padding: 20px; }
}

@media (max-width: 480px) {
  .template-selector { gap: 6px; }
  .template-btn { padding: 5px 10px; font-size: 11px; }
  .template-btn span { display: none; }
  .template-btn::before { content: attr(data-label); }
  .resume-modern,
  .resume-executive,
  .resume-creative,
  .resume-ats { padding: 14px; font-size: 11px; }
  .resume-modern .header-name { font-size: 18px; }
  .resume-modern .section-title { font-size: 11px; margin-top: 12px; }
  .resume-executive .header-name { font-size: 17px; }
  .resume-creative .header-name { font-size: 18px; }
}
