/*
 * ChrisEmm Connect 3.23.1 SAFE – Profile UI Refresh
 * Nur Darstellung der bestehenden Profilfunktionen.
 */

.modern-profile-page .modern-profile-hero {
    overflow: hidden;
}

.modern-profile-page .modern-profile-cover {
    position: relative;
}

.modern-profile-page .modern-profile-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, .52)),
        radial-gradient(circle at 78% 20%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 32%);
    pointer-events: none;
}

.profile-hero-motto {
    max-width: 680px;
    color: #cbd5e1 !important;
    line-height: 1.55;
}

.profile-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.profile-card-heading h2 {
    margin: .2rem 0 0;
}

.profile-card-heading-icon,
.profile-card-heading-link {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 13px;
    border: 1px solid color-mix(in srgb, var(--accent) 32%, rgba(148,163,184,.16));
    background: color-mix(in srgb, var(--accent) 13%, rgba(15,23,42,.7));
    color: #e2e8f0;
    text-decoration: none;
}

.profile-card-heading-link:hover {
    color: #fff;
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 65%, transparent);
}

.profile-facts-modern {
    gap: 9px;
}

.profile-facts-modern > div {
    padding: 11px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .10);
    align-items: center;
}

.profile-facts-modern > div:last-child {
    border-bottom: 0;
}

.profile-facts-modern dt {
    display: flex;
    align-items: center;
    gap: 9px;
}

.profile-facts-modern dt i {
    width: 18px;
    color: var(--accent);
    text-align: center;
}

.profile-facts-modern dd {
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-short-link {
    color: #e2e8f0;
    text-decoration: none;
}

.profile-short-link:hover {
    color: #fff;
    text-decoration: underline;
}

.profile-muted-value {
    color: #64748b;
}

.profile-social-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, .12);
}

.profile-social-label {
    display: block;
    margin-bottom: 10px;
    color: #94a3b8;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-social-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 12px;
    background: rgba(148, 163, 184, .07);
    color: #e2e8f0;
    text-decoration: none;
    font-size: .86rem;
    transition: .16s ease;
}

a.profile-social-link:hover {
    transform: translateY(-1px);
    background: rgba(148, 163, 184, .12);
    border-color: rgba(148, 163, 184, .30);
    color: #fff;
}

.profile-social-instagram i { color: #e879f9; }
.profile-social-tiktok i { color: #f8fafc; }
.profile-social-youtube i { color: #f87171; }
.profile-social-website i { color: #60a5fa; }
.profile-social-discord i { color: #818cf8; }

.profile-online-summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    padding: 7px 10px;
    border-radius: 999px;
    color: #86efac;
    background: rgba(34, 197, 94, .10);
    border: 1px solid rgba(34, 197, 94, .18);
    font-size: .78rem;
    font-weight: 800;
}

.profile-online-summary i {
    font-size: .55rem;
}

.profile-friends-card .avatar-friend-list {
    gap: 10px;
}

.profile-friends-card .avatar-friend-chip {
    border: 1px solid rgba(148, 163, 184, .12);
    transition: .16s ease;
}

.profile-friends-card .avatar-friend-chip:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 45%, rgba(148,163,184,.12));
    background: color-mix(in srgb, var(--accent) 10%, rgba(148,163,184,.08));
}

.profile-gallery-card .profile-gallery-preview > a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #0b1220;
}

.profile-gallery-card .profile-gallery-preview img {
    border-radius: 0;
    transition: transform .2s ease, filter .2s ease;
}

.profile-gallery-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(2, 6, 23, .42);
    opacity: 0;
    transition: opacity .18s ease;
}

.profile-gallery-card .profile-gallery-preview > a:hover img {
    transform: scale(1.04);
    filter: brightness(.85);
}

.profile-gallery-card .profile-gallery-preview > a:hover .profile-gallery-hover {
    opacity: 1;
}

.profile-gallery-empty {
    grid-column: 1 / -1;
    min-height: 110px;
    display: grid;
    place-items: center;
    gap: 7px;
    padding: 20px;
    border: 1px dashed rgba(148,163,184,.18);
    border-radius: 14px;
    color: #64748b;
    text-align: center;
}

.profile-gallery-empty i {
    font-size: 1.4rem;
}

@media (max-width: 720px) {
    .profile-card-heading {
        align-items: center;
    }

    .profile-facts-modern > div {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .profile-facts-modern dd {
        text-align: left;
        padding-left: 27px;
    }

    .profile-social-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-social-link {
        justify-content: center;
        min-width: 0;
    }

    .profile-online-summary {
        padding-inline: 9px;
    }
}

@media (max-width: 420px) {
    .profile-social-links {
        grid-template-columns: 1fr;
    }

    .profile-card-heading-icon,
    .profile-card-heading-link {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}
