/* القسم الحادي عشر — Work experience cards */

.we-intro {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
    border: 1px solid rgba(31, 113, 202, 0.12);
    border-right: 3px solid #1f71ca;
    border-radius: 0.875rem;
    padding: 1rem 1.125rem;
    margin-bottom: 1rem;
}

.we-empty {
    text-align: center;
    padding: 2rem 1.25rem;
    border: 2px dashed #cbd5e1;
    border-radius: 0.875rem;
    background: #f8fafc;
    margin-bottom: 1rem;
}

.we-empty.is-hidden {
    display: none;
}

.we-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: #e0f2fe;
    color: #1f71ca;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.we-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.we-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    animation: weCardIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.we-card--latest {
    border-color: rgba(31, 113, 202, 0.25);
    box-shadow: 0 4px 16px rgba(31, 113, 202, 0.08);
}

@keyframes weCardIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.we-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.we-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #1f71ca 0%, #204b87 100%);
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.we-card-title-wrap {
    flex: 1;
    min-width: 0;
}

.we-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.we-card-subtitle {
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 0.125rem;
}

.we-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    background: #dbeafe;
    color: #1d4ed8;
    flex-shrink: 0;
    white-space: nowrap;
}

.we-card-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #fecaca;
    background: #fff;
    color: #dc2626;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.we-card-remove:hover {
    background: #fef2f2;
}

.we-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.we-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1f71ca;
    margin-bottom: -0.25rem;
}

.we-section-label i {
    font-size: 0.875rem;
}

.we-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.375rem;
}

.we-row {
    display: grid;
    gap: 0.875rem;
}

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

@media (min-width: 640px) {
    .we-row--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.we-positions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.we-position-block {
    padding: 0.875rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.we-position-block.is-hidden {
    display: none;
}

.we-position-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.625rem;
}

.we-position-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.we-add-position {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f71ca;
    background: #eff6ff;
    border: 1px dashed #93c5fd;
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.we-add-position:hover:not(:disabled) {
    background: #dbeafe;
}

.we-add-position:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.we-add-wrap {
    display: flex;
    justify-content: center;
    padding-top: 0.25rem;
}

.we-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 2px dashed #93c5fd;
    background: #eff6ff;
    color: #1f71ca;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.we-add-btn:hover:not(:disabled) {
    background: #dbeafe;
    transform: translateY(-1px);
}

.we-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.we-count {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
    .we-card { animation: none; }
}
