
:root {
    --pink: #f27b91;
    --pink-dark: #df5e7a;
    --cream: #fff8f5;
    --lavender: #f2efff;
    --text: #302b38;
    --muted: #898391;
    --border: #eee8eb;
    --white: #ffffff;
    --shadow: 0 8px 30px rgba(48, 43, 56, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, textarea, select {
    font: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.topbar {
    height: 72px;
    padding: 0 6%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    color: var(--text);
    text-decoration: none;
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -1px;
}

.brand span {
    color: var(--pink);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar select {
    max-width: 190px;
}

.layout {
    max-width: 1200px;
    margin: 35px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 35px;
}

.sidebar {
    position: sticky;
    top: 105px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.nav-button {
    border: 0;
    background: transparent;
    text-align: left;
    padding: 15px;
    border-radius: 13px;
    color: var(--text);
    font-weight: 650;
    display: flex;
    align-items: center;
    gap: 13px;
}

.nav-button:hover,
.nav-button.active {
    background: #ffe8ed;
    color: var(--pink-dark);
}

.sidebar-note {
    margin-top: 35px;
    padding: 20px;
    border-radius: 18px;
    background: var(--lavender);
    color: #665c8c;
    line-height: 1.5;
    font-size: 13px;
}

.sidebar-note span {
    font-size: 24px;
}

.content {
    min-width: 0;
}

.view {
    width: 100%;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

h2 {
    margin: 0 0 6px;
    font-size: 27px;
    letter-spacing: -0.8px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 680px;
}

.post-card,
.panel,
.auth-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.post-card {
    overflow: hidden;
}

.post-header {
    padding: 16px 19px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--lavender);
    display: grid;
    place-items: center;
    font-size: 22px;
    flex-shrink: 0;
}

.pet-name {
    font-weight: 750;
}

.post-subtitle,
.post-date {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.post-image {
    width: 100%;
    max-height: 650px;
    object-fit: cover;
    display: block;
    background: var(--lavender);
}

.post-actions {
    padding: 13px 18px 5px;
    display: flex;
    gap: 16px;
}

.action-button {
    background: none;
    border: 0;
    padding: 5px 0;
    font-size: 17px;
    color: var(--text);
}

.action-button.liked {
    color: var(--pink-dark);
}

.post-caption {
    padding: 5px 19px 15px;
    line-height: 1.5;
}

.post-caption strong {
    margin-right: 7px;
}

.comments {
    padding: 0 19px 17px;
    font-size: 13px;
}

.comment {
    margin: 7px 0;
    line-height: 1.4;
}

.comment-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.comment-form input {
    flex: 1;
    min-width: 0;
}

.comment-form button {
    border: 0;
    background: transparent;
    color: var(--pink-dark);
    font-weight: 700;
}

.panel {
    padding: 23px;
    margin-bottom: 25px;
}

.panel h3 {
    margin: 0 0 20px;
}

label {
    display: block;
    margin: 13px 0 7px;
    font-size: 13px;
    font-weight: 700;
}

input, textarea, select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 13px;
    background: #fff;
    color: var(--text);
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(242, 123, 145, 0.12);
}

textarea {
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 15px;
    margin-bottom: 18px;
}

.primary-button {
    border: 0;
    border-radius: 11px;
    background: var(--pink);
    color: white;
    padding: 12px 19px;
    font-weight: 750;
    margin-top: 16px;
}

.primary-button:hover {
    background: var(--pink-dark);
}

.outline-button {
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 650;
}

.search-input {
    margin-bottom: 20px;
}

.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 17px;
}

.pet-card {
    padding: 19px;
    border-radius: 17px;
    border: 1px solid var(--border);
    background: white;
    box-shadow: var(--shadow);
}

.pet-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pet-card .avatar {
    width: 55px;
    height: 55px;
}

.pet-card h3 {
    margin: 0 0 4px;
}

.pet-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.pet-card button {
    margin-top: 8px;
}

.message {
    color: var(--pink-dark);
    font-size: 13px;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
    background: white;
    border: 1px dashed var(--border);
    border-radius: 16px;
}

.auth-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 18px;
    background:
            radial-gradient(circle at 15% 20%, #ffe1e8, transparent 32%),
            radial-gradient(circle at 85% 80%, #e8e2ff, transparent 35%),
            var(--cream);
}

.auth-brand {
    text-align: center;
    margin-bottom: 25px;
}

.brand-icon {
    font-size: 44px;
}

.auth-brand h1 {
    font-size: 38px;
    margin: 5px 0;
    letter-spacing: -1.5px;
}

.auth-brand p {
    color: var(--muted);
}

.auth-card {
    padding: 27px;
    width: 100%;
    max-width: 410px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--cream);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}

.auth-tabs button {
    padding: 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-weight: 700;
    color: var(--muted);
}

.auth-tabs button.active {
    background: white;
    color: var(--pink-dark);
    box-shadow: var(--shadow);
}

.full-width {
    width: 100%;
}

.auth-footnote {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 20px;
}

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 30;
}

.toast.show {
    opacity: 1;
}

@media (max-width: 760px) {
    .layout {
        display: block;
        margin-top: 20px;
        padding: 0 14px 90px;
    }

    .sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 20;
        background: white;
        border-top: 1px solid var(--border);
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
        padding: 7px 4px;
    }

    .nav-button {
        padding: 11px 9px;
        justify-content: center;
        font-size: 20px;
    }

    .nav-button span {
        display: none;
    }

    .sidebar-note {
        display: none;
    }

    .topbar {
        padding: 0 14px;
    }

    .brand {
        font-size: 21px;
    }

    .topbar select {
        max-width: 130px;
        font-size: 12px;
    }

    .outline-button {
        padding: 9px;
        font-size: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 23px;
    }
}
