/* perfil.css */

:root {
    --background-color: #F9F9F9;
    --foreground-color: #151320;

    --card-color: #FFFFFF;

    --primary-color: #7430E8;
    --primary-foreground-color: #FFFFFF;

    --secondary-color: #eeedf2;
    --secondary-foreground-color: #201D30;

    --accent-color: #2EB8A5;

    --muted-foreground-color: #6B677E;

    --border-color: #e3e2e9;
}

/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
}

body{
    background:var(--background-color);
    color:var(--foreground-color);
}

/* CONTAINER */

.profile-container{
    width:100%;
    min-height:100vh;
}

/* BANNER */

.banner{
    width:100%;
    height:320px;

    background:
    linear-gradient(
        135deg,
        var(--primary-color),
        var(--accent-color)
    );

    position:relative;

    overflow:hidden;
}

.banner::before{
    content:"";

    position:absolute;

    width:500px;
    height:500px;

    background:rgba(255,255,255,0.08);

    border-radius:50%;

    top:-180px;
    right:-100px;
}

.banner-upload{
    position:absolute;

    top:20px;
    right:20px;

    background:rgba(0,0,0,0.25);

    color:white;

    padding:10px 18px;

    border-radius:10px;

    cursor:pointer;

    backdrop-filter:blur(10px);

    font-size:14px;
}

/* FOTO */

.profile-photo-area{
    display:flex;
    justify-content:center;

    margin-top:-90px;

    position:relative;
    z-index:10;
}

.profile-photo-wrapper{
    position:relative;
}

.profile-photo{
    width:180px;
    height:180px;

    border-radius:50%;

    object-fit:cover;

    border:8px solid var(--card-color);

    box-shadow:
    0 10px 25px rgba(0,0,0,0.15);
}

.photo-upload{
    position:absolute;

    bottom:10px;
    right:10px;

    width:42px;
    height:42px;

    border-radius:50%;

    background:var(--primary-color);

    color:white;

    display:flex;
    justify-content:center;
    align-items:center;

    cursor:pointer;

    font-size:18px;

    box-shadow:
    0 5px 15px rgba(0,0,0,0.2);
}

/* INFO */

.profile-info{
    max-width:1100px;

    margin:auto;

    padding:30px;
}

.top-profile{
    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:20px;
}

.top-profile h1{
    font-size:38px;
}

.username-id{
    color:var(--muted-foreground-color);

    margin-top:5px;
}

.edit-btn{
    border:none;

    background:var(--primary-color);

    color:white;

    padding:14px 24px;

    border-radius:14px;

    font-weight:600;

    cursor:pointer;

    transition:0.3s;
}

.edit-btn:hover{
    transform:translateY(-2px);

    background:#6424d5;
}

/* BIO */

.bio-area{
    margin-top:30px;
}

.bio-area textarea{
    width:100%;
    height:120px;

    border:none;

    resize:none;

    background:var(--card-color);

    border:1px solid var(--border-color);

    border-radius:20px;

    padding:20px;

    font-size:15px;

    outline:none;

    color:var(--foreground-color);

    box-shadow:
    0 5px 15px rgba(0,0,0,0.04);
}

/* STATS */

.stats{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

    margin-top:30px;
}

.stat-card{
    background:var(--card-color);

    border-radius:20px;

    padding:30px;

    text-align:center;

    border:1px solid var(--border-color);

    transition:0.3s;
}

.stat-card:hover{
    transform:translateY(-4px);
}

.stat-card h2{
    font-size:42px;

    color:var(--primary-color);
}

.stat-card p{
    margin-top:8px;

    color:var(--muted-foreground-color);
}

/* SETTINGS */

.settings-card{
    margin-top:35px;

    background:var(--card-color);

    border-radius:24px;

    padding:30px;

    border:1px solid var(--border-color);
}

.settings-card h3{
    margin-bottom:25px;

    font-size:24px;
}

.setting-item{
    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 0;

    border-bottom:1px solid var(--border-color);
}

.setting-item:last-child{
    border:none;
}

.setting-item h4{
    margin-bottom:5px;
}

.setting-item p{
    color:var(--muted-foreground-color);

    font-size:14px;
}

/* SWITCH */

.switch{
    position:relative;

    width:60px;
    height:32px;
}

.switch input{
    display:none;
}

.slider{
    position:absolute;

    inset:0;

    background:#ccc;

    border-radius:50px;

    cursor:pointer;

    transition:0.3s;
}

.slider::before{
    content:"";

    position:absolute;

    width:24px;
    height:24px;

    background:white;

    border-radius:50%;

    left:4px;
    top:4px;

    transition:0.3s;
}

.switch input:checked + .slider{
    background:var(--accent-color);
}

.switch input:checked + .slider::before{
    transform:translateX(28px);
}

/* POSTS */

.posts-section{
    margin-top:35px;
}

.posts-header{
    margin-bottom:20px;
}

.posts-grid{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));

    gap:20px;
}

.post-card{
    aspect-ratio:1/1;

    border-radius:24px;

    background:
    linear-gradient(
        135deg,
        var(--primary-color),
        var(--accent-color)
    );

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:50px;

    color:white;

    transition:0.3s;

    cursor:pointer;
}

.post-card:hover{
    transform:scale(1.03);
}

/* RESPONSIVO */

@media(max-width:768px){

    .banner{
        height:240px;
    }

    .profile-photo{
        width:140px;
        height:140px;
    }

    .top-profile{
        flex-direction:column;
        align-items:flex-start;
    }

    .top-profile h1{
        font-size:30px;
    }

}