/* CoolCards.in Resume Studio Styles
 * High-craft split-screen resume builder and vector-accurate A4 Resume paper layouts
 */

/* Resume Paper Container */
.res-paper {
  background: #ffffff;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 38px 42px;
  min-height: 1120px;
  box-sizing: border-box;
  line-height: 1.55;
  font-size: 13px;
  position: relative;
}

/* Base Resume Elements */
.res-paper h1, .res-paper h2, .res-paper h3, .res-paper h4, .res-paper p, .res-paper ul {
  margin: 0;
  padding: 0;
}

.res-name {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.res-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--res-accent, #10b981);
  margin-top: 6px;
}

/* Contact Bar with generous top and bottom margins around the divider line */
.res-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  color: #4b5563;
}

.res-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.res-contact-item i {
  color: var(--res-accent, #10b981);
  font-size: 11px;
}

.res-contact-item a {
  color: inherit;
  text-decoration: none;
}

.res-contact-item a:hover {
  text-decoration: underline;
  color: var(--res-accent, #10b981);
}

/* Sections with generous top and bottom margins around horizontal lines */
.res-sec {
  margin-top: 24px;
}

.res-sec-title {
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #111827;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--res-accent, #10b981);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.res-summary-text {
  font-size: 12.5px;
  color: #374151;
  line-height: 1.65;
}

/* Experience & Education Items */
.res-item {
  margin-bottom: 16px;
}

.res-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.res-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}

.res-item-company {
  font-size: 13px;
  font-weight: 600;
  color: var(--res-accent, #10b981);
}

.res-item-date {
  font-size: 11.5px;
  color: #6b7280;
  font-weight: 500;
}

.res-item-loc {
  font-size: 11.5px;
  color: #9ca3af;
  font-style: italic;
  margin-left: 6px;
}

.res-bullets {
  list-style: disc;
  margin: 8px 0 0 18px;
  color: #374151;
  font-size: 12px;
  line-height: 1.6;
}

.res-bullets li {
  margin-bottom: 5px;
}

/* Skill Tags */
.res-skill-group {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
}

.res-skill-label {
  font-weight: 700;
  color: #111827;
  min-width: 90px;
}

.res-skill-list {
  color: #374151;
  line-height: 1.5;
}

.res-skill-tag {
  display: inline-block;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  margin: 2px 3px 2px 0;
  color: #1f2937;
}

/* Template 1: Modern Executive (Two Column Layout) */
.res-paper.tpl-modern .res-body-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  margin-top: 16px;
}

/* Template 2: Minimalist ATS (Traditional Single Column) */
.res-paper.tpl-ats {
  padding: 38px 42px;
}
.res-paper.tpl-ats .res-name {
  text-align: center;
  font-size: 24px;
}
.res-paper.tpl-ats .res-title {
  text-align: center;
}
.res-paper.tpl-ats .res-contact-bar {
  justify-content: center;
  border-bottom: 1px solid #9ca3af;
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.res-paper.tpl-ats .res-sec-title {
  border-bottom: 1px solid #111827;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* Template 3: Tech Innovator */
.res-paper.tpl-tech {
  border-top: 5px solid var(--res-accent, #10b981);
}
.res-paper.tpl-tech .res-skill-tag {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #065f46;
  font-weight: 600;
}

/* Template 4: Compact 1-Page */
.res-paper.tpl-compact {
  padding: 30px 34px;
  font-size: 12px;
  line-height: 1.45;
}
.res-paper.tpl-compact .res-sec {
  margin-top: 16px;
}
.res-paper.tpl-compact .res-sec-title {
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.res-paper.tpl-compact .res-contact-bar {
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.res-paper.tpl-compact .res-name {
  font-size: 22px;
}
.res-paper.tpl-compact .res-item {
  margin-bottom: 10px;
}
.res-paper.tpl-compact .res-bullets {
  margin-top: 4px;
}

/* Item Action Buttons in Repeater */
.res-item-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--inv-muted);
}

.res-btn-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 12px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.res-btn-remove:hover {
  background: rgba(239, 68, 68, 0.12);
}

.res-card-repeater {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--inv-border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.res-btn-add {
  width: 100%;
  margin-top: 8px;
}

/* Color Accent Preset Chips */
.res-color-presets {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.res-color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.res-color-dot:hover {
  transform: scale(1.15);
}

.res-color-dot.active {
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Print Styles for Flawless A4 Vector Export & Zero Header Printing */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 10mm 10mm 10mm;
  }
  
  html, body {
    background: #ffffff !important;
    color: #111827 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Explicitly hide the website top navigation, sidebar, resizer, controls, and footers */
  header,
  nav,
  .cc-global-header,
  .no-print,
  .cc-tools-strip-container,
  .cc-header-logo-area,
  .cc-global-header-inner,
  .cc-top-nav-wrap,
  .inv-mobile-tabs,
  .inv-editor-sidebar,
  .inv-resizer,
  .inv-preview-header,
  .inv-preview-controls,
  .site-footer,
  .editor-footer,
  .preview-note,
  .skip-link,
  .toast {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
  }

  .inv-studio {
    display: block !important;
    height: auto !important;
    width: 100% !important;
    overflow: visible !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  .inv-preview-area {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
    border: none !important;
  }

  .inv-preview-viewport {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
    border: none !important;
  }

  .inv-paper-wrapper {
    box-shadow: none !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  /* Safe 10-pixel padding all around the printed resume to guarantee zero text cut off */
  .res-paper,
  .res-paper.tpl-ats,
  .res-paper.tpl-modern,
  .res-paper.tpl-tech,
  .res-paper.tpl-compact {
    padding: 10px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: auto !important;
    overflow: visible !important;
  }
}
