/* أساسيات الغلاف */
.jobsnap-career-wrapper{
    direction: rtl;
    text-align: right;
    max-width: 900px;
    margin: 24px auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.jobsnap-career-header{
    margin-bottom: 16px;
}
.jobsnap-career-title{
    font-size: 24px;
    margin: 0 0 4px;
}
.jobsnap-career-subtitle{
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* البطاقات */
.jobsnap-career-card{
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(15,23,42,0.04);
}

.jobsnap-career-section-title{
    font-size: 16px;
    margin: 0 0 8px;
}

/* الرسائل */
.jobsnap-career-message{
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 12px;
}
.jobsnap-career-message-success{
    background: #ecfdf3;
    border: 1px solid #22c55e;
    color: #166534;
}
.jobsnap-career-message-error{
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* شبكة بسيطة */
.jobsnap-career-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 6px 18px;
    font-size: 14px;
}
.jobsnap-career-skills p{
    margin: 4px 0 0;
    font-size: 13px;
    color: #4b5563;
}
.jobsnap-career-note{
    font-size: 13px;
    color: #6b7280;
    margin-top: 10px;
}

/* الأسئلة */
.jobsnap-career-question{
    border-top: 1px solid #f3f4f6;
    padding-top: 10px;
    margin-top: 10px;
}
.jobsnap-career-question:first-of-type{
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.jobsnap-career-question-text{
    font-size: 14px;
    margin-bottom: 6px;
}
.jobsnap-career-question-number{
    color: #9ca3af;
    font-weight: 500;
}
.jobsnap-career-question-options{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.jobsnap-career-question-options label{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 3px 10px;
    font-size: 13px;
    cursor: pointer;
}
.jobsnap-career-question-options input[type="radio"]{
    accent-color: #2563eb;
}

/* أزرار */
.jobsnap-career-actions{
    margin-top: 16px;
}
.jobsnap-career-button{
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg,#2563eb,#4f46e5);
    color: #ffffff;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
}
.jobsnap-career-button:hover{
    opacity: 0.96;
}

/* النتيجة */
.jobsnap-career-result{
    border-color: #bfdbfe;
}
.jobsnap-career-taken-at{
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 6px;
}
.jobsnap-career-top-dimension{
    background: #eff6ff;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.jobsnap-career-top-label{
    font-size: 13px;
    color: #1d4ed8;
    margin-bottom: 2px;
}
.jobsnap-career-top-value{
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}
.jobsnap-career-top-desc{
    font-size: 13px;
    color: #374151;
    margin: 0;
}

/* أبعاد الميول */
.jobsnap-career-dimensions-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 10px 16px;
}
.jobsnap-career-dimension{
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    font-size: 13px;
}
.jobsnap-career-dimension-primary{
    border-color: #2563eb;
    background: #eff6ff;
}
.jobsnap-career-dimension-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.jobsnap-career-dimension-label{
    font-weight: 600;
}
.jobsnap-career-dimension-pct{
    font-size: 13px;
    color: #1d4ed8;
}
.jobsnap-career-progress-bar{
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    margin-bottom: 4px;
}
.jobsnap-career-progress-bar span{
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,#2563eb,#4f46e5);
}

/* استجابة */
@media (max-width: 640px){
    .jobsnap-career-wrapper{
        padding-inline: 8px;
    }
}
