@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

:root {
    --navbar-height: 72px;
    --bottom-nav-height: 80px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .signupCard,
    .signinCard,
    .profileCard {
        padding: 16px;
    }

    .textInput {
        font-size: 16px; /* prevents iOS zoom bug */
    }

    .buttonAccent,
    .buttonOutline,
    .buttonSecondary {
        font-size: 16px;
        padding: 14px;
    }

    .matchCard {
        height: 70vh;
    }

    .cardStack {
        max-width: 100%;
        height: 70vh;
        padding: 0 16px;
    }

    .matchCircle {
        width: 110px;
        height: 110px;
    }

    .circleTop {
        left: 20px;
    }

    .circleBottom {
        right: 20px;
    }

    .matchVisual {
        height: 200px;
    }

    .navbar {
        grid-template-columns: 40px 1fr 40px;
        padding: 12px 16px;
    }

    .miniTitle {
        font-size: 20px;
    }
}

html, body {
    height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    padding: var(--navbar-height) 0px 0px 0px;
    margin: 0px;
    font-family: "Quicksand", sans-serif;
    color : #181C20;
    overflow-x: hidden;
    background-color: #F3F9FF;
    overflow-anchor: none;
}
.minusNavbar {
    margin-top: -80px;
}

.welcomeCard {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
    background-color: white;
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
}

.fullImage {
    position: relative;
    z-index: 0;
    max-width: 100%;
    object-fit: cover;
}

.laikaTitle {
    font-size: 40px;
    color: #00696B;
    font-weight: 700;
    margin: 0px;
}

.miniTitle {
    font-size: 24px;
    color: #00696B;
    font-weight: 700;
    margin: 0px;
}

p {
    font-size: 18px;
    margin: 0;
}

.buttonAccent {
    font-weight: 500;
    width: 100%;
    font-size: 18px;
    color: white;
    background-color: #00696B;
    text-align: center;
    padding: 18px;
    border-radius: 16px;
    text-decoration: none;
    margin-bottom: 8px;
    border: 0px;
}
.buttonOutline {
    font-weight: 500;
    width: 100%;
    font-size: 18px;
    color: #00696B;
    border: 1px solid #00696B;
    background-color: transparent;
    text-align: center;
    padding: 18px;
    border-radius: 16px;
    text-decoration: none;
}
.buttonSquareOutline {
    font-weight: 500;
    width: 76px;
    height: 56px;
    color: #00696B;
    border: 2px solid #00696B;
    background-color: white;
    text-align: center;
    padding: 1px;
    border-radius: 16px;
    text-decoration: none;
}

.buttonSecondary {
    font-weight: 500;
    border: 0;
    background-color: #F3F9FF;
    text-align: center;
    padding: 18px;
    border-radius: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.textSeparator {
    margin-top: 24px;
    margin-bottom: 24px;
    font-size: 12px;
    text-align: center;
}

.flexHorizontal {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
}

.flexCenter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.textAccent {
    color: #00696B;
}
.textSecondary {
    color: #D24E42;
}
.textTertiary {
    color: #795900;
}
.textNeutral {
    color: #181C20;
}

.navbar {
    width: 100%;
    height: var(--navbar-height);
    box-sizing: border-box;
    
    padding: 20px;
    display: grid;
    grid-template-columns: 44px 1fr 60px;
    align-items: center;
    background-color: #F3F9FF;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;
}
.transparentNavbar {
    width: 100%;
    height: var(--navbar-height);
    box-sizing: border-box;
    
    padding: 20px;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    background-color: transparent;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;
}

.navbar .miniTitle {
    text-align: center;
}

.iconButton {
    background-color: transparent;
    border: 0;
    width: fit-content;
}
.roundIconButton {
    background-color: #F3F9FF;
    padding: 12px;
    width: 48px;
    height: 48px;
    border-radius: 32px;
    border: 0;
}
.iconImage {
    width: 24px;
}
.iconImageAccent {
    filter: brightness(0) saturate(100%) invert(29%) sepia(16%) saturate(1673%) hue-rotate(139deg) brightness(92%) contrast(91%);
}
.iconImageSecondary {
    filter: brightness(0) saturate(100%) invert(36%) sepia(63%) saturate(747%) hue-rotate(321deg) brightness(95%) contrast(91%);
}
.iconImageTertiary {
    filter: brightness(0) saturate(100%) invert(77%) sepia(17%) saturate(1043%) hue-rotate(131deg) brightness(102%) contrast(90%);
}
.iconImageWhite {
    filter: brightness(0) invert(1);
}
.iconImageDark {
    filter: brightness(0) invert(1);
}

.textInput {
    width: 100%;
    background-color: #F3F9FF;
    border: 0px;
    padding: 18px;
    border-radius: 16px;
    margin: 0px;
    font-weight: 400;
    font-size: 14px;
}

.textInput:focus {
    outline: 2px solid #00696B;
}

.signupCard {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 24px;
    align-items: stretch;
}
.signinCard {
    height: 100%;
    width: 80%;
    max-width: 500px;
    background-color: white;
    border-radius: 40px;
    margin: auto auto;
    padding: 24px;
    align-items: center;
}


.logoImage {
    height: 200px;
    object-fit: contain;
    margin-bottom: 16px;
    align-self: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}


.signupSubtitle {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 32px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.formGroup {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.formGroup label {
    font-size: 14px;
    font-weight: 600;
}

.checkboxGroup {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.checkboxGroup input {
    margin-top: 3px;
}

.loginText {
    margin-top: 24px;
    text-align: center;
}

.marginBottom8px {
    margin-bottom: 8px;
}
.marginTop8px {
    margin-top: 8px;
}

.marginBottom16px {
    margin-bottom: 16px;
}

.marginBottom24px {
    margin-bottom: 24px;
}

.marginTop16px {
    margin-top: 16px;
}

.marginTop24px {
    margin-top: 24px;
}

.textCenter {
    text-align: center;
}
.textEnd {
    text-align: end;
}

.width100 {
    width: 100%;
}

.text14px {
    font-size: 14px;
}
.text18px {
    font-size: 18px;
}
.text20px {
    font-size: 20px;
}


/* PAGE WRAPPER */
.profileCard {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 24px;
    padding-bottom: 156px;
}

/* AVATAR */
.avatarWrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid white;
    outline: 3px solid #65E3E6;
    object-fit: cover;
}

/* VERIFIED BADGE */
.verifiedBadge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    background-color: #00696B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* BIO */
.bio {
    text-align: center;
    font-size: 14px;
}

.linkNoUnderscore {
    text-decoration: none;
}

/* STATS */
.statsRow {
    display: flex;
    gap: 12px;
}

.statCard {
    flex: 1;
    background: white;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
}

.statNumber {
    font-size: 22px;
    font-weight: 700;
    color: #00696B;
    margin: 0;
}

.statLabel {
    font-size: 12px;
    margin: 0;
}

/* SECTION HEADER */
.sectionHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* PETS */
.petsScroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-top: 12px;


    scrollbar-width: none;
    -ms-overflow-style: none;
}
.petsScroll::-webkit-scrollbar {
    display: none;
}

.petCard {
    min-width: 140px;
    background: white;
    border-radius: 16px;
    text-align: center;
}

.petImage {
    width: 100%;
    height: 100px;
    border-radius: 16px 16px 0 0;
    object-fit: cover;
}

.petCardInfo {
    padding: 12px 12px;
    text-align: center;
    margin-top: -24px;
}

/* POST CARD */
.postCard {
    background: white;
    border-radius: 16px;
    margin-top: 12px;
}

.postImageWrapper {
    position: relative;
}

.postInfo {
    padding: 16px;
}

.postTag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #00696B;
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 12px;
}

.postImage {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}


/* META */
.postMeta {
    display: flex;
    justify-content: end;
    gap: 24px;
    margin-top: 12px;
}

.metaItem {
    display: flex;
    align-items: center;
    gap: 6px;
}

.smallIcon {
    width: 14px;
}
.smallMiniIcon {
    width: 8px;
}

.invisibleLink {
    background-color: transparent;
    text-decoration: none;
    color: #181C20;
}


/* PAGE */
.animalPage {
    width: 100%;
    margin-top: -80px;
    padding-bottom: 140px;
    background-color: white;
}

/* HERO */
.animalHero {
    width: 100%;
}

.animalHeroImg {
    width: 100%;
    height: 50vh;
    object-fit: cover;
}

/* CARD */
.animalCard {
    position: relative;
    background: white;
    padding: 24px;
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
}

.ownerInfoCard {
    background: #F3F9FF;
}

/* HEADER */
.animalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.animalName {
    font-size: 28px;
    margin: 0;
}

/* SEX TAG */
.sexTag {
    background: #FFB59C;
    padding: 6px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

/* SUB */
.animalSub {
    margin-top: 6px;
    font-size: 14px;
}

/* TAGS */
.tagRow {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.tagSecondary {
    background-color: #E6FCFB;
    color: #00696B;
    fill-opacity: 16%;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* ABOUT GRID */
.aboutGrid {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.miniCard {
    flex: 1;
    background: #F3F9FF;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
}

.miniBig {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

/* SECTION */
.section {
    margin-top: 24px;
}

/* PHOTO GRID */
.photoGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.gridImg {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

/* DARK OVERLAY */
.darkOverlay {
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* FIXED BUTTON */
.primaryFixedButton {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 48px);
    max-width: 500px;
}

/* BOTTOM NAV */
.bottomNav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    text-decoration: none;
    color: inherit;

    display: flex;
    justify-content: space-around;
    padding: 12px 20px;
    border-top: 1px solid #eee;
}


.bottomNav .navItem.active {
    opacity: 1;
    color: #00696B;
    font-weight: 600;
}

.navItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 4px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    opacity: 0.9;
}

.navItem img {
    width: 20px;
}

.bottomNav .navItem.active img {
    filter: brightness(0) saturate(100%) invert(26%) sepia(72%) saturate(622%) hue-rotate(140deg);
}

/* FORM CARDS */

.formSection {
    background: white;
    border-radius: 24px;
    padding: 4px 20px 20px 20px;
    margin-bottom: 16px;
}

/* PHOTO */

.petPhotoUpload {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 24px auto;
}

.petPhotoPreview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;

    border: 4px solid white;
    outline: 3px solid #D24E42;
}
.userPhotoPreview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;

    border: 4px solid white;
    outline: 3px solid #65E3E6;
}

.photoAddButton {
    position: absolute;
    bottom: 6px;
    right: 6px;

    width: 32px;
    height: 32px;

    border: none;
    border-radius: 50%;

    background: #00696B;

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

/* CHOICE TAGS */

.choiceTag {
    border: none;
    background: #F3F9FF;
    color: #181C20;
    border-radius: 999px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
}

.choiceTag.selected {
    background-color: rgba(101, 227, 230, 0.15);
    color: #00696B;
    border: 1px solid #00696B;
}

/* SELECTABLE TAGS */

.tagSelectable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: 0.2s;
    font-size: 13px;
}

.tagSelectable.selected {
    background-color: rgba(101, 227, 230, 0.15);
    color: #00696B;
    border: 1px solid #00696B;
}

/* TEXTAREA */

.textAreaInput {
    min-height: 120px;
    resize: vertical;
    font-size: 14px;
}

/* TOGGLE SWITCH */

.toggleSwitch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
    cursor: pointer;
}

.toggleSwitch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggleSlider {
    position: absolute;
    inset: 0;
    background-color: #DDE8E8;
    border-radius: 32px;
    transition: 0.3s;
}

.toggleSlider::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    left: 4px;
    top: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.toggleSwitch input:checked + .toggleSlider {
    background-color: #00696B;
}

.toggleSwitch input:checked + .toggleSlider::before {
    transform: translateX(24px);
}


/* STATIC NON-EDITABLE FIELD */
.staticField {
    padding: 12px;
    background: #F3F9FF;
    border-radius: 12px;
}

/* LOCATION ROW */
.staticFieldRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* MUTED TEXT */
.textMuted {
    font-size: 12px;
    color: #8A8F98;
}

/* SETTINGS ROW (TOGGLE) */
.settingRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #F3F9FF;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* CLICKABLE ROW */
.clickRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: #F3F9FF;
    margin-bottom: 12px;
}

/* DELETE SECTION */
.deleteSection {
    margin-top: 32px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.deleteButton {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #D24E42;
    font-weight: 600;
    font-size: 14px;
}

.addressSuggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.addressSuggestionItem {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.addressSuggestionItem:hover {
    background: #f5f5f5;
}

.addressSuggestionEmpty {
    font-size: 14px;
    opacity: 0.7;
}


