
/* ========================================
   PURRFECT CAT CAFÉ - OUR CATS PAGE
======================================== */


/* MAIN PAGE */

.cats-page {
    background: #FFF8F1;
    min-height: 100vh;
    padding: 45px 24px 75px;
    font-family: 'Poppins', sans-serif;
    color: #48240F;
}


/* ========================================
   PAGE HEADING
======================================== */

.cats-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 35px;
}

.cats-badge {
    display: inline-block;
    background: #F2EAE3;
    color: #79533B;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 11px;
    margin-bottom: 14px;
}

.cats-badge i {
    margin-right: 5px;
}

.cats-heading h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #5A2C12;
}

.cats-heading p {
    font-size: 13px;
    color: #8A6653;
    line-height: 1.8;
    max-width: 580px;
    margin: 0 auto 25px;
}


/* ========================================
   FILTER BUTTONS
======================================== */

.cat-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
}

.filter-btn {
    border: none;
    background: #F1E8DF;
    color: #74513D;
    padding: 9px 17px;
    border-radius: 25px;
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-btn:hover {
    background: #E8D5C4;
}

.filter-btn.active {
    background: #603216;
    color: white;
}


/* ========================================
   CAT GRID
======================================== */

.cats-grid {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* ========================================
   CAT CARD
======================================== */

.cat-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 5px 20px rgba(80, 45, 20, 0.04);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(80, 45, 20, 0.10);
}


/* ========================================
   CAT IMAGE
======================================== */

.cat-image {
    position: relative;
    height: 240px;
    border-radius: 13px;
    overflow: hidden;
    background: #F2EAE3;
}

.cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-age {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FFF8F0;
    color: #74513D;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.cat-breed {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(75, 45, 25, 0.78);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 10px;
}


/* ========================================
   CAT CONTENT
======================================== */

.cat-content {
    padding: 15px 2px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}


/* CAT NAME */

.cat-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cat-title h2 {
    font-size: 19px;
    font-weight: 600;
    color: #4A250F;
}

.cat-title span {
    font-size: 9px;
    letter-spacing: 0.7px;
    color: #A67450;
    text-align: right;
}


/* ========================================
   PERSONALITY TAGS
======================================== */

.cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.cat-tags span {
    font-size: 10px;
    padding: 5px 9px;
    border-radius: 20px;
    background: #FBE5DA;
    color: #A45F41;
}

.cat-tags span:nth-child(2) {
    background: #FCE8DE;
}

.cat-tags span:nth-child(3) {
    background: #E7F1DF;
    color: #6A8253;
}


/* ========================================
   CAT DESCRIPTION
======================================== */

.cat-description {
    font-size: 11px;
    line-height: 1.8;
    color: #846B5B;
    margin-bottom: 20px;
    flex: 1;
}


/* ========================================
   CAT CARD BOTTOM
======================================== */

.cat-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #F2E8DF;
    padding-top: 13px;
}

.cat-bottom span {
    font-size: 10px;
    color: #875A3C;
}

.cat-bottom span i {
    margin-right: 4px;
}

.cat-bottom a {
    background: #F6EEE5;
    color: #714225;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 25px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.cat-bottom a:hover {
    background: #E8D5C4;
}


/* ========================================
   LOADING / EMPTY / ERROR MESSAGE
======================================== */

.no-cats {
    text-align: center;
    padding: 30px;
    color: #846B5B;
    font-size: 14px;
}

.no-cats[hidden] {
    display: none;
}


/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* TABLET */

@media (max-width: 950px) {

    .cats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* MOBILE */

@media (max-width: 650px) {

    .cats-page {
        padding: 30px 15px 55px;
    }

    .cats-heading h1 {
        font-size: 30px;
    }

    .cats-heading p {
        font-size: 12px;
    }

    .cats-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cat-image {
        height: 260px;
    }

    .filter-btn {
        font-size: 10px;
        padding: 8px 12px;
    }

    .cat-bottom {
        flex-wrap: wrap;
    }

}

/* MY RESCUED CATS */

.my-cats-section {
    max-width: 1250px;
    margin: 0 auto 45px;
}

.my-cats-section[hidden],
.cat-form[hidden] {
    display: none;
}

.my-cats-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.my-cats-heading h2 {
    font-size: 24px;
    color: #5A2C12;
}

.add-cat-btn,
.cat-form-actions button,
.my-cat-actions button {
    border: none;
    background: #603216;
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
}

.cat-form {
    background: white;
    padding: 24px;
    border-radius: 18px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(80, 45, 20, 0.06);
}

.cat-form h3 {
    margin-bottom: 15px;
}

.cat-form label {
    display: block;
    margin: 12px 0 5px;
    font-size: 13px;
    font-weight: 600;
}

.cat-form input {
    width: 100%;
    padding: 11px;
    border: 1px solid #DCC9B8;
    border-radius: 8px;
    font-family: inherit;
}

.cat-form-actions,
.my-cat-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

#cancelCatBtn {
    background: #E8D5C4;
    color: #603216;
}

.my-cat-actions button {
    font-size: 12px;
}

.my-cat-actions .delete-cat-btn {
    background: #A94442;
}

.cat-form-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#catFormMessage {
    margin-top: 12px;
    font-size: 13px;
}

@media (max-width: 650px) {
    .my-cats-heading {
        flex-direction: column;
        align-items: flex-start;
    }
}
