/* ==============================
   PROFILE PAGE
============================== */

:root{
    --primary:#5A321E;
    --primary-dark:#321A10;
    --primary-light:#87573B;

    --gold:#C99B3C;
    --gold-dark:#A97922;
    --gold-light:#F3D995;

    --cream:#FFF9F0;
    --cream-dark:#F5E9D8;
    --soft-bg:#FBF6EF;

    --white:#FFFFFF;
    --dark:#251B16;
    --text:#62544D;
    --muted:#8A7B73;
    --border:#E9DDCF;

    --danger:#D64545;
    --danger-dark:#A92E2E;

    --shadow-sm:0 10px 28px rgba(70,42,25,.09);
    --shadow-md:0 18px 45px rgba(70,42,25,.16);
}


/* ==============================
   PAGE
============================== */

.profile-page{
    min-height:100vh;
    padding:80px 20px;

    display:flex;
    align-items:flex-start;
    justify-content:center;

    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(201,155,60,.14),
            transparent 27%
        ),
        radial-gradient(
            circle at 88% 85%,
            rgba(90,50,30,.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--cream),
            var(--soft-bg)
        );

    color:var(--dark);
}


/* ==============================
   PROFILE CARD
============================== */

.profile-card{
    position:relative;

    width:100%;
    max-width:760px;

    padding:42px;

    overflow:hidden;

    border:1px solid rgba(201,155,60,.25);
    border-radius:24px;

    background:rgba(255,255,255,.96);

    box-shadow:var(--shadow-md);
}

.profile-card::before{
    content:"";

    position:absolute;
    top:-80px;
    right:-80px;

    width:190px;
    height:190px;

    border-radius:50%;

    background:rgba(201,155,60,.08);

    pointer-events:none;
}

.profile-card::after{
    content:"";

    position:absolute;
    left:50%;
    bottom:0;

    width:74%;
    height:3px;

    border-radius:20px;

    background:linear-gradient(
        90deg,
        transparent,
        var(--gold),
        var(--primary),
        transparent
    );

    transform:translateX(-50%);
}


/* ==============================
   PROFILE AVATAR
============================== */

.profile-avatar{
    position:relative;
    z-index:2;

    width:98px;
    height:98px;

    margin:0 auto 21px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid rgba(201,155,60,.35);
    border-radius:50%;

    background:
        linear-gradient(
            145deg,
            var(--cream),
            #F0DFC2
        );

    color:var(--primary);

    font-size:40px;

    box-shadow:
        0 12px 26px rgba(70,42,25,.14),
        inset 0 0 0 8px rgba(255,255,255,.52);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.profile-avatar:hover{
    transform:translateY(-3px) scale(1.03);

    box-shadow:
        0 16px 32px rgba(70,42,25,.18),
        inset 0 0 0 8px rgba(255,255,255,.55);
}


/* ==============================
   PROFILE HEADING
============================== */

.profile-heading{
    position:relative;
    z-index:2;

    margin-bottom:35px;

    text-align:center;
}

.profile-heading h1{
    margin-bottom:9px;

    color:var(--primary);

    font-family:'Playfair Display',serif;
    font-size:36px;
    font-weight:700;
    line-height:1.25;
}

.profile-heading p{
    color:var(--text);

    font-size:14px;
    line-height:1.7;
}


/* ==============================
   PROFILE DETAILS
============================== */

.profile-details{
    position:relative;
    z-index:2;

    overflow:hidden;

    border:1px solid var(--border);
    border-radius:15px;

    background:var(--white);

    box-shadow:var(--shadow-sm);
}

.profile-row{
    padding:18px 20px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;

    border-bottom:1px solid var(--border);

    transition:
        background .3s ease,
        padding-left .3s ease;
}

.profile-row:last-child{
    border-bottom:none;
}

.profile-row:hover{
    padding-left:24px;

    background:var(--cream);
}

.profile-row span{
    display:flex;
    align-items:center;
    gap:10px;

    color:var(--text);

    font-size:14px;
    font-weight:600;
}

.profile-row span i{
    width:21px;

    color:var(--gold-dark);

    text-align:center;
}

.profile-row strong{
    max-width:60%;

    color:var(--dark);

    font-size:14px;
    font-weight:700;

    text-align:right;
    word-break:break-word;
}


/* ==============================
   PROFILE ACTIONS
============================== */

.profile-actions{
    position:relative;
    z-index:2;

    display:flex;
    gap:15px;
    flex-wrap:wrap;

    margin-top:30px;
}

.profile-btn,
.danger-btn{
    min-width:180px;
    min-height:50px;
    padding:13px 21px;

    flex:1;

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    border:none;
    border-radius:26px;

    color:var(--white);

    font-family:inherit;
    font-size:14px;
    font-weight:700;

    cursor:pointer;

    text-decoration:none;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}


/* ==============================
   PRIMARY PROFILE BUTTON
============================== */

.profile-btn{
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    box-shadow:0 10px 24px rgba(70,42,25,.22);
}

.profile-btn:hover{
    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-dark)
        );

    transform:translateY(-3px);

    box-shadow:0 14px 30px rgba(169,121,34,.25);
}


/* ==============================
   SECONDARY PROFILE BUTTON
============================== */

.profile-btn.secondary{
    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-dark)
        );

    box-shadow:0 10px 24px rgba(169,121,34,.20);
}

.profile-btn.secondary:hover{
    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            var(--primary)
        );

    transform:translateY(-3px);

    box-shadow:0 14px 30px rgba(70,42,25,.23);
}


/* ==============================
   DANGER BUTTON
============================== */

.danger-btn{
    background:
        linear-gradient(
            135deg,
            #E65A58,
            var(--danger-dark)
        );

    box-shadow:0 10px 24px rgba(169,46,46,.18);
}

.danger-btn:hover{
    background:
        linear-gradient(
            135deg,
            var(--danger),
            #8D2222
        );

    transform:translateY(-3px);

    box-shadow:0 14px 30px rgba(169,46,46,.25);
}

.profile-btn:active,
.danger-btn:active{
    transform:translateY(-1px);
}

.profile-btn:disabled,
.danger-btn:disabled{
    opacity:.65;

    cursor:not-allowed;

    transform:none;
    box-shadow:none;
}


/* ==============================
   RESPONSIVE
============================== */

@media(max-width:600px){

    .profile-page{
        padding:50px 15px;
    }

    .profile-card{
        padding:30px 19px;

        border-radius:20px;
    }

    .profile-avatar{
        width:82px;
        height:82px;

        font-size:34px;
    }

    .profile-heading{
        margin-bottom:28px;
    }

    .profile-heading h1{
        font-size:30px;
    }

    .profile-heading p{
        font-size:13px;
    }

    .profile-row{
        padding:16px;

        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }

    .profile-row:hover{
        padding-left:16px;
    }

    .profile-row strong{
        max-width:100%;

        text-align:left;
    }

    .profile-actions{
        flex-direction:column;
        gap:12px;
    }

    .profile-btn,
    .danger-btn{
        width:100%;
        min-width:0;
    }

}


@media(max-width:360px){

    .profile-page{
        padding-left:10px;
        padding-right:10px;
    }

    .profile-card{
        padding-left:15px;
        padding-right:15px;
    }

    .profile-heading h1{
        font-size:27px;
    }

    .profile-row{
        padding-left:13px;
        padding-right:13px;
    }

}