﻿/* ============ ساختار کلی ============ */
main {
    flex: 1;
    max-width: 960px;
    margin: 2rem auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    padding: 2rem 2.5rem;
}


/* ============ اطلاعات پروفایل ============ */
.profile-header {
    display: flex;
    justify-content: space-evenly;
    gap: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
/*    box-shadow: 0 4px 15px rgb(0 0 0 / 0.1);*/
    margin-bottom: 2rem;
}

.profile-pic{
    flex: 1 1 250px;
    text-align: center;
}

.profile-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #0d6efd;
    margin-bottom: 1rem;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #007b83;
}

.icon-wrapper {
    position: relative;
    display: inline-block;
    font-size: 4rem; /* shield size */
    color: #007b83; /* shield color (Bootstrap green) */
}

.overlay-icon {
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem; /* inner icon size */
    color: white; /* inner icon color */
}

.contact-info {
    margin-top: 0.5rem;
}

    .contact-info a {
        font-size: 1.5rem;
        margin: 0 0.5rem;
        color: #0d6efd;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .contact-info a:hover {
            color: #0056b3;
        }

.profile-info {
    width: 35%;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
}

.user-details {
    text-align: right;
    line-height: 1.8;
}

    .user-details p {
        font-size: 0.9rem;
        color: #333;
        margin-bottom: 0.6rem;
    }


/* ============ رنکینگ ============ */
.profile-ranking {
    width: 35%;
    background: #e7f1ff;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
}

.ranking-score {
    font-size: 3rem;
    font-weight: 800;
    color: #0d6efd;
    margin-bottom: 0.2rem;
}

.ranking-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
}

.ranking-info p {
    margin: 0.2rem 0;
    font-size: 1rem;
    color: #555;
}

/* ============ رزومه، مدارک، آموزش ============ */
section {
    margin-bottom: 2rem;
}

    section h3 {
        color: #007b83;
        font-weight: 700;
        margin-bottom: 1rem;
        border-bottom: 1px solid #eee;
        padding-bottom: 6px;
        width: fit-content;
    }

.resume-text,
.education-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.skills-list-profile {
    padding-left: 1rem;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
    .skills-list-profile li {
        background-color: #e9f2f2;
        padding: 8px 15px;
        border-radius: 25px;
        font-weight: 600;
        color: #007b83;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        position: relative;
        padding-left: 1rem; /* فضای خالی برای علامت ضربدر */
    }

.skills-list {
    padding-left: 1rem;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

    .skills-list li {
        background-color: #e9f2f2;
        padding: 8px 15px;
        border-radius: 25px;
        font-weight: 600;
        color: #007b83;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        position: relative;
        padding-left: 3rem; /* فضای خالی برای علامت ضربدر */
    }

    .skills-list .remove-skill {
        width: 30px;
        border-radius: 20px;
        border: 1px solid;
        position: absolute;
        top: 5px;
        left: 8px;
        color: #d9534f;
        cursor: pointer;
        font-weight: bold;
        font-size: 1.2rem;
        transition: color 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center; /* برای وسط‌چین افقی */
    }

        .skills-list .remove-skill:hover {
            color: #c9302c;
        }



.skill-add {
    padding-left: 1rem;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
}

    .skill-add input {
        background-color: #e9f2f2;
        padding: 8px 15px;
        border-radius: 25px;
        font-weight: 600;
        color: #007b83;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        position: relative;
        padding-left: 3rem; /* فضای خالی برای علامت ضربدر */
    }

    .skill-add button{
        width: 35px;
        border-radius: 23px;
        border: 1px solid;
        position: absolute;
        bottom: 55px;
        right: 245px;
        color: #d9534f;
        cursor: pointer;
        font-weight: bold;
        font-size: 1.2rem;
        transition: color 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center; /* برای وسط‌چین افقی */
    }

        .skills-list button:hover {
            color: #c9302c;
        }


/* ============ کارت متخصص / دوره ============ */
.expert-card {
    border: none;
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.08);
    border-radius: 12px;
    transition: transform 0.2s ease;
}

    .expert-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgb(0 0 0 / 0.15);
    }

.expert-image {
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.expert-card img.profile {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.expert-card a small {
    font-size: 12px;
}


/* ============ جدول‌ها ============ */
table.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2rem;
}

table th,
table td {
    vertical-align: middle !important;
}


/* ============ دکمه‌ها ============ */
.btn-outline-success {
    font-size: 1.2rem;
    padding: 0.25rem 0.8rem;
}

/* ============ ریسپانسیو موبایل ============ */
@media (max-width: 768px) {
    main {
        padding: 1rem 1.2rem;
        flex: 1;
        background: white;
        border-radius: 0px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
        margin: 0px;
    }

    .profile-header {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        padding: 1rem;
        gap: 1.5rem;
    }

    .profile-pic,
    .profile-info,
    .profile-ranking {
        width: 100%;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 0.5rem;
    }

    .profile-name {
        font-size: 1.4rem;
    }

    .contact-info a {
        font-size: 1.2rem;
        margin: 0 0.3rem;
    }

    .profile-info,
    .profile-ranking {
        padding: 1rem;
    }

    .ranking-score {
        font-size: 2rem;
    }

    .ranking-label {
        font-size: 1rem;
    }

    .ranking-info p {
        font-size: 0.9rem;
    }

    section h3 {
        font-size: 1.2rem;
    }

    .resume-text,
    .education-text,
    .skills-list-profile li {
        font-size: 0.9rem;
    }

    .skills-list-profile,
    .skills-list {
        gap: 1rem;
        padding-left: 0;
    }

        .skills-list li,
        .skills-list-profile li {
            font-size: 13px;
        }

        .skills-list .remove-skill {
            font-size: 1rem;
            top: 4px;
            left: 6px;
            width: 24px;
        }

    .skill-add input {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .skill-add button {
        bottom: 53px;
        right: 174px;
        width: 30px;
        border-radius: 23px;
        font-size: 16px;
    }

    .expert-card {
        margin-bottom: 1.5rem;
    }

    .expert-image {
        height: 150px;
    }

    .expert-card h5 {
        font-size: 1rem;
    }

    table.table-responsive {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    table th,
    table td {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .btn {
        font-size: 1rem;
        padding: 0.4rem 0.7rem;
    }

    .btn-lg {
        font-size: 1.1rem;
        padding: 0.6rem 1rem;
    }

    .float-end {
        float: none !important;
        display: block;
        text-align: center;
        margin: 0 auto;
    }
}
