/* Professional CV Theme System */

/* Base CV styles */
.cv-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
}

.cv-header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 3px solid;
}

.cv-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.cv-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.cv-contact {
    font-size: 0.95rem;
    opacity: 0.7;
}

.cv-section {
    margin-bottom: 35px;
}

.cv-section h2 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid;
}

.cv-section h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.cv-job-title {
    font-weight: bold;
    margin-bottom: 3px;
}

.cv-company {
    font-style: italic;
    margin-bottom: 3px;
}

.cv-date {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

.cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cv-skill {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Theme 1: Professional Blue */
.theme-professional-blue {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #dbeafe;
    --text-color: #1f2937;
    --light-bg: #f8fafc;
}

.theme-professional-blue .cv-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom-color: var(--primary-color);
}

.theme-professional-blue .cv-section h2 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.theme-professional-blue .cv-job-title {
    color: var(--secondary-color);
}

.theme-professional-blue .cv-skill {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Theme 2: Corporate Navy */
.theme-corporate-navy {
    --primary-color: #1e3a8a;
    --secondary-color: #3730a3;
    --accent-color: #e0e7ff;
    --text-color: #374151;
    --light-bg: #f9fafb;
}

.theme-corporate-navy .cv-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom-color: var(--primary-color);
}

.theme-corporate-navy .cv-section h2 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.theme-corporate-navy .cv-job-title {
    color: var(--secondary-color);
}

.theme-corporate-navy .cv-skill {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Theme 3: Healthcare Green */
.theme-healthcare-green {
    --primary-color: #059669;
    --secondary-color: #047857;
    --accent-color: #d1fae5;
    --text-color: #374151;
    --light-bg: #f9fafb;
}

.theme-healthcare-green .cv-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom-color: var(--primary-color);
}

.theme-healthcare-green .cv-section h2 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.theme-healthcare-green .cv-job-title {
    color: var(--secondary-color);
}

.theme-healthcare-green .cv-skill {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Theme 4: Tech Purple */
.theme-tech-purple {
    --primary-color: #7c3aed;
    --secondary-color: #6d28d9;
    --accent-color: #ede9fe;
    --text-color: #374151;
    --light-bg: #faf5ff;
}

.theme-tech-purple .cv-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom-color: var(--primary-color);
}

.theme-tech-purple .cv-section h2 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.theme-tech-purple .cv-job-title {
    color: var(--secondary-color);
}

.theme-tech-purple .cv-skill {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Theme 5: Executive Charcoal */
.theme-executive-charcoal {
    --primary-color: #374151;
    --secondary-color: #4b5563;
    --accent-color: #f3f4f6;
    --text-color: #1f2937;
    --light-bg: #f9fafb;
}

.theme-executive-charcoal .cv-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom-color: var(--primary-color);
}

.theme-executive-charcoal .cv-section h2 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.theme-executive-charcoal .cv-job-title {
    color: var(--secondary-color);
}

.theme-executive-charcoal .cv-skill {
    background: var(--accent-color);
    color: var(--primary-color);
    border: 1px solid #d1d5db;
}

/* Theme 6: Creative Teal */
.theme-creative-teal {
    --primary-color: #0d9488;
    --secondary-color: #0f766e;
    --accent-color: #ccfbf1;
    --text-color: #374151;
    --light-bg: #f0fdfa;
}

.theme-creative-teal .cv-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom-color: var(--primary-color);
}

.theme-creative-teal .cv-section h2 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.theme-creative-teal .cv-job-title {
    color: var(--secondary-color);
}

.theme-creative-teal .cv-skill {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Theme 7: Finance Burgundy */
.theme-finance-burgundy {
    --primary-color: #991b1b;
    --secondary-color: #7f1d1d;
    --accent-color: #fee2e2;
    --text-color: #374151;
    --light-bg: #fef2f2;
}

.theme-finance-burgundy .cv-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom-color: var(--primary-color);
}

.theme-finance-burgundy .cv-section h2 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.theme-finance-burgundy .cv-job-title {
    color: var(--secondary-color);
}

.theme-finance-burgundy .cv-skill {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Theme 8: Education Orange */
.theme-education-orange {
    --primary-color: #ea580c;
    --secondary-color: #c2410c;
    --accent-color: #fed7aa;
    --text-color: #374151;
    --light-bg: #fffbeb;
}

.theme-education-orange .cv-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom-color: var(--primary-color);
}

.theme-education-orange .cv-section h2 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.theme-education-orange .cv-job-title {
    color: var(--secondary-color);
}

.theme-education-orange .cv-skill {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Theme selector styles */
.theme-selector {
    margin-bottom: 20px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.theme-option {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.theme-option:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.theme-option.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.theme-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
}

.theme-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
}

.theme-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: white;
}

/* Theme preview colors */
.theme-option[data-theme="professional-blue"] .theme-preview::before {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.theme-option[data-theme="corporate-navy"] .theme-preview::before {
    background: linear-gradient(135deg, #1e3a8a, #3730a3);
}

.theme-option[data-theme="healthcare-green"] .theme-preview::before {
    background: linear-gradient(135deg, #059669, #047857);
}

.theme-option[data-theme="tech-purple"] .theme-preview::before {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.theme-option[data-theme="executive-charcoal"] .theme-preview::before {
    background: linear-gradient(135deg, #374151, #4b5563);
}

.theme-option[data-theme="creative-teal"] .theme-preview::before {
    background: linear-gradient(135deg, #0d9488, #0f766e);
}

.theme-option[data-theme="finance-burgundy"] .theme-preview::before {
    background: linear-gradient(135deg, #991b1b, #7f1d1d);
}

.theme-option[data-theme="education-orange"] .theme-preview::before {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

/* New Visual Theme Previews */
.theme-preview-professional::before {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    height: 15px;
}

.theme-preview-professional::after {
    background: white;
    height: 25px;
    border-left: 3px solid #3498db;
}

.theme-preview-creative::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
    height: 20px;
}

.theme-preview-creative::after {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    height: 20px;
}

.theme-preview-infographic::before {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    height: 15px;
}

.theme-preview-infographic::after {
    background: white;
    height: 25px;
    position: relative;
}

.theme-preview-infographic::after {
    content: '';
    background: white;
    background-image: 
        linear-gradient(90deg, #3b82f6 0%, #3b82f6 60%, #e2e8f0 60%, #e2e8f0 100%),
        linear-gradient(90deg, #8b5cf6 0%, #8b5cf6 80%, #e2e8f0 80%, #e2e8f0 100%);
    background-size: 100% 3px, 100% 3px;
    background-position: 0 5px, 0 10px;
    background-repeat: no-repeat;
}

.theme-preview-magazine::before {
    background: linear-gradient(90deg, #2c3e50 0%, #2c3e50 40%, #fafafa 40%, #fafafa 100%);
    height: 40px;
}

.theme-preview-split::before {
    background: linear-gradient(75deg, #4f46e5 0%, #4f46e5 45%, #ffffff 45%, #ffffff 100%);
    height: 40px;
}

.theme-preview-minimal::before {
    background: linear-gradient(180deg, #e53e3e 0%, #e53e3e 15%, #ffffff 15%, #ffffff 100%);
    height: 40px;
}

.theme-preview-bold::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
    height: 25px;
    border-radius: 8px 8px 0 0;
}

.theme-preview-bold::after {
    background: white;
    height: 15px;
    border-radius: 0 0 8px 8px;
}

.theme-preview-geometric::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
        white;
    height: 40px;
}

.theme-preview-corporate::before {
    background: linear-gradient(135deg, #1a365d, #2d3748);
    height: 18px;
}

.theme-preview-corporate::after {
    background: white;
    height: 22px;
}

.theme-preview-portfolio::before {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    height: 20px;
}

.theme-preview-portfolio::after {
    background: #2d3748;
    height: 20px;
}

.theme-preview-executive::before {
    background: linear-gradient(180deg, #c53030 0%, #c53030 20%, #f7fafc 20%, #f7fafc 100%);
    height: 40px;
}

.theme-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
}

/* File Upload Styles */
.drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.drop-zone.drag-over {
    border-color: #10b981;
    background: #ecfdf5;
    transform: scale(1.02);
}

.drop-zone-content h6 {
    color: #374151;
    margin-bottom: 8px;
}

.drop-zone-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-item i {
    margin-right: 8px;
    color: #059669;
}

.file-item .file-name {
    flex: 1;
    font-size: 0.9rem;
    color: #374151;
}

.file-item .file-size {
    font-size: 0.8rem;
    color: #6b7280;
    margin-left: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .cv-container {
        padding: 15px;
    }
    
    .cv-name {
        font-size: 2rem;
    }
    
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .drop-zone {
        padding: 30px 15px;
    }
}

@media print {
    .cv-container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .theme-selector {
        display: none;
    }
    
    .drop-zone {
        display: none;
    }
}