/* Professional CV Styles - Based on sample_cv.jpg */

/* General CV Container */
.cv-document-professional {
    display: grid;
    grid-template-columns: 300px 1fr;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    min-height: 800px;
}

/* Left Column - Dark Blue */
.cv-left-column {
    background: #2c3e50;
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

/* Right Column - White */
.cv-right-column {
    padding: 30px;
    background: white;
    display: flex;
    flex-direction: column;
}

/* Profile Section */
.cv-profile-section {
    text-align: center;
    margin-bottom: 20px;
}

.cv-profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cv-name-left {
    font-size: 1.8em;
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
    line-height: 1.2;
}

.cv-title-left {
    font-size: 1.1em;
    margin-bottom: 20px;
    opacity: 0.9;
    text-align: center;
    font-weight: 300;
}

/* Section Titles */
.cv-section-title-left {
    color: #3498db;
    font-size: 1em;
    font-weight: bold;
    margin: 20px 0 10px 0;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cv-section-title-right {
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: bold;
    margin: 20px 0 10px 0;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Left Column Sections */
.cv-section-left {
    margin-bottom: 25px;
}

/* Contact Info */
.cv-contact-list {
    margin-top: 10px;
}

.contact-item-left {
    margin: 8px 0;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item-left .icon {
    font-size: 0.8em;
    opacity: 0.8;
}

.contact-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Skills */
.skills-list-left {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.skill-badge {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* Languages */
.languages-list-left {
    margin-top: 10px;
}

.language-item {
    margin: 5px 0;
    font-size: 0.9em;
    padding: 3px 0;
    border-left: 2px solid #3498db;
    padding-left: 8px;
}

/* Interests */
.interests-list-left {
    margin-top: 10px;
}

.interest-item {
    margin: 5px 0;
    font-size: 0.9em;
    padding: 3px 0;
    opacity: 0.9;
}

/* Logo Section */
.cv-logo-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.cv-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 10px;
    object-fit: contain;
    background: white;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cv-logo-title {
    font-size: 0.9em;
    font-weight: bold;
    margin: 5px 0;
    color: #3498db;
}

.cv-logo-tagline {
    font-size: 0.7em;
    margin: 0;
    opacity: 0.8;
    font-style: italic;
}

/* Right Column Sections */
.cv-section-right {
    margin-bottom: 25px;
}

/* Tech Stack */
.tech-stack-right {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.tech-badge {
    display: inline-block;
    background: #ecf0f1;
    color: #2c3e50;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    border: 1px solid #bdc3c7;
}

/* Summary Text */
.summary-text-right {
    line-height: 1.6;
    margin: 10px 0;
    color: #34495e;
    text-align: justify;
}

/* Content Items */
.experience-list-right,
.education-list-right,
.projects-list-right,
.certifications-list-right,
.awards-list-right {
    margin-top: 10px;
}

.exp-item,
.edu-item,
.project-item,
.cert-item,
.award-item {
    margin: 10px 0;
    line-height: 1.5;
    border-left: 3px solid #3498db;
    padding-left: 10px;
    color: #34495e;
    position: relative;
}

.exp-item::before,
.edu-item::before,
.project-item::before,
.cert-item::before,
.award-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #3498db;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cv-document-professional {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 10px;
    }
    
    .cv-left-column,
    .cv-right-column {
        padding: 20px;
    }
    
    .cv-name-left {
        font-size: 1.5em;
    }
    
    .cv-title-left {
        font-size: 1em;
    }
    
    .cv-profile-photo {
        width: 100px;
        height: 100px;
    }
}

/* Print Styles */
@media print {
    .cv-document-professional {
        box-shadow: none;
        max-width: 100%;
        margin: 0;
        grid-template-columns: 280px 1fr;
    }
    
    .cv-left-column,
    .cv-right-column {
        padding: 20px;
    }
    
    .skill-badge,
    .tech-badge {
        border: 1px solid #3498db;
        background: white !important;
        color: #3498db !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Additional Professional Elements */
.cv-section-left:last-child,
.cv-section-right:last-child {
    margin-bottom: 0;
}

/* Hover effects for interactive elements */
.contact-item-left:hover {
    opacity: 0.8;
    transform: translateX(2px);
    transition: all 0.3s ease;
}

.language-item:hover,
.interest-item:hover {
    opacity: 1;
    transform: translateX(2px);
    transition: all 0.3s ease;
}

/* Enhanced typography */
.cv-document-professional {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.4;
}

/* Color scheme based on sample */
.cv-left-column {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.cv-section-title-left,
.skill-badge,
.exp-item,
.edu-item,
.project-item,
.cert-item,
.award-item {
    border-color: #3498db;
}

.cv-section-title-right {
    color: #2c3e50;
    border-color: #3498db;
}

/* CV Creator Button Styles */
.btn-save {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: linear-gradient(135deg, #219a52, #27ae60) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-gallery {
    background: linear-gradient(135deg, #8e44ad, #9b59b6) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-gallery:hover {
    background: linear-gradient(135deg, #7d3c98, #8e44ad) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
}

/* Save Status Message */
.save-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.save-status.show {
    opacity: 1;
    transform: translateX(0);
}

.save-status.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.save-status.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.save-status.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    /* CV Creator Form Improvements */
    .container.grid.grid-2 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .form-section {
        order: 1;
    }
    
    .preview-section {
        order: 2;
    }
    
    /* CV Preview Card Mobile */
    .cv-preview-card {
        margin: 0 !important;
        border-radius: 8px !important;
    }
    
    .cv-document-professional {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }
    
    .cv-left-column, .cv-right-column {
        padding: 20px !important;
    }
    
    .cv-profile-photo {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto 15px auto !important;
    }
    
    .cv-name-left {
        font-size: 1.5em !important;
        text-align: center !important;
    }
    
    .cv-title-left {
        font-size: 1em !important;
        text-align: center !important;
    }
    
    /* Button Layout Mobile */
    .text-center.mb-20 {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 20px !important;
    }
    
    .btn {
        width: 100% !important;
        padding: 15px 20px !important;
        font-size: 1em !important;
        border-radius: 8px !important;
        text-align: center !important;
        min-height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Save Status Mobile */
    .save-status {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        padding: 12px 15px !important;
        font-size: 0.9em !important;
        text-align: center !important;
        transform: translateY(-100px) !important;
        border-radius: 6px !important;
    }
    
    .save-status.show {
        transform: translateY(0) !important;
    }
    
    /* Form Fields Mobile */
    .cv-section-card {
        margin-bottom: 20px !important;
        padding: 15px !important;
        border-radius: 8px !important;
    }
    
    .form-group {
        margin-bottom: 15px !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px !important;
        border-radius: 6px !important;
    }
    
    .form-group textarea {
        min-height: 100px !important;
    }
    
    /* Header Mobile in Forms */
    h1 {
        font-size: 1.8em !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }
    
    h2 {
        font-size: 1.3em !important;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile Devices */
    .container {
        padding: 10px !important;
    }
    
    .cv-section-card {
        padding: 12px !important;
        margin-bottom: 15px !important;
    }
    
    .cv-preview-card {
        padding: 10px !important;
    }
    
    .cv-left-column, .cv-right-column {
        padding: 15px !important;
    }
    
    .cv-profile-photo {
        width: 80px !important;
        height: 80px !important;
    }
    
    .cv-name-left {
        font-size: 1.3em !important;
    }
    
    .cv-title-left {
        font-size: 0.9em !important;
    }
    
    .btn {
        padding: 12px 15px !important;
        font-size: 0.9em !important;
        min-height: 45px !important;
    }
    
    .save-status {
        font-size: 0.8em !important;
        padding: 10px 12px !important;
    }
    
    h1 {
        font-size: 1.5em !important;
    }
    
    h2 {
        font-size: 1.2em !important;
    }
}
