/* SP CV Builder Styles */
.sp-cv-builder-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Hebrew and RTL language support */
html[lang="he"] .sp-cv-builder-container,
html[lang="he-IL"] .sp-cv-builder-container {
    font-family: 'David', 'Times New Roman', 'Narkisim', 'Rod', Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

/* Progress Bar */
.sp-cv-progress {
    margin-bottom: 30px;
}

.sp-cv-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.sp-cv-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    flex: 1;
    min-width: 80px;
}

.sp-cv-step.active,
.sp-cv-step.completed {
    opacity: 1;
}

.sp-cv-step .step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sp-cv-step.active .step-number {
    background: #007cba;
    color: white;
}

.sp-cv-step.completed .step-number {
    background: #46b450;
    color: white;
}

.sp-cv-step .step-title {
    font-size: 12px;
    text-align: center;
    color: #666;
}

.sp-cv-step.active .step-title {
    color: #007cba;
    font-weight: bold;
}

.sp-cv-progress-bar {
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    overflow: hidden;
}

.sp-cv-progress-fill {
    height: 100%;
    background: #007cba;
    transition: width 0.3s ease;
}

/* Form Styles */
.sp-cv-form {
    min-height: 400px;
}

.sp-cv-step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.sp-cv-step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sp-cv-step-content h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
}

/* Grid System */
.sp-cv-row {
    display: flex;
    margin-bottom: 15px;
    gap: 15px;
    flex-wrap: wrap;
}

.sp-cv-col-6 {
    flex: 1;
    min-width: 250px;
}

.sp-cv-col-12 {
    flex: 1 1 100%;
}

/* Form Fields */
.sp-cv-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.sp-cv-form input[type="text"],
.sp-cv-form input[type="email"],
.sp-cv-form input[type="tel"],
.sp-cv-form input[type="url"],
.sp-cv-form input[type="date"],
.sp-cv-form select,
.sp-cv-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.sp-cv-form input:focus,
.sp-cv-form select:focus,
.sp-cv-form textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.sp-cv-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.sp-cv-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.sp-cv-btn-primary {
    background: #007cba;
    color: white;
}

.sp-cv-btn-primary:hover {
    background: #005a87;
}

.sp-cv-btn-secondary {
    background: #666;
    color: white;
}

.sp-cv-btn-secondary:hover {
    background: #333;
}

.sp-cv-btn-success {
    background: #46b450;
    color: white;
}

.sp-cv-btn-success:hover {
    background: #2d7930;
}

.sp-cv-btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* Navigation */
.sp-cv-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* Dynamic Sections */
.sp-cv-dynamic-section {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.sp-cv-dynamic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sp-cv-dynamic-title {
    font-weight: bold;
    color: #333;
}

.sp-cv-remove-btn {
    background: #dc3232;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.sp-cv-remove-btn:hover {
    background: #a00;
}

.sp-cv-add-btn {
    background: #46b450;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.sp-cv-add-btn:hover {
    background: #2d7930;
}

/* Skills */
.sp-cv-skills-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sp-cv-skill-group {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
    width: 100%;
}

.sp-cv-skill-group h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.sp-cv-skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.sp-cv-skill-item input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.sp-cv-skill-item select {
    width: 140px;
    min-width: 140px;
}

.sp-cv-skill-item .sp-cv-remove-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* Social Links */
.sp-cv-social-link-item {
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.sp-cv-social-link-item .sp-cv-col-3 select {
    width: 100%;
}

.sp-cv-social-link-item .sp-cv-col-7 input {
    width: 100%;
}

.sp-cv-social-link-item .sp-cv-col-2 {
    text-align: center;
}

/* Languages */
.sp-cv-language-item {
    display: grid;
    grid-template-columns: 1fr 150px 120px 40px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Help Text */
.sp-cv-help-text {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    padding: 10px;
    background: #f0f8ff;
    border-left: 4px solid #007cba;
    border-radius: 4px;
}

/* Result Section */
.sp-cv-result {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

.sp-cv-result h2 {
    color: #46b450;
    margin-bottom: 15px;
}

.sp-cv-links {
    margin: 20px 0;
}

.sp-cv-links .sp-cv-btn {
    margin: 0 10px;
}

.sp-cv-share {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.sp-cv-share label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.sp-cv-share input[type="text"] {
    width: calc(100% - 80px);
    display: inline-block;
    margin-right: 10px;
}

/* CV Display */
.sp-cv-display {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sp-cv-header {
    text-align: center;
    border-bottom: 3px solid #007cba;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.sp-cv-name {
    font-size: 2.5em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.sp-cv-title {
    font-size: 1.3em;
    color: #007cba;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.sp-cv-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.sp-cv-contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sp-cv-section {
    margin-bottom: 40px;
}

.sp-cv-section h3 {
    font-size: 1.4em;
    color: #2c3e50;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sp-cv-experience-item,
.sp-cv-education-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    border-radius: 0 5px 5px 0;
}

.sp-cv-experience-header,
.sp-cv-education-header {
    margin-bottom: 10px;
}

.sp-cv-experience-item h4,
.sp-cv-education-item h4 {
    font-size: 1.2em;
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-weight: bold;
}

.sp-cv-experience-item h5,
.sp-cv-education-item h5 {
    font-size: 1em;
    color: #007cba;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.sp-cv-dates {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.sp-cv-gpa {
    color: #28a745;
    font-size: 0.9em;
    font-weight: bold;
    margin-left: 15px;
}

.sp-cv-skills-group {
    margin-bottom: 30px;
}

.sp-cv-skills-group h4 {
    font-size: 1.1em;
    color: #495057;
    margin-bottom: 15px;
    font-weight: 600;
}

.sp-cv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sp-cv-skill-item {
    background: #007cba;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.sp-cv-skill-item small {
    opacity: 0.8;
    font-size: 0.85em;
}

.sp-cv-languages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.sp-cv-language-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #28a745;
}

.sp-cv-language-item strong {
    color: #2c3e50;
    font-size: 1.1em;
}

.sp-cv-language-level {
    display: block;
    color: #28a745;
    font-weight: 600;
    margin-top: 5px;
}

.sp-cv-certification {
    color: #666;
    font-style: italic;
}

.sp-cv-social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.sp-cv-social-link {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #17a2b8;
}

.sp-cv-social-link strong {
    color: #2c3e50;
    display: inline-block;
    min-width: 100px;
}

.sp-cv-social-link a {
    color: #007cba;
    text-decoration: none;
    word-break: break-all;
}

.sp-cv-social-link a:hover {
    text-decoration: underline;
}

/* RTL Support for CV Display */
[dir="rtl"] .sp-cv-display {
    text-align: right;
}

[dir="rtl"] .sp-cv-contact {
    justify-content: center;
    direction: rtl;
}

[dir="rtl"] .sp-cv-experience-item,
[dir="rtl"] .sp-cv-education-item {
    border-left: none;
    border-right: 4px solid #007cba;
    border-radius: 5px 0 0 5px;
}

[dir="rtl"] .sp-cv-language-item {
    border-left: none;
    border-right: 4px solid #28a745;
}

[dir="rtl"] .sp-cv-social-link {
    border-left: none;
    border-right: 4px solid #17a2b8;
}

/* Print Styles */
@media print {
    .sp-cv-display {
        box-shadow: none;
        padding: 20px;
        margin: 0;
        max-width: none;
    }
    
    .sp-cv-section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .sp-cv-experience-item,
    .sp-cv-education-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sp-cv-builder-container {
        margin: 10px;
        padding: 15px;
    }
    
    .sp-cv-steps {
        flex-wrap: wrap;
    }
    
    .sp-cv-step {
        flex: 1 1 25%;
        min-width: 60px;
    }
    
    .sp-cv-step .step-title {
        font-size: 10px;
    }
    
    .sp-cv-row {
        flex-direction: column;
    }
    
    .sp-cv-col-6 {
        min-width: auto;
    }
    
    .sp-cv-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .sp-cv-contact {
        flex-direction: column;
        gap: 10px;
    }
    
    .sp-cv-display {
        padding: 20px;
    }
    
    .sp-cv-name {
        font-size: 2em;
    }
    
    .sp-cv-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sp-cv-language-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .sp-cv-skill-item {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Loading States */
.sp-cv-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.sp-cv-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #007cba;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Validation Errors */
.sp-cv-error {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 2px rgba(220, 50, 50, 0.1) !important;
}

.sp-cv-error-message {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Success Messages */
.sp-cv-success-message {
    background: #46b450;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

/* Toast Messages */
.sp-cv-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    z-index: 9999;
    max-width: 300px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease;
}

.sp-cv-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sp-cv-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} 