/* =============================================
   Resume Templates CSS (templates.css)
   Actual document printable styles
   ============================================= */

/* ===== TEMPLATE PAGE ===== */
.templates-page { padding-top: 72px; }
.templates-hero {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}
.templates-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(99,102,241,0.08);
}
.templates-gallery {
  padding: 60px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.gallery-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
}
.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}
.gallery-thumb {
  height: 320px;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.gallery-thumb-scale {
  transform-origin: top left;
  transform: scale(0.33);
  width: 303%;
  height: 303%;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,11,20,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  gap: 12px;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-footer {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gallery-footer h4 { font-size: 15px; font-weight: 700; }
.gallery-footer span { font-size: 12px; color: var(--text-muted); }
.gallery-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.gallery-tag {
  padding: 2px 10px;
  border-radius: 100px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  font-size: 11px;
  color: var(--primary-light);
}

/* ========================================================
   DOCUMENT TEMPLATE DESIGNS (for preview and PDF)
   ======================================================== */

/* ------ TEMPLATE 1: Modern Professional ------ */
.tpl-modern {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background: #fff;
  min-height: 1100px;
}
.tpl-modern .tpl-header {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  padding: 40px 48px;
  display: flex;
  gap: 28px;
  align-items: center;
}
.tpl-modern .tpl-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.5);
  object-fit: cover;
  flex-shrink: 0;
}
.tpl-modern .tpl-photo-placeholder {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  flex-shrink: 0;
}
.tpl-modern .tpl-name { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.tpl-modern .tpl-role { font-size: 14px; opacity: 0.85; margin-top: 4px; font-weight: 500; }
.tpl-modern .tpl-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.tpl-modern .tpl-contact-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  opacity: 0.8;
}
.tpl-modern .tpl-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 900px;
}
.tpl-modern .tpl-sidebar {
  background: #f8fafc;
  padding: 28px 20px;
  border-right: 1px solid #e2e8f0;
}
.tpl-modern .tpl-main { padding: 28px 32px; }
.tpl-modern .tpl-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #4f46e5;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #4f46e5;
}
.tpl-modern .tpl-section { margin-bottom: 24px; }
.tpl-modern .skill-bar-wrap { margin-bottom: 8px; }
.tpl-modern .skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
  color: #475569;
}
.tpl-modern .skill-bar {
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}
.tpl-modern .skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: 3px;
}
.tpl-modern .tpl-item { margin-bottom: 16px; }
.tpl-modern .tpl-item-title { font-size: 14px; font-weight: 700; color: #1e293b; }
.tpl-modern .tpl-item-sub { font-size: 12px; color: #64748b; }
.tpl-modern .tpl-item-date {
  font-size: 11px;
  color: #4f46e5;
  font-weight: 600;
  background: rgba(79,70,229,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin: 4px 0;
}
.tpl-modern .tpl-item-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
  margin-top: 4px;
}
.tpl-modern .tpl-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(79,70,229,0.08);
  border: 1px solid rgba(79,70,229,0.2);
  border-radius: 4px;
  font-size: 11px;
  color: #4f46e5;
  font-weight: 600;
  margin: 3px 3px 3px 0;
}

/* ------ TEMPLATE 2: Minimal Corporate ------ */
.tpl-minimal {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background: #fff;
  min-height: 1100px;
  padding: 0;
}
.tpl-minimal .tpl-header {
  padding: 48px 56px 32px;
  border-bottom: 3px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.tpl-minimal .tpl-name { font-size: 36px; font-weight: 900; letter-spacing: -1px; color: #0f172a; }
.tpl-minimal .tpl-role { font-size: 14px; color: #64748b; margin-top: 4px; font-weight: 500; }
.tpl-minimal .tpl-contacts-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tpl-minimal .tpl-contact-item { font-size: 12px; color: #64748b; }
.tpl-minimal .tpl-body { padding: 32px 56px; }
.tpl-minimal .tpl-section { margin-bottom: 28px; }
.tpl-minimal .tpl-section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #94a3b8;
  margin-bottom: 14px;
}
.tpl-minimal .tpl-item { display: flex; gap: 24px; margin-bottom: 16px; }
.tpl-minimal .tpl-item-date-col { width: 110px; font-size: 11px; color: #94a3b8; flex-shrink: 0; padding-top: 2px; }
.tpl-minimal .tpl-item-title { font-size: 14px; font-weight: 700; }
.tpl-minimal .tpl-item-sub { font-size: 12px; color: #64748b; margin-top: 2px; }
.tpl-minimal .tpl-item-desc { font-size: 12px; color: #475569; margin-top: 6px; line-height: 1.6; }
.tpl-minimal .tpl-skills-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-minimal .tpl-skill { font-size: 12px; color: #1e293b; padding: 4px 12px; border: 1.5px solid #cbd5e1; border-radius: 4px; }
.tpl-minimal .tpl-divider { width: 100%; height: 1px; background: #f1f5f9; margin: 8px 0; }

/* ------ TEMPLATE 3: Creative Designer ------ */
.tpl-creative {
  font-family: 'Playfair Display', serif;
  color: #fff;
  background: #0f0f23;
  min-height: 1100px;
}
.tpl-creative .tpl-header {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.tpl-creative .tpl-name { font-size: 30px; font-weight: 700; color: #fff; }
.tpl-creative .tpl-role { font-size: 14px; color: rgba(255,255,255,0.8); font-family: 'Inter', sans-serif; }
.tpl-creative .tpl-body { display: grid; grid-template-columns: 220px 1fr; }
.tpl-creative .tpl-sidebar { background: #1a1a35; padding: 28px 20px; }
.tpl-creative .tpl-main { padding: 28px 32px; }
.tpl-creative .tpl-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #ec4899;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}
.tpl-creative .tpl-section { margin-bottom: 24px; }
.tpl-creative .tpl-item { margin-bottom: 16px; }
.tpl-creative .tpl-item-title { font-size: 14px; font-weight: 600; color: #f1f5f9; font-family: 'Inter', sans-serif; }
.tpl-creative .tpl-item-sub { font-size: 12px; color: #a78bfa; font-family: 'Inter', sans-serif; }
.tpl-creative .tpl-item-desc { font-size: 12px; color: #94a3b8; line-height: 1.6; font-family: 'Inter', sans-serif; margin-top: 4px; }
.tpl-creative .tpl-tag { display: inline-block; padding: 3px 10px; background: rgba(236,72,153,0.15); border-radius: 4px; font-size: 11px; color: #f472b6; margin: 3px; font-family: 'Inter', sans-serif; }

/* ------ TEMPLATE 4: ATS Friendly ------ */
.tpl-ats {
  font-family: 'Inter', sans-serif;
  color: #000;
  background: #fff;
  min-height: 1100px;
  padding: 48px 56px;
}
.tpl-ats .tpl-name { font-size: 26px; font-weight: 900; color: #000; }
.tpl-ats .tpl-role { font-size: 14px; color: #333; margin-top: 2px; }
.tpl-ats .tpl-contacts { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: #333; }
.tpl-ats .tpl-section { margin: 20px 0; border-top: 1.5px solid #000; padding-top: 12px; }
.tpl-ats .tpl-section-title { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: #000; margin-bottom: 10px; }
.tpl-ats .tpl-item { margin-bottom: 12px; }
.tpl-ats .tpl-item-title { font-size: 13px; font-weight: 700; }
.tpl-ats .tpl-item-sub { font-size: 12px; color: #555; }
.tpl-ats .tpl-item-desc { font-size: 12px; color: #333; margin-top: 4px; line-height: 1.5; }

/* ------ TEMPLATE 5: Executive ------ */
.tpl-executive {
  font-family: 'Playfair Display', serif;
  color: #1e293b;
  background: #fff;
  min-height: 1100px;
}
.tpl-executive .tpl-header {
  background: #0f172a;
  color: #fff;
  padding: 48px 56px;
  text-align: center;
}
.tpl-executive .tpl-name { font-size: 34px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.tpl-executive .tpl-role { font-size: 13px; font-family: 'Inter', sans-serif; opacity: 0.7; margin-top: 6px; letter-spacing: 3px; text-transform: uppercase; }
.tpl-executive .tpl-divider-gold {
  width: 60px; height: 2px;
  background: #f59e0b;
  margin: 16px auto;
}
.tpl-executive .tpl-contacts { display: flex; gap: 24px; justify-content: center; font-size: 12px; opacity: 0.7; font-family: 'Inter', sans-serif; }
.tpl-executive .tpl-body { padding: 40px 56px; }
.tpl-executive .tpl-section { margin-bottom: 30px; }
.tpl-executive .tpl-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f59e0b;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tpl-executive .tpl-item { margin-bottom: 16px; }
.tpl-executive .tpl-item-title { font-size: 14px; font-weight: 700; color: #1e293b; }
.tpl-executive .tpl-item-sub { font-size: 12px; color: #f59e0b; font-family: 'Inter', sans-serif; font-weight: 600; }
.tpl-executive .tpl-item-desc { font-size: 12px; color: #475569; font-family: 'Inter', sans-serif; line-height: 1.6; margin-top: 6px; }

/* ===== BIODATA TEMPLATES ===== */

/* Traditional Indian */
.bd-traditional {
  font-family: 'Inter', sans-serif;
  color: #1a0800;
  background: #fffbf5;
  min-height: 1100px;
  position: relative;
}
.bd-traditional .bd-border {
  position: absolute;
  inset: 12px;
  border: 3px solid #8b2c00;
  pointer-events: none;
  z-index: 1;
}
.bd-traditional .bd-border::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid #d97706;
  pointer-events: none;
}
.bd-traditional .bd-inner { padding: 40px 56px; position: relative; z-index: 2; }
.bd-traditional .bd-header { text-align: center; margin-bottom: 32px; }
.bd-traditional .bd-om { font-size: 36px; color: #8b2c00; margin-bottom: 8px; }
.bd-traditional .bd-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #8b2c00;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.bd-traditional .bd-subtitle { font-size: 13px; color: #92400e; margin-top: 4px; letter-spacing: 1px; }
.bd-traditional .bd-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px auto;
  max-width: 300px;
}
.bd-traditional .bd-divider-line { flex: 1; height: 1px; background: #d97706; }
.bd-traditional .bd-divider-ornament { font-size: 18px; color: #d97706; }
.bd-traditional .bd-photo-section { text-align: center; margin: 20px 0; }
.bd-traditional .bd-photo {
  width: 120px; height: 150px;
  border-radius: 4px;
  object-fit: cover;
  border: 3px solid #8b2c00;
  margin: 0 auto;
}
.bd-traditional .bd-photo-placeholder {
  width: 120px; height: 150px;
  background: rgba(139,44,0,0.08);
  border: 3px solid #8b2c00;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto;
}
.bd-traditional .bd-section-title {
  font-size: 14px;
  font-weight: 800;
  color: #8b2c00;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #d97706;
}
.bd-traditional .bd-section { margin-bottom: 20px; }
.bd-traditional .bd-row { display: flex; margin-bottom: 8px; }
.bd-traditional .bd-label { font-size: 13px; font-weight: 600; color: #92400e; min-width: 180px; flex-shrink: 0; }
.bd-traditional .bd-value { font-size: 13px; color: #1a0800; }
.bd-traditional .bd-colon { margin: 0 12px; color: #d97706; }

/* Elegant Minimal */
.bd-elegant {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background: #fff;
  min-height: 1100px;
}
.bd-elegant .bd-border-top {
  height: 6px;
  background: linear-gradient(90deg, #6366f1, #ec4899, #f59e0b);
}
.bd-elegant .bd-inner { padding: 40px 56px; }
.bd-elegant .bd-header { display: flex; align-items: center; gap: 28px; margin-bottom: 36px; }
.bd-elegant .bd-photo {
  width: 110px; height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #6366f1;
}
.bd-elegant .bd-photo-placeholder {
  width: 110px; height: 140px;
  background: rgba(99,102,241,0.08);
  border: 3px solid #6366f1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}
.bd-elegant .bd-title { font-size: 30px; font-weight: 900; color: #0f172a; }
.bd-elegant .bd-subtitle { font-size: 14px; color: #6366f1; font-weight: 600; margin-top: 4px; }
.bd-elegant .bd-section { margin-bottom: 24px; }
.bd-elegant .bd-section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6366f1;
  margin-bottom: 12px;
}
.bd-elegant .bd-row { display: grid; grid-template-columns: 170px 1fr; gap: 8px; margin-bottom: 8px; }
.bd-elegant .bd-label { font-size: 13px; font-weight: 600; color: #64748b; }
.bd-elegant .bd-value { font-size: 13px; color: #1e293b; }
.bd-elegant .bd-divider { border: none; border-top: 1px solid #f1f5f9; margin: 16px 0; }

/* Wedding Theme */
.bd-wedding {
  font-family: 'Playfair Display', serif;
  color: #4a0e35;
  background: #fff9fb;
  min-height: 1100px;
  position: relative;
  overflow: hidden;
}
.bd-wedding .bd-corner {
  position: absolute;
  width: 80px; height: 80px;
  opacity: 0.4;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #be185d;
}
.bd-wedding .bd-corner-tl { top: 0; left: 0; }
.bd-wedding .bd-corner-tr { top: 0; right: 0; transform: scaleX(-1); }
.bd-wedding .bd-corner-bl { bottom: 0; left: 0; transform: scaleY(-1); }
.bd-wedding .bd-corner-br { bottom: 0; right: 0; transform: scale(-1); }
.bd-wedding .bd-inner { padding: 48px 64px; }
.bd-wedding .bd-header { text-align: center; margin-bottom: 28px; }
.bd-wedding .bd-title { font-size: 32px; font-weight: 700; color: #9d174d; letter-spacing: 2px; }
.bd-wedding .bd-hearts { font-size: 18px; color: #be185d; margin: 8px 0; letter-spacing: 4px; }
.bd-wedding .bd-photo {
  width: 120px; height: 150px;
  object-fit: cover;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  border: 4px solid #f9a8d4;
  margin: 0 auto;
  display: block;
}
.bd-wedding .bd-photo-placeholder {
  width: 120px; height: 150px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  border: 4px solid #f9a8d4;
  background: rgba(249,168,212,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto;
}
.bd-wedding .bd-section { margin-bottom: 22px; }
.bd-wedding .bd-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #9d174d;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #fce7f3;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.bd-wedding .bd-row { display: flex; margin-bottom: 8px; }
.bd-wedding .bd-label {
  font-size: 13px;
  font-weight: 600;
  color: #db2777;
  min-width: 175px;
  font-family: 'Inter', sans-serif;
}
.bd-wedding .bd-value { font-size: 13px; color: #4a0e35; font-family: 'Inter', sans-serif; }
.bd-wedding .bd-colon { margin: 0 10px; color: #f9a8d4; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
