/* style.css - Refactored CV Sheet Styling */

:root {
    --cv-bg: #ffffff;
    --cv-text: #2c2c2e;
    --cv-primary: #511254; /* optimized dark purple for print readability */
    --cv-secondary: #900a5d; /* optimized dark pink for print readability */
    --cv-muted: #555558;
    --cv-light-border: #e2e2e7;
}

/* 1. SCREEN WRAPPER STYLING */
body {
    background-color: var(--dark-bg); /* Use global dark theme background */
}

/* Simulate A4 paper on screen */
.cv-page {
    background-color: var(--cv-bg);
    color: var(--cv-text);
    max-width: 850px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    font-size: 10.5pt;
    line-height: 1.35;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Header section on CV */
.cv-header {
    border-bottom: 3px solid var(--cv-primary);
    padding-bottom: 12px;
}

.cv-name {
    color: var(--cv-primary);
    font-size: 24pt;
    letter-spacing: -0.5px;
}

.cv-subtitle {
    color: var(--cv-secondary);
    font-weight: 600;
}

.cv-contact-details {
    color: var(--cv-muted);
    font-size: 9.5pt;
    line-height: 1.4;
}

.cv-contact-details p {
    margin: 0;
}

.cv-contact-details a {
    color: var(--cv-secondary);
    text-decoration: none;
    font-weight: 500;
}

.cv-contact-details a:hover {
    text-decoration: underline;
}

/* CV Sections */
.cv-section-title {
    color: var(--cv-secondary);
    font-size: 12pt;
    font-weight: 700;
    border-bottom: 1.5px solid var(--cv-light-border);
    padding-bottom: 4px;
    margin-top: 15px;
}

.cv-section-body {
    font-size: 9.5pt;
}

.cv-section-body p {
    margin-bottom: 8px;
}

/* Lists styling */
.cv-section-body ul {
    padding-left: 15px;
    margin-bottom: 8px;
}

.cv-section-body li {
    margin-bottom: 4px;
}

/* Specific elements style */
.cv-skills ul {
    list-style-type: none;
    padding-left: 0;
}

.cv-skills li {
    margin-bottom: 6px;
    line-height: 1.3;
}

.cv-skills strong {
    color: var(--cv-primary);
}

.cv-realizations h3 {
    font-size: 10.5pt;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 4px;
    color: var(--cv-primary);
}

.cv-realizations h3 a {
    color: var(--cv-primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--cv-primary);
}

.cv-realizations h3 a:hover {
    color: var(--cv-secondary);
    border-bottom-style: solid;
}

.cv-realizations ul {
    margin-bottom: 10px;
}

.cv-experience li {
    margin-bottom: 8px;
}

.cv-diplomas ul,
.cv-interests ul {
    list-style-type: circle;
}

/* Column border on desktop */
@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid var(--cv-light-border) !important;
        padding-left: 25px;
    }
}

/* 2. PRINT OPTIMIZATIONS (Ensures exactly 1 page A4) */
@page {
    size: A4 portrait;
    margin: 1.0cm 1.2cm;
}

@media print {
    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .cv-page {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        font-size: 9.5pt !important;
        line-height: 1.25 !important;
    }

    .cv-name {
        font-size: 20pt !important;
    }

    .cv-subtitle {
        font-size: 12pt !important;
    }

    .cv-contact-details {
        font-size: 8.5pt !important;
    }

    .cv-section-title {
        font-size: 10.5pt !important;
        margin-top: 8px !important;
        margin-bottom: 4px !important;
    }

    .cv-section-body {
        font-size: 8.5pt !important;
    }

    .cv-section-body p {
        margin-bottom: 2px !important;
    }

    .cv-section-body ul {
        margin-bottom: 2px !important;
    }

    .cv-section-body li {
        margin-bottom: 1px !important;
    }

    .cv-realizations h3 {
        font-size: 9.5pt !important;
        margin-top: 4px !important;
        margin-bottom: 2px !important;
    }

    .cv-realizations ul {
        margin-bottom: 2px !important;
    }

    .border-start-md {
        border-left: 1px solid var(--cv-light-border) !important;
        padding-left: 15px !important;
    }

    /* Print color adjustments for perfect contrast */
    :root {
        --cv-primary: #3b0d3d !important;
        --cv-secondary: #700748 !important;
    }

    /* Print links shouldn't look like ugly blue/underlined links or show full urls */
    a {
        color: inherit !important;
        text-decoration: none !important;
    }
}
