/* --- 1. WEB VIEW STYLING (Matches Site Theme) --- */
.cv-container {
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.cv-header {
    text-align: center;
    margin-bottom: 40px;
}

.cv-header h1 {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: #f8f8f2;
}

.cv-header p, .cv-header a {
    color: #ff79c6;
    font-family: monospace;
    text-decoration: none;
}

/* --- CV Action Buttons --- */
.cv-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.cv-btn {
    background: transparent;
    border: 1px solid #ff79c6;
    color: #ff79c6;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-family: monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-btn:hover {
    background: rgba(255, 121, 198, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 121, 198, 0.2);
    color: #ff79c6;
}

.cv-section-title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    margin-top: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.2rem;
    color: #8be9fd;
    letter-spacing: 1px;
}

.cv-item {
    margin-bottom: 15px;
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.cv-item-title {
    font-weight: bold;
    color: #f8f8f2;
    font-size: 1.05rem;
}

.cv-item-subtitle {
    font-style: italic;
    color: #bd93f9;
    font-size: 0.95rem;
}

.cv-item-date {
    font-family: monospace;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 15px;
}

.cv-container ul {
    margin-top: 10px;
    margin-bottom: 20px;
    padding-left: 20px;
}

.cv-container li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}


/* --- 2. PRINT-SPECIFIC STYLING (White A4) --- */
@media print {
    /* Hide all website UI and our action buttons */
    nav, footer, .header, .menu, .logo, .site-header, .print-hide {
        display: none !important;
    }

    body, html {
        background: white !important;
        color: black !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cv-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Force all text to black/dark grey for printing */
    .cv-header h1, .cv-item-title, .cv-section-title {
        color: black !important;
    }
    
    .cv-header p, .cv-header a, .cv-item-subtitle, .cv-item-date, .cv-container li {
        color: #333 !important;
    }

    .cv-section-title {
        border-bottom: 1px solid #000 !important;
    }

    /* Set A4 Page Margins */
    @page {
        size: A4;
        margin: 1.5cm;
    }

    /* Prevent awkward page breaks */
    h2, .cv-section-title, .cv-item-header {
        page-break-after: avoid;
    }

    ul, p, .cv-item {
        page-break-inside: avoid;
    }
}