/* ══════════════════════════════════════════════════
   INSTA MENTOR - PROFILE HEADER (PROFESSIONAL)
   ══════════════════════════════════════════════════ */

.insta-profile-header {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    direction: ltr;
    max-width: 935px;
    margin: 0 auto;
    padding: 30px 20px 0;
    background: #ffffff;
    box-sizing: border-box;
}

/* ═══════════ TOP ROW: AVATAR + STATS ═══════════ */
.insta-profile-top-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 30px;
}

.insta-profile-avatar-col {
    flex-shrink: 0;
    margin-right: 30px;
}

.insta-profile-avatar-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 0;
}

.insta-profile-avatar-wrap.has-story {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 3px;
}

.insta-profile-avatar-wrap.has-story .insta-profile-avatar {
    border: 3px solid #ffffff;
    box-sizing: content-box;
}

.insta-profile-avatar {
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-sizing: content-box;
}

.insta-profile-avatar-link {
    display: block;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.insta-profile-avatar-link:hover {
    opacity: 0.85;
}

/* ─── STATS ─────────────────────────────────── */
.insta-profile-stats {
    display: flex;
    gap: 40px;
    flex: 1;
    justify-content: flex-start;
    align-items: center;
}

.insta-stat-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
}

.insta-stat-item:hover {
    opacity: 0.7;
}

.insta-stat-count {
    font-size: 18px;
    font-weight: 700;
    color: #262626;
    line-height: 1.2;
}

.insta-stat-label {
    font-size: 16px;
    font-weight: 400;
    color: #262626;
}

/* ═══════════ INFO SECTION ═══════════ */
.insta-profile-info {
    margin-bottom: 20px;
}

.insta-profile-username-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.insta-profile-username {
    font-size: 20px;
    font-weight: 400;
    color: #262626;
    line-height: 1.3;
}

.insta-profile-verified {
    color: #0095f6;
    font-size: 18px;
    display: flex;
    align-items: center;
    line-height: 1;
}

.insta-profile-category {
    font-size: 14px;
    font-weight: 600;
    color: #737373;
    margin-bottom: 2px;
    line-height: 1.4;
}

.insta-profile-bio {
    font-size: 14px;
    color: #262626;
    line-height: 1.5;
    white-space: pre-line;
    margin: 0;
}

.insta-profile-bio a {
    color: #00376b;
    text-decoration: none;
    font-weight: 500;
}

.insta-profile-bio a:hover {
    text-decoration: underline;
}

.insta-profile-website {
    margin-top: 4px;
}

.insta-profile-website a {
    font-size: 14px;
    font-weight: 600;
    color: #00376b;
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.insta-profile-website a:hover {
    opacity: 0.7;
}

/* ═══════════ BUTTONS ═══════════ */
.insta-profile-buttons {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.insta-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.2s ease;
    line-height: 1.6;
    text-align: center;
}

.insta-profile-btn-primary {
    background: #0095f6;
    color: #ffffff;
    flex: 1;
    max-width: 250px;
}

.insta-profile-btn-primary:hover {
    background: #1877f2;
}

.insta-profile-btn-secondary {
    background: #efefef;
    color: #262626;
    flex: 1;
    max-width: 250px;
}

.insta-profile-btn-secondary:hover {
    background: #dbdbdb;
}

.insta-profile-btn-icon {
    background: #efefef;
    color: #262626;
    padding: 7px 12px;
    min-width: auto;
    border-radius: 8px;
}

.insta-profile-btn-icon:hover {
    background: #dbdbdb;
}

/* ═══════════ HIGHLIGHTS ═══════════ */
.insta-profile-highlights-wrap {
    position: relative;
    margin-top: 24px;
    padding: 0 24px;
}

.insta-profile-highlights {
    display: flex;
    overflow-x: auto;
    gap: 22px;
    padding: 8px 0 12px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.insta-profile-highlights::-webkit-scrollbar {
    display: none;
}

.insta-highlight-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.insta-highlight-item:hover {
    opacity: 0.8;
}

.insta-highlight-circle {
    border-radius: 50%;
    border: 1px solid #dbdbdb;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
    box-sizing: content-box;
}

.insta-highlight-circle.new-highlight {
    border: 2px solid #c7c7c7;
}

.insta-highlight-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.insta-highlight-label {
    font-size: 12px;
    font-weight: 400;
    color: #262626;
    text-align: center;
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

/* ─── NAVIGATION ARROWS ─────────────────────── */
.insta-highlights-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #dbdbdb;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #262626;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.insta-highlights-nav-btn:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.insta-highlights-nav-btn.prev {
    left: 0;
}

.insta-highlights-nav-btn.next {
    right: 0;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 735px) {
    .insta-profile-header {
        padding: 16px 16px 0;
    }

    .insta-profile-top-row {
        gap: 20px;
    }

    .insta-profile-avatar-col {
        margin-right: 20px;
    }

    .insta-profile-stats {
        gap: 20px;
    }

    .insta-stat-count {
        font-size: 16px;
    }

    .insta-stat-label {
        font-size: 14px;
    }

    .insta-profile-username {
        font-size: 18px;
    }

    .insta-profile-bio {
        font-size: 13px;
    }

    .insta-profile-highlights {
        gap: 16px;
    }

    .insta-highlight-label {
        font-size: 11px;
        max-width: 65px;
    }
}

@media (max-width: 480px) {
    .insta-profile-top-row {
        gap: 12px;
    }

    .insta-profile-avatar-col {
        margin-right: 12px;
    }

    .insta-profile-stats {
        gap: 14px;
    }

    .insta-stat-item {
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .insta-stat-count {
        font-size: 14px;
    }

    .insta-stat-label {
        font-size: 12px;
    }

    .insta-profile-highlights {
        gap: 12px;
    }

    .insta-profile-highlights-wrap {
        padding: 0 18px;
    }
}

/* ═══════════ DARK MODE ═══════════ */
.dark-mode .insta-profile-header {
    background: #000000;
}

.dark-mode .insta-stat-count,
.dark-mode .insta-stat-label,
.dark-mode .insta-profile-username,
.dark-mode .insta-profile-bio {
    color: #f5f5f5;
}

.dark-mode .insta-profile-category {
    color: #a8a8a8;
}

.dark-mode .insta-profile-website a,
.dark-mode .insta-profile-bio a {
    color: #e0f1ff;
}

.dark-mode .insta-profile-btn-secondary,
.dark-mode .insta-profile-btn-icon {
    background: #363636;
    color: #f5f5f5;
}

.dark-mode .insta-profile-btn-secondary:hover,
.dark-mode .insta-profile-btn-icon:hover {
    background: #262626;
}

.dark-mode .insta-highlight-circle {
    border-color: #363636;
}

.dark-mode .insta-highlight-label {
    color: #f5f5f5;
}

.dark-mode .insta-highlights-nav-btn {
    background: #1a1a1a;
    border-color: #363636;
    color: #f5f5f5;
}