/* ======================================================================
   CV Templates — used in both the editor preview and Preview.cshtml
   ====================================================================== */

/* ── Shared base ──────────────────────────────────────────────────────── */
.cv-doc {
    background: #fff;
    padding: 32px 36px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    line-height: 1.55;
    color: #1a1a1a;
    min-height: 297mm;
    box-sizing: border-box;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Header */
.cv-header {
    margin-bottom: 20px;
}
.cv-name {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3px;
}
.cv-headline {
    font-size: 14px;
    margin-bottom: 6px;
}
.cv-contacts {
    font-size: 12px;
    color: #555;
}
.cv-contacts a { color: #555; text-decoration: underline; }

/* Placeholder text */
.cv-placeholder { opacity: 0.3; font-weight: normal; font-style: italic; }

/* Sections */
.cv-section { margin-bottom: 18px; }
.cv-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    padding-bottom: 4px;
}
.cv-summary-text { font-size: 13px; line-height: 1.6; }

/* Entries */
.cv-entry { margin-bottom: 12px; }
.cv-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.cv-entry-title { font-weight: 700; font-size: 13px; }
.cv-entry-date { font-size: 12px; color: #666; white-space: nowrap; }
.cv-entry-subtitle { font-size: 12px; color: #555; margin-bottom: 4px; }
.cv-entry-desc { font-size: 12px; color: #444; margin-top: 3px; }
.cv-entry-link { color: #4F46E5; font-size: 12px; text-decoration: none; }

/* Bullets */
.cv-bullets { margin: 5px 0 0; padding-left: 18px; }
.cv-bullets li { margin-bottom: 3px; font-size: 12px; line-height: 1.5; }

/* Skills grid */
.cv-skills-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-skill-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #374151;
}
.cv-skill-tag em { font-style: normal; color: #6B7280; }


/* ======================================================================
   Template: MINIMAL  (clean, black-only, no color accents)
   ====================================================================== */
.cv-template-minimal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
.cv-template-minimal .cv-name { color: #111827; font-size: 28px; }
.cv-template-minimal .cv-headline { color: #374151; }
.cv-template-minimal .cv-contacts { color: #6B7280; }
.cv-template-minimal .cv-contacts a { color: #374151; }
.cv-template-minimal .cv-section-title {
    color: #111827;
    border-bottom: 1px solid #d1d5db;
}
.cv-template-minimal .cv-entry-title { color: #111827; }
.cv-template-minimal .cv-entry-link { color: #374151; }
.cv-template-minimal .cv-skill-tag { background: #f3f4f6; color: #374151; }


/* ======================================================================
   Template: CLASSIC  (formal, dark navy header box, serif)
   ====================================================================== */
.cv-template-classic .cv-header {
    background: #1e3a5f;
    color: #fff;
    padding: 22px 24px;
    border-radius: 6px;
    margin-bottom: 22px;
}
.cv-template-classic .cv-name { color: #fff; font-size: 26px; }
.cv-template-classic .cv-headline { color: #93c5fd; font-style: italic; }
.cv-template-classic .cv-contacts { color: #bfdbfe; }
.cv-template-classic .cv-contacts a { color: #bfdbfe; }
.cv-template-classic .cv-placeholder { color: rgba(255,255,255,0.5); }
.cv-template-classic .cv-section-title {
    color: #1e3a5f;
    border-bottom: 2px solid #1e3a5f;
}
.cv-template-classic .cv-entry-title { color: #1e3a5f; }
.cv-template-classic .cv-skill-tag {
    background: #EFF6FF;
    color: #1E3A5F;
    border: 1px solid #BFDBFE;
}



/* ── Print ────────────────────────────────────────────────────────────── */
@page { margin: 10mm; }

@media print {
    .cv-doc {
        box-shadow: none;
        padding: 20px 24px;
        min-height: auto;
    }
    a { text-decoration: none; }
    /* Force background color to print (classic header) */
    .cv-template-classic .cv-header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
