/* ==========================================================
   MeasureX – Friends
   File: friends.css
   Style: glass / gradient (same vibe as stations)
========================================================== */

*{ box-sizing: border-box; }

.friends-page{
    min-height: calc(100vh - 80px);
    padding: 28px 18px 60px;
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    color: #fff;
    background:
            radial-gradient(1200px 700px at 15% 0%, rgba(45,42,122,.55) 0%, transparent 55%),
            radial-gradient(900px 600px at 85% 10%, rgba(22,1,87,.55) 0%, transparent 55%),
            linear-gradient(180deg, #070014 0%, #0f023f 55%, #070014 100%);
}

/* ---------- HERO ---------- */
.friends-hero{
    max-width: 1100px;
    margin: 0 auto 14px;
    padding: 10px 2px;
}
.friends-hero h1{
    margin: 0 0 6px;
    font-size: clamp(26px, 3.4vw, 40px);
}
.friends-hero p{
    margin: 0;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
}

/* ---------- CARD ---------- */
.card{
    max-width: 1100px;
    margin: 12px auto;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.card h2{
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 900;
}

/* ---------- ALERT ---------- */
.alert{
    max-width: 1100px;
    margin: 12px auto;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
}
.alert.success{
    border-color: rgba(120,255,170,0.25);
}
.alert.danger{
    border-color: rgba(255,120,140,0.25);
    background: rgba(253,236,239,0.10);
}

.hint{
    margin: 10px 0 0;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
}

.empty{
    color: rgba(255,255,255,0.78);
    margin: 6px 0 0;
}

/* ---------- LIST LAYOUT ---------- */
.list{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.left{
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.title{
    font-weight: 900;
    letter-spacing: .2px;
    color: rgba(255,255,255,0.95);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sub{
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.right{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ---------- INLINE FORMS ---------- */
.inline{
    display: inline-flex;
    margin: 0;
}

/* ---------- BUTTONS ---------- */
.btn{
    padding: 10px 14px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;

    font-weight: 900;
    color: #fff;
    background: linear-gradient(90deg, #0f023f, #160157);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);

    transition: transform .08s ease, filter .2s ease;
}
.btn:hover{ filter: brightness(1.06); }
.btn:active{ transform: translateY(1px); }

.btn.danger{
    background: linear-gradient(90deg, #5a0015, #8a0020);
}
.btn.danger:hover{ filter: brightness(1.07); }

/* ---------- BADGES ---------- */
.badge{
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.88);
}

.badge.ok{
    background: rgba(120,255,170,0.12);
    border-color: rgba(120,255,170,0.25);
}

.badge.warn{
    background: rgba(255,230,120,0.12);
    border-color: rgba(255,230,120,0.25);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px){
    .row{
        flex-direction: column;
        align-items: stretch;
    }
    .right{
        justify-content: flex-start;
    }
    .btn{
        width: 100%;
    }
}
