
@import url('../../main.css');

.profile-page 
{

    display: grid;
    justify-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(28px, 6vw, 64px) var(--page-pad);

}

.btn 
{

    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    color: var(--text);
    font-size: var(--fs-sm);
    white-space: nowrap;
    transition: background-color var(--ease);

}

.btn i 
{ 
    
    font-size: 0.85em; 
    opacity: 0.8; 

}

.btn--primary { background: var(--primary); }

.btn--primary:hover { background: var(--primary-dark); }

.profile 
{

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 560px;
    padding: clamp(24px, 5vw, 40px);

    background:
        radial-gradient(ellipse at 50% 0%, rgba(214, 50, 113, 0.14), transparent 65%),
        var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;

}

.profile__pfp 
{

    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--primary);

}

.profile__pfp-none 
{

    width: 140px;
    height: 140px;
    background-color: var(--bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30pt;

}

.profile__identity 
{

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;

}

.profile__name 
{

    color: var(--primary);
    font-size: 1.25rem;
    overflow-wrap: anywhere;

}

.profile__stats 
{

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

}

.profile__stat 
{

    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 2px;
    padding: 14px 8px;

}

.profile__stat + .profile__stat { border-left: 1px solid var(--border); }

.profile__stat dt 
{

    color: var(--text-faint);
    font-size: var(--fs-xs);

}

.profile__stat dd 
{

    color: var(--text);
    font-size: 1.125rem;
    font-weight: 600;

}

.profile__about 
{

    max-width: 46ch;
    color: var(--text-ghost);
    font-size: var(--fs-sm);
    line-height: 1.7;
    overflow-wrap: anywhere;

}

.posts 
{

    display: flex;
    justify-content: center;

}

.posts__center
{ 
    
    padding: 0px 25px;
    width: 1280px; 

}

@media screen and (max-width: 1330px) 
{

    .posts__center { width: 100%; }

}

@media (max-width: 550px) 
{

    .profile-page 
    {

        padding-left: 0;
        padding-right: 0;

    }

    .profile 
    {

        width: 100%;
        border-left: 0;
        border-right: 0;
        border-radius: 0;

    }

    .profile__stats { grid-template-columns: repeat(2, 1fr); }

    .profile__stat:nth-child(odd) { border-left: 0; }

    .profile__stat:nth-child(n + 3) { border-top: 1px solid var(--border); }

}