/* ══════════════════════════════════════════════════════════════
   Profile — Colloquiam Design System
   ══════════════════════════════════════════════════════════════ */

/* ── Profile wrapper ──────────────────────────────────── */
.prof-wrapper {
    padding-top: 12px;
    min-height: 60vh;
}

/* ══ PROFILE CARD (cover + info + stats in one piece) ═══ */
.prof-card {
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #e9ecef);
    border-radius: var(--radius-md, 10px);
    box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.06));
    overflow: hidden;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}

/* ── Cover banner ─────────────────────────────────────── */
.prof-cover {
    height: 110px;
    background: linear-gradient(135deg,
        #1a1a2e 0%,
        #2e3a6e 22%,
        #2e72ad 44%,
        #428ECC 64%,
        #6bbdff 82%,
        #FECA38 100%);
    position: relative;
    flex-shrink: 0;
}

/* ── Header body (below cover) ────────────────────────── */
.prof-header-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 0 28px 24px;
    position: relative;
}

/* ── Avatar (overlaps cover) ──────────────────────────── */
.prof-avatar-wrap {
    flex-shrink: 0;
    position: relative;
    margin-top: -44px;
    z-index: 2;
}

.prof-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white, #fff);
    box-shadow: 0 2px 10px rgba(0,0,0,.14);
    display: block;
}

.prof-avatar-initials {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--blue, #428ECC);
    color: var(--white, #fff);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    border: 4px solid var(--white, #fff);
    box-shadow: 0 2px 10px rgba(0,0,0,.14);
}

.prof-online-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #22c55e;
    border: 2.5px solid var(--white, #fff);
}

/* ── Info column (right of avatar) ───────────────────── */
.prof-info {
    flex: 1;
    min-width: 0;
    padding-top: 14px;
}

.prof-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ink, #1a1a2e);
    margin: 0 0 3px;
    line-height: 1.3;
}

.prof-position {
    font-size: 0.88rem;
    color: var(--gray-600, #6c757d);
    margin: 0 0 2px;
    font-weight: 500;
}

.prof-institution {
    font-size: 0.85rem;
    color: var(--gray-600, #6c757d);
    margin: 0 0 6px;
}

.prof-institution a {
    color: var(--blue, #428ECC);
    text-decoration: none;
    font-weight: 500;
}

.prof-institution a:hover { text-decoration: underline; }

.prof-location {
    font-size: 0.82rem;
    color: var(--gray-600, #6c757d);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

/* ── Social link pills ────────────────────────────────── */
.prof-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.prof-link {
    font-size: 0.78rem;
    color: var(--blue, #428ECC);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--blue-light, #eaf3fb);
    border-radius: 20px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.prof-link:hover {
    background: var(--blue, #428ECC);
    color: var(--white, #fff);
    text-decoration: none;
}

/* ── Bio ──────────────────────────────────────────────── */
.prof-bio {
    font-size: 0.87rem;
    color: var(--gray-800, #343a40);
    line-height: 1.65;
    margin-bottom: 6px;
}

.prof-see-more {
    font-size: 0.8rem;
    color: var(--blue, #428ECC);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
}

.prof-see-more:hover { text-decoration: underline; }

/* ── Action buttons ───────────────────────────────────── */
.prof-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.prof-actions .btn {
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: var(--radius-sm, 6px);
}

/* ── Stats row (inside prof-card, below header) ───────── */
.prof-stats {
    display: flex;
    border-top: 1px solid var(--gray-100, #f1f3f5);
    margin: 0;
}

.prof-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-right: 1px solid var(--gray-100, #f1f3f5);
    transition: background 0.15s;
}

.prof-stat:last-child { border-right: none; }

.prof-stat:hover { background: var(--gray-50, #f8f9fa); }

.prof-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--blue-light, #eaf3fb);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--blue, #428ECC);
}

.prof-stat-icon.stat-gold {
    background: #fff9e6;
    color: var(--yellow, #FECA38);
}

.prof-stat-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.prof-stat-val {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink, #1a1a2e);
    line-height: 1.2;
}

.prof-stat-lbl {
    font-size: 0.72rem;
    color: var(--gray-600, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ══ TABS ══════════════════════════════════════════════ */
.prof-tabs {
    margin-bottom: 28px;
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #e9ecef);
    border-radius: var(--radius-md, 10px);
    box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.06));
    padding: 0 24px;
}

.prof-tabs .nav-underline { border-bottom: none; }

.prof-tabs .nav-underline .nav-link {
    color: var(--gray-600, #6c757d);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 14px 0;
    margin-right: 28px;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.prof-tabs .nav-underline .nav-link:hover {
    color: var(--blue, #428ECC);
    border-bottom-color: var(--blue-light, #eaf3fb);
    background: transparent;
}

.prof-tabs .nav-underline .nav-link.active {
    color: var(--blue, #428ECC) !important;
    border-bottom-color: var(--blue, #428ECC) !important;
    font-weight: 600;
    background: transparent;
}

/* ══ CONTENT SECTIONS ══════════════════════════════════ */
.prof-section {
    margin-bottom: 36px;
}

.prof-section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.prof-section-hd h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink, #1a1a2e);
    margin: 0;
    padding-left: 10px;
    border-left: 3px solid var(--blue, #428ECC);
    line-height: 1.3;
}

.prof-view-all {
    font-size: 0.8rem;
    color: var(--blue, #428ECC);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.prof-view-all:hover { text-decoration: underline; }

/* ══ EMPTY STATE ════════════════════════════════════════ */
.prof-empty-state {
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #e9ecef);
    border-radius: var(--radius-md, 10px);
    box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.06));
    text-align: center;
    padding: 52px 24px;
}

.prof-empty-state p {
    color: var(--gray-600, #6c757d);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.prof-empty-state .btn-primary {
    background-color: var(--blue, #428ECC);
    border-color: var(--blue, #428ECC);
    font-weight: 600;
    border-radius: var(--radius-sm, 6px);
    padding: 8px 20px;
}

.prof-empty-state .btn-primary:hover {
    background-color: var(--blue-dark, #2e72ad);
    border-color: var(--blue-dark, #2e72ad);
}

/* ══ EXPERIENCE TAB CARDS ══════════════════════════════ */
.prof-exp-card {
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #e9ecef);
    border-radius: var(--radius-md, 10px);
    box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.06));
    margin-bottom: 16px;
    transition: box-shadow 0.2s ease;
}

.prof-exp-card:hover {
    box-shadow: var(--shadow-card-hover, 0 4px 16px rgba(66,142,204,0.14));
}

.prof-exp-card .card-body { padding: 20px 24px; }

.prof-exp-card .card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blue, #428ECC);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.prof-exp-card p {
    font-size: 0.87rem;
    color: var(--gray-800, #343a40);
    line-height: 1.65;
    margin-bottom: 6px;
}

.prof-exp-card strong { color: var(--ink, #1a1a2e); font-weight: 600; }

.prof-exp-card a {
    color: var(--blue, #428ECC);
    text-decoration: none;
    font-weight: 500;
}

.prof-exp-card a:hover { text-decoration: underline; }

.prof-exp-card .list-group-item {
    border: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100, #f1f3f5);
}

.prof-exp-card .list-group-item:last-child { border-bottom: none; }

/* ══ SIDEBAR CARDS ════════════════════════════════════════ */

.sb-card {
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #e9ecef);
    border-radius: var(--radius-md, 10px);
    box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,0.06));
    padding: 16px 18px;
}

.sb-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-600, #6c757d);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sb-card-title i { color: var(--blue, #428ECC); font-size: 0.85rem; }

.sb-card .btn-primary {
    background-color: var(--blue, #428ECC);
    border-color: var(--blue, #428ECC);
    border-radius: var(--radius-sm, 6px);
}
.sb-card .btn-primary:hover {
    background-color: var(--blue-dark, #2e72ad);
    border-color: var(--blue-dark, #2e72ad);
}
.sb-card .btn-outline-secondary { border-radius: var(--radius-sm, 6px); }

.sb-card-pct {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue, #428ECC);
}

.sb-checklist { list-style: none; padding: 0; margin: 0; }

.sb-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--gray-100, #f1f3f5);
}
.sb-checklist li:last-child { border-bottom: none; }

.sb-check-done { color: var(--gray-600, #6c757d); }
.sb-check-done i { color: #22c55e; font-size: 0.85rem; }
.sb-check-todo i { color: var(--gray-400, #ced4da); font-size: 0.85rem; }
.sb-check-todo a { color: var(--blue, #428ECC); text-decoration: none; font-weight: 500; }
.sb-check-todo a:hover { text-decoration: underline; }

.sb-network-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 8px;
}

.sb-network-val {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink, #1a1a2e);
}

.sb-network-lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-600, #6c757d);
    font-weight: 500;
}

.sb-link-list { list-style: none; padding: 0; margin: 0; }
.sb-link-list li { border-bottom: 1px solid var(--gray-100, #f1f3f5); }
.sb-link-list li:last-child { border-bottom: none; }
.sb-link-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--gray-800, #343a40);
    text-decoration: none;
    transition: color 0.15s;
}
.sb-link-list a:hover { color: var(--blue, #428ECC); }
.sb-link-list i { color: var(--blue, #428ECC); font-size: 0.9rem; width: 16px; text-align: center; }

.sb-badge {
    margin-left: auto;
    background: var(--blue, #428ECC);
    color: var(--white, #fff);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    line-height: 1.6;
}

.sb-info-list { list-style: none; padding: 0; margin: 0; }
.sb-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--gray-800, #343a40);
    border-bottom: 1px solid var(--gray-100, #f1f3f5);
}
.sb-info-list li:last-child { border-bottom: none; }
.sb-info-list i { color: var(--blue, #428ECC); width: 16px; text-align: center; margin-top: 2px; flex-shrink: 0; }
.sb-info-list a { color: var(--blue, #428ECC); text-decoration: none; font-weight: 500; }
.sb-info-list a:hover { text-decoration: underline; }

.sb-colleague-list { list-style: none; padding: 0; margin: 0; }

.sb-colleague {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100, #f1f3f5);
}
.sb-colleague:last-child { border-bottom: none; }

.sb-colleague-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue, #428ECC);
    color: var(--white, #fff);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}
.sb-colleague-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

.sb-colleague-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }

.sb-colleague-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink, #1a1a2e);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sb-colleague-name:hover { color: var(--blue, #428ECC); }

.sb-colleague-pos {
    font-size: 0.75rem;
    color: var(--gray-600, #6c757d);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-colleague-action { flex-shrink: 0; }

.sb-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--blue, #428ECC);
    color: var(--blue, #428ECC);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.sb-follow-btn:hover { background: var(--blue, #428ECC); color: var(--white, #fff); text-decoration: none; }
.sb-follow-btn.sb-following { background: var(--blue-light, #eaf3fb); }

/* ══ RESPONSIVE ══════════════════════════════════════ */
@media (max-width: 768px) {
    .prof-cover { height: 80px; }

    .prof-header-body {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px 20px;
        gap: 12px;
    }

    .prof-avatar-wrap { margin-top: -36px; }

    .prof-avatar,
    .prof-avatar-initials { width: 72px; height: 72px; font-size: 1.6rem; }

    .prof-name { font-size: 1.25rem; }

    .prof-stats { flex-wrap: wrap; }

    .prof-stat {
        flex: 1 1 50%;
        border-bottom: 1px solid var(--gray-100, #f1f3f5);
        padding: 12px 16px;
    }

    .prof-section-hd h3 { font-size: 0.95rem; }
}
