/* ============================================
   Coach Directory Pro - Profile Page Styles
   ============================================ */

.cdp-profile-wrap {
    max-width: 900px;
    margin: 0 auto;
    direction: rtl;
}

/* ---- هدر پروفایل ---- */
.cdp-profile-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2e86de 100%);
    border-radius: 16px;
    padding: 2.5rem;
    color: #fff;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.cdp-profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}

/* عکس پروفایل */
.cdp-profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.cdp-profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.3);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.cdp-profile-level-badge {
    position: absolute;
    bottom: 4px;
    left: 0;
    background: #fdcb6e;
    color: #2d3436;
    font-size: .72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* اطلاعات هدر */
.cdp-profile-header-info { flex: 1; }

.cdp-profile-name {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 .3rem;
    line-height: 1.2;
}

.cdp-profile-position {
    font-size: 1rem;
    opacity: .85;
    margin: 0 0 1.2rem;
}

.cdp-profile-header-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cdp-profile-header-meta-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    opacity: .9;
}

/* ---- اطلاعات اصلی ---- */
.cdp-profile-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

/* ---- باکس‌ها ---- */
.cdp-profile-box {
    background: #fff;
    border: 1px solid #dfe6e9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.cdp-profile-box-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 1.2rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid #e8f4fd;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* بیوگرافی */
.cdp-profile-bio {
    color: #555;
    line-height: 1.9;
    font-size: .95rem;
}

/* جزئیات */
.cdp-profile-details { display: flex; flex-direction: column; gap: .8rem; }

.cdp-detail-row {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    padding: .6rem;
    border-radius: 8px;
    transition: background .2s;
}

.cdp-detail-row:hover { background: #f8f9fa; }

.cdp-detail-icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.cdp-detail-label {
    font-size: .78rem;
    color: #999;
    display: block;
    margin-bottom: 2px;
}

.cdp-detail-value {
    font-size: .92rem;
    color: #2d3436;
    font-weight: 500;
}

/* ---- شبکه‌های اجتماعی ---- */
.cdp-social-links {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

.cdp-social-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.2rem;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    text-decoration: none;
    color: #2d3436;
    font-size: .85rem;
    font-weight: 600;
    transition: all .2s;
}

.cdp-social-link:hover {
    border-color: #2e86de;
    color: #2e86de;
    background: #eaf4fe;
}

.cdp-social-icon { font-size: 1.1rem; }

/* ---- آمار ---- */
.cdp-profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
}

.cdp-stat-box {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.cdp-stat-box .cdp-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e3a5f;
    display: block;
}

.cdp-stat-box .cdp-stat-label {
    font-size: .78rem;
    color: #888;
    margin-top: 3px;
    display: block;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {

    .cdp-profile-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .cdp-profile-header-meta {
        justify-content: center;
    }

    .cdp-profile-name { font-size: 1.5rem; }

    .cdp-profile-body {
        grid-template-columns: 1fr;
    }
}