/* Print Styles - Exact ATS Template Format
   ==========================================
   Transforms Template 2 into ATS-friendly format matching ats-template.html
*/

@media print {
    /* Hide UI elements */
    .theme-toggle,
    .pdf-button {
        display: none !important;
    }

    /* Page setup */
    @page {
        size: A4;
        margin: 0.5in;
    }

    /* Base reset - match ATS template exactly */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html, body {
        font-family: 'Times New Roman', Times, Georgia, serif !important;
        font-size: 11pt !important;
        line-height: 1.4 !important;
        color: #000 !important;
        background: white !important;
    }

    /* Container - single column */
    .resume-container {
        display: block !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: white !important;
    }

    /* ===================
       HEADER SECTION
       =================== */
    
    /* Hide the main content header - we'll use name from sidebar context */
    .main-content .header {
        display: block !important;
        text-align: center !important;
        margin-bottom: 0.3in !important;
        border-bottom: 2px solid #000 !important;
        padding-bottom: 0.15in !important;
    }

    .header .name {
        font-size: 18pt !important;
        font-weight: bold !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        margin-bottom: 0.1in !important;
        color: #000 !important;
    }

    .header .tagline {
        display: none !important;
    }

    /* ===================
       SIDEBAR -> Contact Info Row
       =================== */
    
    .sidebar {
        display: block !important;
        background: white !important;
        color: #000 !important;
        padding: 0 !important;
        text-align: center !important;
        position: absolute !important;
        top: 0.4in !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Only show first sidebar section (Contact) */
    .sidebar-section {
        display: none !important;
    }

    .sidebar-section:first-child {
        display: block !important;
    }

    .sidebar-title {
        display: none !important;
    }

    .contact-list {
        display: inline !important;
        list-style: none !important;
        font-size: 10pt !important;
    }

    .contact-list li {
        display: inline !important;
    }

    .contact-list li::after {
        content: " | " !important;
    }

    .contact-list li:last-child::after {
        content: "" !important;
    }

    .contact-list .icon {
        display: none !important;
    }

    .contact-list a,
    .contact-list span {
        color: #000 !important;
        text-decoration: none !important;
    }

    /* Hide other sidebar sections in their original position */
    .skill-group,
    .skill-list,
    .tool-tags,
    .language-list,
    .interests {
        display: none !important;
    }

    /* ===================
       MAIN CONTENT
       =================== */
    
    .main-content {
        padding: 0 !important;
        margin-top: 0.8in !important;
    }

    /* Section styling - match ATS template */
    .section {
        margin-bottom: 0.2in !important;
    }

    .section-title {
        font-size: 12pt !important;
        font-weight: bold !important;
        text-transform: uppercase !important;
        border-bottom: 1px solid #000 !important;
        margin-bottom: 0.1in !important;
        padding-bottom: 0.05in !important;
        color: #000 !important;
    }

    .section-icon {
        display: none !important;
    }

    /* About section */
    .about-text {
        font-size: 11pt !important;
        line-height: 1.4 !important;
    }

    /* ===================
       EDUCATION - Match ATS format
       =================== */
    
    .timeline-item {
        padding: 0 !important;
        margin-bottom: 0.15in !important;
    }

    .timeline-marker,
    .timeline-marker::after {
        display: none !important;
    }

    .timeline-content {
        padding: 0 !important;
    }

    .timeline-header {
        display: flex !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
    }

    .timeline-header h3 {
        font-size: 11pt !important;
        font-weight: bold !important;
        margin: 0 !important;
    }

    .timeline-date {
        font-size: 11pt !important;
        text-align: right !important;
    }

    .timeline-subtitle {
        font-style: italic !important;
        font-size: 11pt !important;
        margin: 0 !important;
        color: #000 !important;
    }

    .timeline-org {
        font-size: 11pt !important;
        margin: 0 !important;
    }

    /* CGPA as list item */
    .highlight-box {
        display: block !important;
        background: none !important;
        padding: 0 !important;
        margin: 0.05in 0 0 0.25in !important;
        font-size: 11pt !important;
    }

    .highlight-box::before {
        content: "• " !important;
    }

    .cgpa-label {
        font-size: 11pt !important;
    }

    .cgpa-label::after {
        content: ": " !important;
    }

    .cgpa-value {
        font-size: 11pt !important;
        font-weight: normal !important;
        color: #000 !important;
    }

    /* Dean's List as list item */
    .achievements-box {
        background: none !important;
        padding: 0 !important;
        margin: 0 0 0 0.25in !important;
    }

    .achievements-box h4 {
        display: none !important;
    }

    .achievements-box ul {
        list-style: disc !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .achievements-box li {
        display: list-item !important;
        font-size: 11pt !important;
        margin-left: 0 !important;
    }

    .achievements-box li::before {
        content: "" !important;
    }

    /* Combine all dean's list into one line */
    .achievements-box ul {
        display: block !important;
    }

    .achievements-box li {
        display: inline !important;
    }

    .achievements-box li:not(:last-child)::after {
        content: ", " !important;
    }

    .achievements-box::before {
        content: "• Dean's List: " !important;
        font-size: 11pt !important;
    }

    /* ===================
       FINAL YEAR PROJECT - Match ATS format
       =================== */
    
    .fyp-card {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        margin-bottom: 0.15in !important;
    }

    .fyp-title {
        font-size: 11pt !important;
        font-weight: bold !important;
        margin: 0 0 0.05in 0 !important;
    }

    .fyp-description {
        font-size: 11pt !important;
        margin: 0 0 0.05in 0.25in !important;
    }

    .fyp-description::before {
        content: "• " !important;
        margin-left: -0.15in !important;
    }

    .fyp-tech {
        display: block !important;
        margin-left: 0.25in !important;
        font-size: 11pt !important;
    }

    .fyp-tech::before {
        content: "• Technologies: " !important;
    }

    .tech-badge {
        display: inline !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        font-size: 11pt !important;
        color: #000 !important;
    }

    .tech-badge:not(:last-child)::after {
        content: ", " !important;
    }

    /* ===================
       SKILLS - Recreate at bottom as Technical Skills section
       =================== */
    
    /* We'll need to show skills from sidebar - but CSS can't move elements
       So skills will appear where sidebar is positioned */

    /* Keep sections together */
    .section,
    .timeline-item,
    .fyp-card {
        page-break-inside: avoid !important;
    }

    h1, h2, h3, h4,
    .section-title {
        page-break-after: avoid !important;
    }

    /* Links */
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}
