/* =============================================
   RISNA CV BUILDER — CV Template Styles
   A4 Paper Layout + 6 Template Designs
   ============================================= */

/* --- Shared CV Render Base --- */
.rcv-cv-render {
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    line-height: 1.5;
    color: #1a1a1a;
    overflow: hidden;
    position: relative;
}

.rcv-cv-render * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.rcv-cv-render h1 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.rcv-cv-render h2 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.rcv-cv-render h3 {
    font-size: 11px;
    font-weight: 700;
}

.rcv-cv-render h4 {
    font-size: 10px;
    font-weight: 600;
    color: #555;
}

.rcv-cv-render p {
    font-size: 9px;
    line-height: 1.5;
}

.rcv-cv-render ul {
    list-style: none;
}

.rcv-cv-render a {
    color: inherit;
    text-decoration: none;
}

/* Section spacing */
.cv-section {
    margin-bottom: 14px;
}

.cv-section:last-child {
    margin-bottom: 0;
}

.cv-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-bottom: 4px;
    margin-bottom: 8px;
    border-bottom: 1.5px solid #e0e0e0;
}

/* Experience / Education items */
.cv-item {
    margin-bottom: 10px;
}

.cv-item:last-child {
    margin-bottom: 0;
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3px;
}

.cv-item-title {
    font-size: 10px;
    font-weight: 700;
}

.cv-item-date {
    font-size: 9px;
    color: #777;
    white-space: nowrap;
}

.cv-item-sub {
    font-size: 9px;
    color: #555;
    font-weight: 500;
    margin-bottom: 3px;
}

.cv-item-desc {
    font-size: 9px;
    color: #444;
    line-height: 1.5;
    white-space: pre-line;
}

/* Contact info row */
.cv-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 9px;
    color: #555;
}

.cv-contact-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.cv-contact-icon {
    font-size: 12px;
    line-height: 1;
}

/* Skills tags */
.cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cv-skill-item {
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 500;
}

/* Photo */
.cv-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Languages */
.cv-lang-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 9px;
}

.cv-lang-level {
    color: #777;
}

/* ==========================================
   TEMPLATE 1: MODERN (Sidebar)
   ========================================== */
.cv-modern {
    display: flex;
    height: 100%;
}

.cv-modern .cv-sidebar {
    width: 35%;
    background: linear-gradient(180deg, #1a237e 0%, #0d1547 100%);
    color: #fff;
    padding: 20px 14px;
    flex-shrink: 0;
}

.cv-modern .cv-sidebar .cv-photo {
    display: block;
    margin: 0 auto 14px;
    border-color: rgba(255, 255, 255, 0.3);
}

.cv-modern .cv-sidebar h1 {
    text-align: center;
    font-size: 16px;
    margin-bottom: 4px;
    color: #fff;
}

.cv-modern .cv-sidebar .cv-jobtitle {
    text-align: center;
    font-size: 10px;
    opacity: 0.75;
    margin-bottom: 16px;
}

.cv-modern .cv-sidebar .cv-section-title {
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    font-size: 9px;
    letter-spacing: 1.5px;
}

.cv-modern .cv-sidebar .cv-contact {
    flex-direction: column;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
}

.cv-modern .cv-sidebar .cv-contact-icon {
    color: #818CF8;
}

.cv-modern .cv-sidebar .cv-skill-item {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 3px;
}

.cv-modern .cv-sidebar .cv-lang-item {
    color: rgba(255, 255, 255, 0.8);
}

.cv-modern .cv-sidebar .cv-lang-level {
    color: rgba(255, 255, 255, 0.5);
}

.cv-modern .cv-main {
    flex: 1;
    padding: 20px 18px;
    overflow: hidden;
}

.cv-modern .cv-main .cv-section-title {
    color: #1a237e;
    border-color: #1a237e;
}

/* ==========================================
   TEMPLATE 2: MINIMALIST
   ========================================== */
.cv-minimalist {
    padding: 24px 20px;
    height: 100%;
}

.cv-minimalist .cv-header {
    text-align: center;
    margin-bottom: 16px;
}

.cv-minimalist .cv-header h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.cv-minimalist .cv-header .cv-jobtitle {
    font-size: 11px;
    color: #888;
    font-weight: 400;
    margin-top: 2px;
}

.cv-minimalist .cv-header .cv-contact {
    justify-content: center;
    margin-top: 8px;
    color: #888;
}

.cv-minimalist .cv-section-title {
    color: #FF6B6B;
    border-color: #FF6B6B;
}

.cv-minimalist .cv-body {
    display: flex;
    gap: 20px;
}

.cv-minimalist .cv-body-left {
    flex: 1.3;
}

.cv-minimalist .cv-body-right {
    flex: 1;
}

.cv-minimalist .cv-skill-item {
    background: #FFF0F0;
    color: #FF6B6B;
}

/* ==========================================
   TEMPLATE 3: CREATIVE (Gradient Header)
   ========================================== */
.cv-creative {
    height: 100%;
}

.cv-creative .cv-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 22px 20px 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cv-creative .cv-hero .cv-photo {
    border-color: rgba(255, 255, 255, 0.4);
    width: 60px;
    height: 60px;
}

.cv-creative .cv-hero h1 {
    font-size: 18px;
    color: #fff;
}

.cv-creative .cv-hero .cv-jobtitle {
    font-size: 10px;
    opacity: 0.85;
}

.cv-creative .cv-hero .cv-contact {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 8px;
}

.cv-creative .cv-body {
    display: flex;
    gap: 18px;
    padding: 16px 20px;
}

.cv-creative .cv-body-left {
    flex: 1.3;
}

.cv-creative .cv-body-right {
    flex: 1;
}

.cv-creative .cv-section-title {
    color: #667eea;
    border-color: #667eea;
}

.cv-creative .cv-skill-item {
    background: #EEF0FF;
    color: #667eea;
}

/* ==========================================
   TEMPLATE 4: PROFESSIONAL (Classic)
   ========================================== */
.cv-professional {
    padding: 24px 22px;
    height: 100%;
    font-family: 'Playfair Display', Georgia, serif;
}

.cv-professional .cv-header {
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.cv-professional .cv-header h1 {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.3px;
}

.cv-professional .cv-header .cv-jobtitle {
    font-size: 12px;
    font-weight: 400;
    color: #555;
    font-family: 'Inter', sans-serif;
    margin-top: 2px;
}

.cv-professional .cv-header .cv-contact {
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
}

.cv-professional .cv-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: 1.5px;
    color: #1a1a1a;
    border-color: #1a1a1a;
    border-bottom-width: 1px;
}

.cv-professional .cv-skill-item {
    background: none;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
}

.cv-professional p,
.cv-professional .cv-item-desc,
.cv-professional .cv-item-sub,
.cv-professional .cv-item-date,
.cv-professional .cv-contact,
.cv-professional .cv-lang-item {
    font-family: 'Inter', sans-serif;
}

/* ==========================================
   TEMPLATE 5: ATS-FRIENDLY (No Columns)
   ========================================== */
.cv-ats-friendly {
    padding: 22px 20px;
    height: 100%;
    font-family: 'Inter', Arial, sans-serif;
}

.cv-ats-friendly .cv-header {
    margin-bottom: 12px;
}

.cv-ats-friendly .cv-header h1 {
    font-size: 18px;
    font-weight: 700;
}

.cv-ats-friendly .cv-header .cv-jobtitle {
    font-size: 10px;
    color: #555;
}

.cv-ats-friendly .cv-header .cv-contact {
    margin-top: 6px;
}

.cv-ats-friendly .cv-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f5f5f5;
    padding: 4px 8px;
    border: none;
    border-radius: 2px;
    margin-bottom: 8px;
}

.cv-ats-friendly .cv-skill-item {
    background: none;
    padding: 0;
    font-weight: 400;
}

.cv-ats-friendly .cv-skills-list {
    gap: 0;
}

.cv-ats-friendly .cv-skills-list .cv-skill-item::after {
    content: ' • ';
    color: #999;
    margin: 0 4px;
}

.cv-ats-friendly .cv-skills-list .cv-skill-item:last-child::after {
    display: none;
}

/* No photo for ATS */
.cv-ats-friendly .cv-photo {
    display: none;
}

/* ==========================================
   TEMPLATE 6: ATS CLEAN (Accent line)
   ========================================== */
.cv-ats-clean {
    height: 100%;
    font-family: 'Inter', Arial, sans-serif;
}

.cv-ats-clean .cv-top-line {
    height: 4px;
    background: #4F46E5;
}

.cv-ats-clean .cv-inner {
    padding: 20px;
}

.cv-ats-clean .cv-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.cv-ats-clean .cv-header h1 {
    font-size: 18px;
    font-weight: 700;
    color: #4F46E5;
}

.cv-ats-clean .cv-header .cv-jobtitle {
    font-size: 10px;
    color: #555;
}

.cv-ats-clean .cv-header .cv-contact {
    margin-top: 6px;
}

.cv-ats-clean .cv-section-title {
    color: #4F46E5;
    border-color: #4F46E5;
    border-bottom-width: 1.5px;
}

.cv-ats-clean .cv-skill-item {
    border: 1px solid #4F46E5;
    background: #EEF2FF;
    color: #4F46E5;
    border-radius: 3px;
}

/* No photo for ATS Clean */
.cv-ats-clean .cv-photo {
    display: none;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .rcv-cv-render {
        width: 210mm;
        min-height: 297mm;
        font-size: 10pt;
    }

    .cv-modern .cv-sidebar {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cv-creative .cv-hero {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ==========================================
   WATERMARK (for free exports)
   ========================================== */
.cv-watermark {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 7px;
    color: rgba(0, 0, 0, 0.2);
    font-weight: 500;
    letter-spacing: 0.3px;
}