/*
 * WP Professional Profile Badge - front-end styles.
 *
 * Scoped to .wppb-badge so we coexist with any theme.
 */
.wppb-badge {
    --wppb-accent: #2f6fdf;
    --wppb-button: #45617f;
    --wppb-text: #111827;
    --wppb-muted: #273244;
    --wppb-border: #d9e0ea;
    --wppb-surface: #ffffff;

    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 198px);
    padding: 16px 18px 18px;
    border: 1px solid var(--wppb-border);
    border-radius: 6px;
    background: var(--wppb-surface);
    color: var(--wppb-text);
    box-sizing: border-box;
    font-family: inherit;
    text-align: center;
}

.wppb-badge *,
.wppb-badge *::before,
.wppb-badge *::after {
    box-sizing: border-box;
}

.wppb-badge-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 16px;
}

.wppb-avatar {
    width: 124px;
    height: 124px;
    aspect-ratio: 1;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex: 0 0 auto;
    background: #eef2f6;
    line-height: 0;
}

.wppb-avatar img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.wppb-badge-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.wppb-full-name {
    margin: 0;
    color: var(--wppb-accent);
    font-size: 29px;
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.wppb-headline {
    margin: 13px 0 0;
    color: #000000;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.wppb-follower-count {
    margin: 7px 0 0;
    color: #000000;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
}

.wppb-follower-count strong {
    font-weight: 700;
}

.wppb-badge-footer {
    width: 100%;
    margin-top: 18px;
}

.wppb-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    min-height: 52px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--wppb-button);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.wppb-profile-link::before {
    content: "in";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    background: #ffffff;
    color: var(--wppb-button);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.wppb-profile-link:hover,
.wppb-profile-link:focus {
    background: #324b68;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.wppb-profile-link:focus-visible {
    outline: 3px solid rgba(47, 111, 223, 0.35);
    outline-offset: 3px;
}

.wppb-badge.wppb-badge--landscape {
    align-items: stretch;
    width: 100%;
    max-width: 520px;
    padding: 14px;
    text-align: left;
}

.wppb-badge.wppb-badge--landscape .wppb-badge-header {
    display: grid !important;
    grid-template-columns: clamp(84px, 32%, 118px) minmax(0, 1fr);
    align-items: center;
    width: 100%;
    gap: 14px;
}

.wppb-badge.wppb-badge--landscape .wppb-avatar {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    justify-self: start;
}

.wppb-badge.wppb-badge--landscape .wppb-badge-info {
    align-items: flex-start;
}

.wppb-badge.wppb-badge--landscape .wppb-full-name {
    font-size: 22px;
    line-height: 1.2;
}

.wppb-badge.wppb-badge--landscape .wppb-headline {
    margin-top: 8px;
    color: var(--wppb-muted);
    font-size: 16px;
    line-height: 1.35;
}

.wppb-badge.wppb-badge--landscape .wppb-follower-count {
    margin-top: 10px;
    font-size: 15px;
}

.wppb-badge.wppb-badge--landscape .wppb-badge-footer {
    width: auto;
    margin-top: 12px;
}

.wppb-badge.wppb-badge--landscape .wppb-profile-link {
    min-height: 40px;
    padding: 8px 14px;
    white-space: nowrap;
}
