/*
 * Portfolio Resume Tool - Styles
 */

/* Container */
.portfolio-resume-tool-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Form styling */
.portfolio-resume-tool-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.portfolio-resume-tool-form h2 {
    margin-top: 0;
    color: #2c3e50;
    text-align: center;
    font-weight: 700;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.15);
    transform: translateY(-1px);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.15);
}

.button {
    display: inline-block;
    padding: 14px 28px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

.button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.button:active {
    transform: translateY(0);
}

.button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* Preview section */
.portfolio-resume-preview {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    min-height: 400px;
    border: 1px solid #e9ecef;
}

#portfolio-resume-preview.loading {
    text-align: center;
    padding: 80px 20px;
    color: #7f8c8d;
    font-style: italic;
    font-size: 18px;
}

#portfolio-resume-preview.error {
    background: #fff5f5;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
    padding: 25px;
    border-radius: 0 10px 10px 0;
}

/* Resume preview styling */
.resume-preview {
    max-width: 900px;
    margin: 0 auto;
}

.resume-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 3px solid #ecf0f1;
    position: relative;
}

.resume-header h1 {
    margin: 0 0 15px 0;
    font-size: 32px;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.resume-header .contact-info {
    font-size: 16px;
    color: #34495e;
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.resume-header .contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resume-header .contact-info i {
    width: 16px;
    text-align: center;
}

.resume-section {
    margin-bottom: 30px;
}

.resume-section h2 {
    color: #2c3e50;
    border-left: 4px solid #3498db;
    padding-left: 15px;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    height: 40px;
}

.resume-section h2 i {
    margin-right: 12px;
    color: #3498db;
    font-size: 18px;
}

.resume-section.content {
    line-height: 1.7;
    color: #2c3e50;
    font-size: 16px;
    background-color: #fdfdfd;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.resume-section.content ul {
    padding-left: 0;
    margin: 0;
}

.resume-section.content li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.resume-section.content li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    display: inline-block;
    width: 20px;
    margin-left: -20px;
}

.experience-item,
.education-item,
.project-item {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #bdc3c7;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.experience-item:hover,
.education-item:hover,
.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.experience-item h3,
.education-item h3,
.project-item h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.experience-item h4,
.education-item h4,
.project-item h4 {
    margin: 0 0 10px 0;
    color: #3498db;
    font-weight: 500;
    font-style: italic;
    font-size: 15px;
}

.experience-item .date,
.education-item .date,
.project-item .date {
    display: block;
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 12px;
    font-style: italic;
}

.experience-item p,
.education-item p,
.project-item p {
    margin: 0;
    color: #34495e;
    line-height: 1.6;
}

/* Download buttons */
.download-options {
    margin-top: 35px;
    text-align: center;
    padding-top: 25px;
    border-top: 2px solid #ecf0f1;
}

.download-options .button {
    margin: 0 12px;
    padding: 14px 28px;
    font-size: 16px;
    min-width: 140px;
}

.download-options .button-secondary {
    background-color: #95a5a6;
}

.download-options .button-secondary:hover {
    background-color: #7f8c8d;
}

/* Responsive design */
@media (max-width: 768px) {
    .portfolio-resume-tool-container {
        padding: 15px;
    }
    
    .portfolio-resume-tool-form {
        padding: 20px;
    }
    
    .resume-header h1 {
        font-size: 28px;
    }
    
    .download-options .button {
        display: block;
        width: 100%;
        margin: 12px 0;
    }
    
    .resume-section h2 {
        font-size: 20px;
        padding-left: 12px;
    }
    
    .resume-section.content {
        padding: 15px;
        font-size: 15px;
    }
    
    .experience-item,
    .education-item,
    .project-item {
        padding: 15px;
    }
    
    .experience-item h3,
    .education-item h3,
    .project-item h3 {
        font-size: 17px;
    }
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(52,152,219,0.3);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-left: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print styles */
@media print {
    .portfolio-resume-tool-form,
    .download-options {
        display: none !important;
    }
    
    .portfolio-resume-preview {
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    
    .resume-preview {
        margin: 0 !important;
        width: 100% !important;
    }
    
    body {
        background: white !important;
    }
}

/* Template-specific enhancements */
.modern-template .resume-section h2 {
    border-left-color: #3498db;
}

.professional-template .resume-section h2 {
    border-left-color: #2c3e50;
}

.minimal-template .resume-section h2 {
    border-left-color: #95a5a6;
}

.creative-template .resume-section h2 {
    border-left-color: #e74c3c;
}