/**
 * Profile Banner Styles
 */

.msp-profile-banner {
    position: relative;
    width: 100%;
    height: 340px;
    margin: 0 0 40px;
    border-radius: 12px !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #E0E0E0;
    overflow: hidden;
}

.msp-profile-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 19.28%, rgba(0, 0, 0, 0.55) 100%);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

.msp-profile-banner__user {
    position: absolute;
    bottom: 114px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.msp-profile-banner__avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: visible;
    flex-shrink: 0;
    position: relative;
}

.msp-profile-banner__avatar a {
    display: block;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
}

.msp-profile-banner__avatar[data-country]::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    z-index: 3;
    background-image: var(--msp-flag-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.msp-profile-banner__avatar--placeholder {
    background-color: #F6F6F6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 64px !important;
}

.msp-profile-banner__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 64px;
}

.msp-profile-banner__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.msp-profile-banner__name {
    color: #FFFFFF;
    font-family: 'Source Sans 3';
    font-weight: 400;
    font-size: 26px;
    line-height: 32px;
    letter-spacing: 0%;
    margin: 0 !important;
}

.msp-profile-banner__location {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #FFFFFF;
}

.msp-profile-banner__social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.msp-profile-banner__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #FFFFFF;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.msp-profile-banner__social-link svg {
    width: 24px;
    height: 24px;
}

.msp-profile-banner__social-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.msp-profile-banner__social-link--facebook {
    background-color: #1877F2;
}

.msp-profile-banner__social-link--twitter {
    background-color: #1DA1F2;
}

.msp-profile-banner__social-link--youtube {
    background-color: #FF0000;
}

.msp-profile-banner__stats {
    position: absolute;
    right: 40px;
    bottom: 74px;
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 2;
}

.msp-profile-banner__stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 16px;
    color: #FFFFFF;
}

.msp-profile-banner__stat-label {
    font-weight: 400;
}

.msp-profile-banner__stat-value {
    font-weight: 600;
}

/* Friend Actions in Banner */
.msp-profile-banner__actions {
    margin-top: 12px;
}

.msp-btn--banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.msp-btn--banner.msp-btn--primary {
    background-color: var(--color-accent);
    color: #FFFFFF;
}

.msp-btn--banner.msp-btn--primary:hover {
    background-color: var(--color-accent-dark, #5A9A3D);
}

.msp-btn--banner.msp-btn--primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.msp-btn--banner svg {
    flex-shrink: 0;
}

/* Request Sent State */
.msp-friend-request-sent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px 4px 4px 12px;
}

.msp-friend-request-sent__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    color: #FFFFFF;
}

.msp-friend-request-sent__btn svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

.msp-friend-request-sent__cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    transition: background-color 0.2s ease;
}

.msp-friend-request-sent__cancel:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* ===========================================
 * MOBILE RESPONSIVE - Based on Figma 1933-114372
 * =========================================== */

@media (max-width: 768px) {
    .msp-profile-banner {
        height: 480px;
        margin: 24px 0 24px;
    }

    /* Center content vertically on mobile */
    .msp-profile-banner__user {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        bottom: auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        width: 272px;
    }

    .msp-profile-banner__info {
        align-items: center;
        gap: 24px;
    }

    .msp-profile-banner__name {
        font-size: 26px;
        line-height: 32px;
    }

    .msp-profile-banner__location {
        font-size: 16px;
        line-height: 20px;
    }

    /* Social links section (if added) */
    .msp-profile-banner__social {
        display: flex;
        gap: 8px;
        margin-top: 8px;
    }

    /* Add Friend button on mobile */
    .msp-profile-banner__actions {
        margin-top: 0;
        width: 240px;
    }

    .msp-btn--banner {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        height: 40px;
        border-radius: 10px;
        background-color: #FFFFFF !important;
        color: var(--color-accent, #8FB56C) !important;
        border: 2px solid var(--color-accent, #8FB56C) !important;
    }

    .msp-btn--banner:hover {
        background-color: var(--color-accent, #8FB56C) !important;
        color: #FFFFFF !important;
    }

    /* Stats at bottom on mobile */
    .msp-profile-banner__stats {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 52px;
        right: auto;
        gap: 12px;
        font-size: 16px;
    }

    .msp-profile-banner__stat {
        font-size: 16px;
        line-height: 20px;
    }

    .msp-profile-banner__stat-label {
        font-weight: 400;
    }

    .msp-profile-banner__stat-value {
        font-weight: 500;
    }
}