/* ==========================================
   THEPETGRID - MY PROFILE
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:"Outfit",sans-serif;

    background:
    linear-gradient(180deg,#fffaf4 0%,#fff4e5 100%);

    color:#2c2c2c;

}

/* HEADER */

.header{

    height:75px;

    background:#ffffff;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 50px;

    box-shadow:0 5px 20px rgba(0,0,0,.06);

    position:sticky;

    top:0;

    z-index:100;

}

.logo{

    font-size:28px;

    font-weight:800;

    color:#ff8c00;

}

nav{

    display:flex;

    gap:30px;

}

nav a{

    text-decoration:none;

    color:#444;

    font-weight:600;

    transition:.3s;

}

nav a:hover{

    color:#ff8c00;

}

/* PAGE */

.profile-page{

    width:min(1200px,92%);

    margin:40px auto;

}

/* PROFILE HEADER */

.profile-header{

    display:flex;

    align-items:center;

    gap:30px;

    background:#fff;

    padding:40px;

    border-radius:22px;

    box-shadow:0 15px 45px rgba(0,0,0,.08);

}

.avatar{

    width:110px;

    height:110px;

    border-radius:50%;

    background:linear-gradient(135deg,#ffb100,#ff8a00);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:54px;

    color:white;

}

.profile-info h1{

    font-size:42px;

    margin-bottom:10px;

}

.profile-info p{

    color:#777;

}

/* DASHBOARD */

.dashboard{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:20px;

    margin-top:35px;

}

.stat-card{

    background:white;

    border-radius:18px;

    padding:30px;

    text-align:center;

    box-shadow:0 12px 35px rgba(0,0,0,.06);

}

.stat-card h2{

    font-size:42px;

    color:#ff8a00;

}

.stat-card p{

    margin-top:8px;

    color:#666;

}

/* SECTION */

.my-pets{

    margin-top:50px;

}

.section-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

}

.section-title h2{

    font-size:34px;

}

.section-title a{

    text-decoration:none;

    background:#ff8a00;

    color:white;

    padding:12px 20px;

    border-radius:12px;

    font-weight:700;

}

.section-title a:hover{

    background:#e97700;

}

/* GRID */

.pets-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fill,minmax(280px,1fr));

    gap:25px;

}

/* CARD */

.pet-card{

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

    transition:.3s;

}

.pet-card:hover{

    transform:translateY(-6px);

}

.pet-card img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.pet-content{

    padding:20px;

}

.pet-content h3{

    margin-bottom:10px;

}

.pet-content p{

    color:#666;

    margin-bottom:6px;

}

.pet-actions{

    display:flex;

    gap:10px;

    margin-top:18px;

}

.pet-actions button{

    flex:1;

    border:none;

    padding:12px;

    border-radius:10px;

    cursor:pointer;

    font-weight:700;

}

.edit-btn{

    background:#ffb100;

}

.view-btn{

    background:#00a8ff;

    color:white;

}

.delete-btn{

    background:#ff4d4f;

    color:white;

}

/* RESPONSIVE */

@media(max-width:900px){

.dashboard{

grid-template-columns:repeat(2,1fr);

}

.profile-header{

flex-direction:column;

text-align:center;

}

}

@media(max-width:600px){

.dashboard{

grid-template-columns:1fr;

}

.header{

flex-direction:column;

height:auto;

padding:20px;

gap:15px;

}

nav{

flex-wrap:wrap;

justify-content:center;

}

}

/* ==========================================
   PET ACTION BUTTONS
========================================== */

.pet-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.pet-actions a,
.pet-actions button {

    flex: 1;

    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 12px;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;

    text-decoration: none;
    cursor: pointer;

    transition: all .25s ease;
}

.edit-btn {

    background: #f59e0b;
    color: #ffffff;
}

.edit-btn:hover {

    background: #d97706;
    transform: translateY(-2px);
}

.view-btn {

    background: #2563eb;
    color: #ffffff;
}

.view-btn:hover {

    background: #1d4ed8;
    transform: translateY(-2px);
}

.delete-btn {

    background: #ef4444;
    color: #ffffff;
}

.delete-btn:hover {

    background: #dc2626;
    transform: translateY(-2px);
}

/* ==========================================
   PROFILE & PRIVACY SETTINGS
========================================== */

.profile-settings {
    margin-top: 35px;
    padding: 32px;
    background: #fff;
    border: 1px solid #f1e6d8;
    border-radius: 22px;
    box-shadow: 0 15px 45px rgba(35, 27, 16, .07);
}

.profile-settings__heading { margin-bottom: 26px; }
.profile-settings__heading p { margin-top: 6px; color: #687386; }
.profile-settings__eyebrow { color: #e97700; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.profile-settings__shield { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; background: #fff3dc; font-size: 1.5rem; }
.profile-settings__form { display: grid; gap: 24px; }
.profile-settings__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.profile-settings__fields label { display: grid; gap: 8px; font-weight: 700; }
.profile-settings__fields textarea { grid-column: 1 / -1; resize: vertical; }
.profile-settings__fields input,
.profile-settings__fields textarea,
.privacy-control select { width: 100%; border: 1px solid #dce3ec; border-radius: 13px; padding: 13px 14px; color: #15223a; background: #fbfcfe; font: inherit; }
.profile-settings__fields label:nth-child(2) { grid-column: 1 / -1; }
.profile-settings__privacy { display: grid; gap: 12px; }
.privacy-control { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 18px; border: 1px solid #edf0f4; border-radius: 15px; background: #fcfcfd; }
.privacy-control span { display: grid; gap: 4px; }
.privacy-control small { color: #778195; font-weight: 400; }
.privacy-control input[type="checkbox"] { width: 22px; height: 22px; accent-color: #ff8a00; }
.privacy-control select { width: min(190px, 100%); }
.profile-settings__footer { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 18px; }
.profile-settings__footer p { color: #687386; font-weight: 600; }
.profile-settings__footer p[data-state="success"] { color: #15803d; }
.profile-settings__footer p[data-state="error"] { color: #c2410c; }
.profile-settings__footer button { border: 0; border-radius: 13px; padding: 13px 22px; background: linear-gradient(135deg, #ffac00, #ff7a00); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.profile-settings__footer button:disabled { cursor: wait; opacity: .65; }
.blocked-members { padding-top: 22px; border-top: 1px solid #edf0f4; }
.blocked-members h3 { margin: 0 0 5px; color: #172033; }
.blocked-members > p, .blocked-members__empty { color: #778195; }
#blockedMembersList { display: grid; gap: 10px; margin-top: 14px; }
.blocked-member { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; }
.blocked-member button { border: 1px solid #fed7aa; border-radius: 10px; padding: 8px 12px; background: #fff7ed; color: #c2410c; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 700px) {
    .profile-settings { padding: 22px; }
    .profile-settings__fields { grid-template-columns: 1fr; }
    .profile-settings__fields label:nth-child(2) { grid-column: auto; }
    .privacy-control, .profile-settings__footer { align-items: flex-start; flex-direction: column; }
    .privacy-control select, .profile-settings__footer button { width: 100%; }
}

/* ==========================================
   MY PETS — FINAL ACTION LAYOUT
========================================== */

.pet-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:18px;
    width:100%;
}

.pet-actions .pet-action{
    width:100%;
    min-width:0;
    min-height:50px;
    padding:11px 13px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:1px solid transparent;
    border-radius:13px;
    font-family:inherit;
    font-size:.94rem;
    font-weight:800;
    line-height:1.15;
    text-align:center;
    text-decoration:none;
    cursor:pointer;
    transition:transform .2s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease;
}

.pet-actions .pet-action:hover{
    transform:translateY(-2px);
}

.pet-action--edit{
    background:#f59e0b;
    color:#fff;
}

.pet-action--view{
    background:#2563eb;
    color:#fff;
}

/* Lost is the strongest action and owns its full row. */
.pet-actions .pet-action--sos{
    grid-column:1 / -1;
    min-height:56px;
    background:linear-gradient(135deg,#e11d48,#fb3d5d);
    color:#fff;
    border-color:#e11d48;
    box-shadow:0 10px 22px rgba(225,29,72,.22);
}

.pet-actions .pet-action--sos:hover{
    box-shadow:0 13px 27px rgba(225,29,72,.30);
}

/* Active Lost case: positive green recovery action. */
.pet-actions .pet-action--found{
    grid-column:1 / -1;
    min-height:54px;
    background:linear-gradient(135deg,#059669,#10b981);
    color:#fff;
    box-shadow:0 9px 20px rgba(5,150,105,.18);
}

/* Favorite is now descriptive and uses the full row. */
.pet-actions .pet-action--favorite{
    grid-column:1 / -1;
    background:#fffbeb;
    color:#92400e;
    border-color:#fcd34d;
}

.pet-actions .pet-action--favorite:hover{
    background:#fef3c7;
}

/* Delete remains obvious but visually quieter than SOS. */
.pet-actions .pet-action--delete{
    grid-column:1 / -1;
    background:#fff;
    color:#b91c1c;
    border-color:#fecaca;
}

.pet-actions .pet-action--delete:hover{
    background:#fef2f2;
    border-color:#fca5a5;
}

@media(max-width:420px){
    .pet-actions{
        grid-template-columns:1fr;
    }

    .pet-actions .pet-action{
        grid-column:1;
    }
}
