/* ===== PAGES/CV.CSS ===== */
/* CV/Resume page styles with print support */

/* CV page layout */
body.cv-page {
    max-width: 210mm;
}

body.cv-page h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 14px;
}

body.cv-page > main > p {
    margin-bottom: 8px;
}

/* Contact info */
.cv-contact {
    font-size: 12px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.cv-contact a {
    color: var(--text-primary);
}

.cv-contact a:hover {
    color: var(--accent);
}

/* Two-column layout */
.cv-columns {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 24px;
}

/* Experience sections */
.cv-exp {
    margin-bottom: 16px;
}

.cv-exp:last-child {
    margin-bottom: 0;
}

.cv-exp-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 6px;
}

.cv-exp-head span {
    color: var(--text-muted);
    white-space: nowrap;
}

.cv-exp p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

/* Skills list */
.cv-skills dt {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-top: 8px;
}

.cv-skills dt:first-child {
    margin-top: 0;
}

.cv-skills dd {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.4;
}

/* QR code */
.cv-qr {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
}

.cv-qr svg {
    width: 96px;
    height: 96px;
    background: #fff;
    border-radius: 4px;
    padding: 6px;
}

.cv-qr span {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: none;
}

/* Mobile CV layout */
@media (max-width: 600px) {
    .cv-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cv-side {
        order: -1;
    }
}

/* Print styles */
@media print {
    @page {
        size: A4;
        margin: 12mm 15mm;
    }

    body,
    body.cv-page {
        font-size: 9pt;
        line-height: 1.4;
        padding: 0;
        max-width: 100%;
        background: white;
        color: black;
    }

    a {
        color: inherit;
    }

    nav,
    .print-btn {
        display: none;
    }

    h2 {
        color: black;
        border-bottom: 1px solid #ccc;
        padding-bottom: 2px;
    }

    .cv-columns {
        gap: 16px;
    }

    .cv-exp {
        margin-bottom: 10px;
    }

    .cv-exp-head,
    .cv-exp p {
        font-size: 9pt;
    }

    .cv-exp p {
        line-height: 1.5;
    }

    .cv-skills dt {
        font-size: 8pt;
        color: black;
    }

    .cv-skills dd {
        font-size: 9pt;
    }

    .cv-qr {
        position: fixed;
        bottom: 0;
        right: 0;
        border: none;
        padding: 0;
        margin: 0;
    }

    .cv-qr svg {
        width: 48px;
        height: 48px;
        padding: 3px;
    }

    .cv-qr span {
        display: block;
        color: black;
    }
}
