/* ============================================
   Profile V2 - Modern Layout
   ============================================ */

.profile-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

/* ===== Loading Skeleton ===== */
.profile-loading {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.profile-skeleton-header {
    height: 160px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.profile-skeleton-body {
    height: 400px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.profile-skeleton-header::after,
.profile-skeleton-body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--bg-tertiary), transparent);
    animation: skeleton-shimmer 1.5s infinite;
}

/* ===== Profile Header Card ===== */
.profile-header-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.profile-header-bg {
    height: 80px;
    background: var(--gradient-accent);
}

.profile-header-content {
    display: flex;
    align-items: flex-end;
    gap: var(--space-lg);
    padding: 0 var(--space-xl) var(--space-lg);
    margin-top: -40px;
}

.profile-header-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: var(--gradient-accent);
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--card-bg);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.profile-header-info {
    flex: 1;
    padding-bottom: var(--space-xs);
    min-width: 0;
}

.profile-header-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.profile-header-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.profile-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.profile-header-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.profile-header-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.profile-header-link:hover {
    text-decoration: underline;
}

.profile-header-actions {
    padding-bottom: var(--space-xs);
    flex-shrink: 0;
}

.profile-header-badge {
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 700;
}

.profile-header-badge--success {
    background: var(--success-light);
    color: var(--success);
}

.profile-header-badge--warning {
    background: var(--warning-light);
    color: var(--warning);
}

/* ===== Profile Body: Sidebar + Content ===== */
.profile-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-lg);
}

/* ===== Sidebar Tabs ===== */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    position: sticky;
    top: 80px;
    align-self: start;
}

.profile-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.7rem var(--space-md);
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
}

.profile-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.profile-tab--active {
    background: var(--accent-light);
    color: var(--accent-primary);
    border-color: var(--accent-soft);
}

.profile-tab svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.profile-tab--active svg {
    opacity: 1;
}

.profile-tab-count {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--accent-primary);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== Profile Content ===== */
.profile-content {
    min-width: 0;
}

.profile-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.profile-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.01em;
}

/* ===== Form Grid ===== */
.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.profile-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.profile-form-field--full {
    grid-column: 1 / -1;
    margin-top: var(--space-md);
}

.profile-form-field--checkbox {
    justify-content: flex-end;
    padding-bottom: var(--space-xs);
}

.profile-form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.profile-form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.profile-form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.profile-form-input::placeholder {
    color: var(--text-muted);
}

.profile-form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-family);
}

.profile-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.profile-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.profile-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

/* ===== Timeline (Experience & Education) ===== */
.profile-timeline {
    position: relative;
    padding-left: var(--space-lg);
}

.profile-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-color);
}

.profile-timeline-item {
    position: relative;
    margin-bottom: var(--space-md);
}

.profile-timeline-dot {
    position: absolute;
    left: -22px;
    top: 12px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 3px solid var(--card-bg);
    z-index: 1;
}

.profile-timeline-dot--education {
    background: var(--info);
}

.profile-timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: all var(--transition-fast);
}

.profile-timeline-card:hover {
    border-color: var(--accent-soft);
    box-shadow: var(--shadow-sm);
}

.profile-timeline-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-sm);
}

.profile-timeline-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-timeline-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-timeline-date {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.profile-timeline-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: var(--space-xs);
}

.profile-card-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.profile-card-delete:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* ===== Certifications Grid ===== */
.profile-certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.profile-cert-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: all var(--transition-fast);
}

.profile-cert-card:hover {
    border-color: var(--accent-soft);
    box-shadow: var(--shadow-sm);
}

.profile-cert-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.profile-cert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--warning-light);
    color: var(--warning);
}

.profile-cert-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.profile-cert-issuer {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.profile-cert-meta {
    display: flex;
    gap: var(--space-sm);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.profile-cert-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
    margin-top: var(--space-xs);
}

.profile-cert-link:hover {
    text-decoration: underline;
}

/* ===== Vacancies Page Extras ===== */
.vacancies-hero {
    position: relative;
    background: linear-gradient(135deg, #0B132B 0%, #1C3F6A 100%);
    padding: 3rem 1.5rem 2.5rem;
    overflow: hidden;
}

.vacancies-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(0, 102, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.vacancies-hero-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.vacancies-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.vacancies-hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.vacancies-hero-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: 1.5rem;
}

.vacancies-hero-results-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.vacancies-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.vacancies-clear-all:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.vacancies-chips {
    margin-top: var(--space-md);
}

.vacancies-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: 0 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.vacancies-results-section {
    padding: 0 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.vacancies-page-count {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
}

.vacancies-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    background: var(--accent-light);
    color: var(--accent-primary);
    font-size: 0.82rem;
    font-weight: 600;
}

.vacancies-filter-remove {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.vacancies-filter-remove:hover {
    opacity: 1;
}

.vacancies-pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-xl);
}

.vacancies-page-btn {
    min-width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.vacancies-page-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.vacancies-page-btn--active {
    background: var(--accent-primary);
    color: #FFFFFF;
    border-color: var(--accent-primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .profile-body {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        gap: var(--space-xs);
        padding-bottom: var(--space-xs);
    }

    .profile-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .profile-header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 var(--space-lg) var(--space-lg);
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-certs-grid {
        grid-template-columns: 1fr;
    }

    .profile-form-actions {
        flex-direction: column;
        gap: var(--space-md);
        align-items: stretch;
    }
}
