/* =========================================================
   CUPCAKE CONNECT — WW MOBILE MATCHES
   Clean mobile-first layout
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(255, 67, 158, 0.22),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 30%,
            rgba(119, 75, 255, 0.20),
            transparent 34%
        ),
        linear-gradient(
            160deg,
            #150817 0%,
            #27102e 50%,
            #11152c 100%
        );

    overflow-x: hidden;
}


/* =========================================================
   NAVBAR
========================================================= */

#navbar {
    width: 100%;
    max-width: 100vw;
}

.navbar {
    width: 100%;
    max-width: 100vw;

    margin: 0;

    padding:
        calc(8px + env(safe-area-inset-top))
        8px
        9px;

    background:
        linear-gradient(
            135deg,
            #35102d,
            #551342 55%,
            #34113d
        );

    border-bottom:
        1px solid
        rgba(255, 157, 207, 0.25);

    overflow: hidden;
}

.navbar .logo {
    width: 100%;

    margin: 0 0 8px;

    text-align: center;

    color: #ffffff;

    font-size: 17px;
    font-weight: 750;

    white-space: nowrap;
}

.navbar .nav-links {
    width: 100%;

    display: grid;

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

    gap: 6px;

    margin: 0;
    padding: 0;
}

.navbar .nav-links a,
.navbar .nav-links button {
    width: 100%;
    min-width: 0;
    min-height: 44px;

    margin: 0;
    padding: 5px 2px;

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

    gap: 2px;

    border:
        1px solid
        rgba(255, 191, 224, 0.18);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.075);

    color: #ffffff;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    touch-action: manipulation;
}

.navbar .nav-badge {
    display: inline-flex;

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

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

    border-radius: 9px;

    background: #ff3f8e;

    color: #ffffff;

    font-size: 10px;
    font-weight: 800;
}

.navbar #logoutBtn {
    background:
        rgba(255, 65, 135, 0.13);

    border-color:
        rgba(255, 130, 178, 0.35);
}


/* =========================================================
   MATCH PARK
========================================================= */

main {
    width: 100%;
}

.match-park {
    width: 100%;
    max-width: 460px;

    margin: 0 auto;

    padding:
        24px
        14px
        80px;

    text-align: center;
}

.match-park > h2 {
    margin: 0;

    font-size: 30px;
    line-height: 1.15;

    color: #ffffff;
}

.match-park > p {
    max-width: 350px;

    margin:
        9px
        auto
        22px;

    color: #e6d1e2;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   MATCH LIST
========================================================= */

.matches-list {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr;

    gap: 18px;
}

.matches-list > h2 {
    width: 100%;

    margin: 10px auto;

    padding: 22px 15px;

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    color: #f5e8f2;

    font-size: 18px;
}


/* =========================================================
   MATCH CARD
========================================================= */

.profile-card {
    width: 100%;

    margin: 0;

    padding:
        20px
        17px;

    text-align: center;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(84, 38, 79, 0.82),
            rgba(30, 21, 52, 0.92)
        );

    border:
        1px solid
        rgba(255, 190, 223, 0.25);

    box-shadow:
        0 15px 36px
        rgba(0, 0, 0, 0.28);
}


/* =========================================================
   PROFILE PHOTO
========================================================= */

.profile-card .profile-photo {
    display: block;

    width: 132px;
    height: 132px;

    max-width: 132px;
    max-height: 132px;

    margin:
        0
        auto
        14px;

    object-fit: cover;

    border-radius: 50%;

    border:
        4px solid
        #ff67ad;

    box-shadow:
        0 0 20px
        rgba(255, 74, 165, 0.30);
}


/* =========================================================
   MATCH DETAILS
========================================================= */

.profile-card h2 {
    margin:
        0
        0
        13px;

    color: #ffffff;

    font-size: 22px;
    line-height: 1.25;

    overflow-wrap: anywhere;
}

/* WW MATCH PARK — READABLE MOBILE DETAILS */

.profile-card p {
    margin: 7px 0;

    color: #eadce8;

    font-size: 16px;
    line-height: 1.5;

    overflow-wrap: break-word;
}
.profile-card p strong {
    color: #ffffff;
}


/* =========================================================
   CHAT / UNMATCH BUTTONS
========================================================= */

.chatBtn,
.unmatchBtn {
    width: 100%;
    min-height: 48px;

    margin-top: 11px;

    padding:
        10px
        14px;

    border-radius: 14px;

    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 750;

    cursor: pointer;

    touch-action: manipulation;

    -webkit-tap-highlight-color: transparent;
}

.chatBtn {
    border: 0;

    background:
        linear-gradient(
            135deg,
            #ff4299,
            #e449bd 55%,
            #9c5cff
        );

    box-shadow:
        0 7px 20px
        rgba(235, 63, 166, 0.24);
}

.unmatchBtn {
    border:
        1px solid
        rgba(255, 130, 175, 0.35);

    background:
        rgba(255, 72, 130, 0.11);
}

.chatBtn:active,
.unmatchBtn:active {
    transform: scale(0.985);
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 360px) {

    .match-park {
        padding-left: 10px;
        padding-right: 10px;
    }

    .match-park > h2 {
        font-size: 27px;
    }

    .profile-card {
        padding:
            18px
            16px;
    }

    .profile-card .profile-photo {
        width: 118px;
        height: 118px;

        max-width: 118px;
        max-height: 118px;
    }
}