/* ═══════════════════════════════════════════════
   job/resume.css — Стили для конструктора резюме
═══════════════════════════════════════════════ */

.resume-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5% 100px;
}

/* ── Навигация ────────────────────────────────── */
.resume-breadcrumb {
    padding-top: 28px;
    padding-bottom: 20px;
}

.resume-breadcrumb .breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}

.resume-breadcrumb .breadcrumb-back svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.resume-breadcrumb .breadcrumb-back:hover {
    color: var(--accent-gold);
    gap: 10px;
}

.resume-breadcrumb .breadcrumb-back:hover svg {
    transform: translateX(-3px);
}

/* ── Hero ─────────────────────────────────────── */
.resume-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 0 50px;
    clear: both;
}

.resume-hero h1 {
    display: block;
    width: 100%;
    font-family: var(--header-font);
    font-size: clamp(24px, 3.5vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

.resume-subtitle {
    display: block;
    width: 100%;
    margin-top: 10px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: #666;
    max-width: 650px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Alert ────────────────────────────────────── */
.resume-alert {
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 40px;
    font-size: 15px;
    line-height: 1.6;
    background: #fff;
    border: 1px solid var(--border-color);
    text-align: center;
}

.resume-alert--warning {
    background: #fffcf5;
    border-color: #ffdcb5;
    color: #b26a00;
}

.resume-alert--warning a {
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: underline;
}

.resume-alert--success {
    background: #f6fcf6;
    border-color: #cbe6cb;
    color: #2e7d32;
}

.resume-alert--error {
    background: #fdf5f5;
    border-color: #f1c9c9;
    color: #c62828;
}

/* ── Builder UI ───────────────────────────────── */
.resume-builder {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

/* ── Виджет сохраненных резюме ──────────────── */
.saved-resumes-widget {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 30px 40px;
}

.saved-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.saved-resumes-list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.saved-resume-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    min-width: 220px;
}

.saved-resume-card:hover {
    border-color: var(--accent-gold);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 163, 103, 0.1);
}

.saved-resume-card.active {
    background: rgba(197, 163, 103, 0.05);
    border-color: var(--accent-gold);
}

.saved-resume-card.active .saved-icon svg {
    color: var(--accent-gold);
}

.saved-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.saved-icon svg {
    width: 20px;
    height: 20px;
    color: #999;
}

.new-resume-btn .saved-icon {
    background: transparent;
    border: 1px dashed #ccc;
}

.new-resume-btn:hover .saved-icon {
    border-color: var(--accent-gold);
}

.saved-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.saved-pos {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.saved-date {
    font-size: 13px;
    color: #888;
}

/* вкладки */
.resume-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: #fafafa;
}

.resume-tab {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-family: var(--header-font);
    font-size: 18px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background 0.3s, color 0.3s;
    outline: none;
}

.resume-tab .tab-icon {
    width: 20px;
    height: 20px;
}

.resume-tab:hover {
    background: #f0f0f0;
    color: var(--text-dark);
}

.resume-tab.active {
    background: #fff;
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    font-weight: 600;
}

/* контент вкладок */
.resume-content-area {
    padding: 40px 50px;
}

.resume-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.resume-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pane-header {
    margin-bottom: 30px;
}

.pane-header h3 {
    font-family: var(--header-font);
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.pane-header p {
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

/* ── Формы ────────────────────────────────────── */
.resume-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fafafa;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-dark);
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(197, 163, 103, 0.1);
}

.form-control:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

.field-hint {
    font-size: 12px;
    color: #888;
}

/* кнопка сабмита */
.form-actions {
    margin-top: 10px;
    text-align: right;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-gold);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-family: inherit;
}

.btn-submit svg {
    width: 18px;
    height: 18px;
}

.btn-submit:hover:not(:disabled) {
    background: #b69259;
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}

/* ── Upload ───────────────────────────────────── */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 50px 20px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.upload-area.dragover {
    border-color: var(--accent-gold);
    background: rgba(197, 163, 103, 0.05);
}

.upload-icon {
    margin-bottom: 16px;
    color: #ccc;
}

.upload-icon svg {
    width: 48px;
    height: 48px;
}

.upload-text {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.upload-text span {
    color: var(--accent-gold);
    font-weight: 600;
}

.upload-hint {
    font-size: 13px;
    color: #888;
}

.file-input {
    display: none;
}

.file-name-display {
    margin-top: 16px;
    font-size: 14px;
    color: var(--accent-gold);
    font-weight: 600;
    text-align: center;
    padding: 10px;
    background: rgba(197, 163, 103, 0.1);
    border-radius: 8px;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
    .resume-tabs {
        flex-direction: column;
    }

    .resume-tab {
        border-bottom: 1px solid var(--border-color);
    }

    .resume-content-area {
        padding: 30px 20px;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}