/* Resume Print Styles */

/* Page Setup for Print */
@page {
    size: letter; /* 8.5in x 11in */
    margin: 0.5in 0.6in;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.4;
    color: #000;
    background-color: #fff;
    max-width: 980px;
    margin: 0 auto;
    padding: 0.5in;
}

.resume-container {
    width: 100%;
}

/* Header */
.resume-header {
    text-align: center;
    margin-bottom: 0.15in;
    padding-bottom: 0.1in;
    page-break-after: avoid;
    page-break-inside: avoid;
}

.resume-header h1 {
    font-size: 24pt;
    font-weight: 700;
    margin-bottom: 0.05in;
    letter-spacing: -0.5px;
}

.resume-header .location {
    font-size: 10pt;
    color: #333;
    margin-bottom: 0.08in;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.2em;
    flex-wrap: wrap;
    font-size: 9pt;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.contact-item i {
    color: #000;
    font-size: 10pt;
}

.contact-item a {
    color: #000;
    text-decoration: none;
}

/* Divider */
.divider {
    border: none;
    border-top: 1.5px solid #000;
    margin: 0.12in 0 0.12in 0;
    page-break-after: avoid;
}

/* Sections */
.resume-section {
    margin-bottom: 0.25in;
    page-break-inside: avoid;
    page-break-before: avoid;
}

.resume-section h2 {
    font-size: 14pt;
    font-weight: 700;
    margin-bottom: 0.12in;
    border-bottom: 1px solid #333;
    padding-bottom: 0.05in;
    page-break-after: avoid;
}

/* Job Entries */
.job {
    margin-bottom: 0.22in;
    page-break-inside: avoid;
}

.job-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.08in;
    gap: 1em;
}

.job-left {
    flex: 1;
}

.job-right {
    text-align: right;
    flex-shrink: 0;
}

.job .company {
    font-size: 12pt;
    font-weight: 700;
    margin-bottom: 0.02in;
}

.job .role {
    font-size: 10pt;
    font-weight: 500;
    color: #333;
    font-style: italic;
}

.job-right .location-label {
    font-size: 9pt;
    font-weight: 600;
    margin-bottom: 0.02in;
}

.job-right .period {
    font-size: 9pt;
    color: #555;
    font-style: italic;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15in;
    margin-bottom: 0.08in;
    margin-top: 0.05in;
}

.tech-tag {
    display: inline-block;
    padding: 0.02in 0.12in;
    background-color: #000;
    color: #fff;
    border-radius: 3px;
    font-size: 8pt;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Responsibilities */
.responsibilities {
    list-style: none;
    padding-left: 0;
    margin-top: 0.08in;
}

.responsibilities li {
    position: relative;
    padding-left: 0.18in;
    margin-bottom: 0.06in;
    font-size: 10pt;
    line-height: 1.35;
    color: #222;
}

.responsibilities li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #000;
}

.responsibilities li strong {
    font-weight: 700;
    color: #000;
}

/* Skills Section */
.skills-section {
    page-break-inside: avoid;
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 0.08in;
}

.skill-category {
    font-size: 10pt;
    line-height: 1.5;
}

.skill-category strong {
    font-weight: 700;
    margin-right: 0.08in;
}

.skill-list {
    color: #222;
}

/* Clearance Section */
.clearance-section {
    page-break-inside: avoid;
}

.clearance-info p {
    font-size: 10pt;
    margin-bottom: 0.05in;
    line-height: 1.4;
}

.clearance-details {
    color: #444;
    font-size: 9pt;
}

/* Print Instructions (screen only) */
.print-instructions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4361ee;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 10pt;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    z-index: 1000;
}

.print-instructions strong {
    display: block;
    margin-bottom: 5px;
}

/* Print-specific rules */
@media print {
    body {
        padding: 0;
        margin: 0;
        background: none;
    }

    .resume-container {
        width: 100%;
        max-width: none;
    }

    /* Hide print instructions when printing */
    .hide-on-print {
        display: none !important;
    }

    /* Ensure proper page breaks */
    .resume-section {
        page-break-inside: avoid;
    }

    .job {
        page-break-inside: avoid;
    }

    /* Force black text for better printing */
    body, .responsibilities li, .skill-list {
        color: #000 !important;
    }

    /* Ensure links are visible */
    .contact-item a {
        text-decoration: none;
        color: #000;
    }

    /* Optimize tech tags for print */
    .tech-tag {
        background-color: #000 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Screen preview (dark background) */
@media screen {
    body {
        background-color: #f5f5f5;
        padding: 1in;
    }

    .resume-container {
        background: white;
        padding: 0.6in;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 768px) {
    body {
        padding: 0.5in 0.25in;
    }

    .resume-container {
        padding: 0.4in;
    }

    .job-header-row {
        flex-direction: column;
        gap: 0.05in;
    }

    .job-right {
        text-align: left;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5em;
    }
}
