/* Provider photo placeholders when no profile picture */
.provider-photo__placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    background: linear-gradient(145deg, var(--ph-top, #0d7c7b) 0%, var(--ph-bottom, #0a5c5b) 100%);
    position: relative;
    overflow: hidden;
}

.provider-photo__placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
    pointer-events: none;
}

.provider-photo__placeholder--individual {
    --ph-top: #0d7c7b;
    --ph-bottom: #085654;
}

.provider-photo__placeholder--service {
    --ph-top: #0a8f5c;
    --ph-bottom: #066b45;
}

.provider-photo__placeholder--company {
    --ph-top: #c27803;
    --ph-bottom: #9a5f02;
}

.provider-photo__placeholder--client {
    --ph-top: #1a3d52;
    --ph-bottom: #0f2d3d;
}

.provider-photo__initials {
    position: relative;
    z-index: 1;
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.96);
    letter-spacing: 0.06em;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.provider-photo__icon {
    position: relative;
    z-index: 1;
    font-size: clamp(1.1rem, 3vw, 1.65rem);
    color: rgba(255, 255, 255, 0.45);
}

/* Card / list: placeholder is the image area */
.usta-image.provider-photo__placeholder,
.result-image.provider-photo__placeholder {
    object-fit: unset;
}

/* Profile page — circular */
.profile-avatar-wrapper--no-photo .provider-photo__placeholder {
    border-radius: 50%;
    aspect-ratio: 1;
}

.profile-avatar-wrapper--no-photo .profile-avatar.provider-photo__placeholder {
    border: 5px solid #fff;
    box-shadow: 0 8px 24px rgba(15, 45, 61, 0.15);
}

.profile-avatar-wrapper--no-photo .provider-photo__initials {
    font-size: 2.5rem;
}

.result-image-wrapper--no-photo {
    background: var(--ut-border-light, #e4ecf2);
}

/* Softer gradient under card overlay */
.usta-image-container:has(.provider-photo__placeholder) .usta-card-gradient {
    opacity: 0.35;
}

.usta-card-live:hover .usta-image-container:has(.provider-photo__placeholder) .usta-card-gradient {
    opacity: 0.5;
}
