/* Shared discovery previews for the homepage and not-found page. */
.featured-profile {
    position: relative;
    flex: 0 0 300px;
    width: 300px;
    min-height: 132px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 10px 26px rgb(19 24 35 / 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-profile:hover {
    box-shadow: 0 15px 34px rgb(19 24 35 / 0.15);
}

/* Arrow fades/slides in from the right edge on hover. */
.featured-profile-arrow {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 2;
    transform: translateX(6px);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.featured-profile:hover .featured-profile-arrow,
.featured-profile:focus-visible .featured-profile-arrow {
    opacity: 1;
    transform: translateX(0);
}

.featured-profile-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(120deg, var(--surface-raised), var(--border));
}

/* Name sits directly on the banner with a dark scrim behind it, mirroring
   the side-mode header treatment on public profiles. */
.featured-profile-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Leave room for the hover arrow so it never covers the URL line. */
    padding: 40px 56px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0) 100%);
}

.featured-profile-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.85);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.35);
}

.featured-profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-profile-avatar.is-default img {
    width: 18px;
    height: auto;
    object-fit: contain;
}

.featured-profile-copy {
    flex: 1;
    min-width: 0;
    margin: 0;
    text-align: left;
}

.featured-profile-name {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-profile-handle {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

