/* ============================================================
   Resume Builder Styles
   ============================================================ */

.resume-builder-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.resume-builder-header {
    margin-bottom: 40px;
    text-align: center;
}

.resume-builder-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.resume-builder-header p {
    font-size: 16px;
    color: #64748b;
}

/* Resume Form Sections */
.resume-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.section-title i {
    margin-right: 10px;
    color: #667eea;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label .required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
}

/* Two Column Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

/* Experience/Education Item */
.resume-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    position: relative;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.resume-item-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
}

.resume-item-subtitle {
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

.resume-item-date {
    color: #94a3b8;
    font-size: 12px;
}

.resume-item-actions {
    display: flex;
    gap: 8px;
}

.btn-edit,
.btn-delete {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-edit:hover {
    color: #764ba2;
}

.btn-delete:hover {
    color: #ef4444;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.skill-tag {
    background: #667eea;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.skill-tag .remove {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.skill-tag .remove:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 1px solid #667eea;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #f8fafc;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

/* Preview Section */
.resume-preview {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 600px;
}

.preview-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.preview-name {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
}

.preview-headline {
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    margin-top: 6px;
}

.preview-contact {
    color: #64748b;
    font-size: 12px;
    margin-top: 8px;
}

.preview-section {
    margin-bottom: 25px;
}

.preview-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.preview-entry {
    margin-bottom: 15px;
}

.preview-entry-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 13px;
}

.preview-entry-subtitle {
    color: #64748b;
    font-size: 12px;
}

.preview-entry-date {
    color: #94a3b8;
    font-size: 11px;
}

.preview-entry-description {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 6px;
}

/* Templates */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.template-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.template-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.template-card.selected {
    border-color: #667eea;
    background: #f8fafc;
}

.template-thumbnail {
    width: 100%;
    height: 180px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #94a3b8;
}

.template-name {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #1e293b;
    font-size: 13px;
}

/* AI Enhancement */
.ai-suggestions {
    background: #dbeafe;
    border-left: 4px solid #0284c7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.ai-suggestions-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 10px;
}

.suggestion-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}

.suggestion-original {
    color: #64748b;
    text-decoration: line-through;
    margin-bottom: 6px;
}

.suggestion-enhanced {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 8px;
}

.suggestion-actions {
    display: flex;
    gap: 8px;
}

.suggestion-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-btn:hover {
    background: #f1f5f9;
}

/* Analytics Dashboard */
.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.analytics-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.analytics-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
}

.analytics-label {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 8px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

.progress-bar {
    background: #f1f5f9;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .resume-builder-header h1 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .resume-section {
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .resume-preview {
        padding: 20px;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .resume-section {
        background: #1e293b;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .section-title {
        color: #e2e8f0;
        border-bottom-color: #334155;
    }

    .form-label {
        color: #e2e8f0;
    }

    .form-control {
        background: #334155;
        border-color: #475569;
        color: #e2e8f0;
    }

    .resume-item {
        background: #334155;
    }

    .resume-item-title {
        color: #e2e8f0;
    }

    .resume-preview {
        background: #1e293b;
    }

    .preview-name {
        color: #e2e8f0;
    }

    .analytics-card {
        background: #1e293b;
        border: 1px solid #334155;
    }
}
