/* Remove underline from pet card links */
.pet-card a {
    text-decoration: none;
    color: inherit;
}

.pet-card a:hover {
    text-decoration: none;
    color: inherit;
}
/* ===================== PETS SECTION ===================== */
/* ===================== PETS SECTION ===================== */
.pets-section {
    position: relative;
    z-index: 100; /* above background & main content */
    padding: 120px 20px 100px 20px; /* increased top padding to go below top bar */
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}


/* Search bar */
.pets-section #searchBar {
    width: 50%;
    max-width: 400px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    margin-bottom: 30px;
    background-color: rgba(15, 15, 18, 0.8);
    color: white;
    font-size: 16px;
}

.pets-section #searchBar::placeholder {
    color: rgba(255,255,255,0.6);
}

/* Grid layout */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
    overflow: visible;
}

/* Pet cards */
.pet-card {
    background: #18181c;
    border-radius: 28px 28px 32px 32px;
    overflow: visible;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    padding: 20px 16px 18px 16px;
    box-shadow: 0 6px 26px rgba(0,0,0,0.6);
    border: 2.5px solid #2a2a33;
    transition: transform .16s, box-shadow .16s;
    height: 340px;
    min-height: 340px;
    max-height: 340px;
    box-sizing: border-box;
    position: relative;
    will-change: transform;
    transform-origin: center;
}

.pet-card:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 24px rgba(0,0,0,0.65);
}

/* Pet image */
.pet-image {
    width: 100%;
    height: 120px;
    min-height: 100px;
    max-height: 140px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 18px 18px 12px 12px;
    margin-bottom: 8px;
    border-bottom: 2px solid #23232b;
    background-color: #23232b;
    box-sizing: border-box;
}

/* Text styling */
.pet-card h3 {
    margin: 4px 0 4px 0;
    font-size: 0.95em;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pet-card p {
    margin: 2px 0 2px 0;
    font-size: 0.93em;
    color: #d6d6e0;
    text-align: left;
}
/* Demand left, bold, blue */
.pet-card p.pet-demand {
    font-weight: bold;
        color: #fff;
        text-align: left;
        margin-bottom: 4px;
}

/* Last updated left, smaller */
.pet-card p.pet-updated {
    text-align: left;
    font-size: 0.85em;
        bottom: 48px;
        margin-bottom: 24px;
}

.values-btn {
    padding: 5px 0;
    margin: 0 auto;
    width: 80%;
    border: none;
    background: linear-gradient(90deg, #2176ff 0%, #4b9cff 100%);
    color: #fff;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 900;
    font-size: 1em;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px 0 #4b9cff33, 0 2px 8px rgba(75,156,255,0.18);
    text-shadow: 0 1px 8px #2176ff44;
    transition: transform .12s, background .12s, color .12s, box-shadow .12s;
    position: static;
    transform: none;
    margin-bottom: 16px;
    outline: 2px solid #4b9cff;
    outline-offset: 2px;
}

.values-btn:hover {
    transform: translate(-0%, -1px) scale(1.07);
    background: linear-gradient(90deg, #4b9cff 0%, #2176ff 100%);
    color: #fff;
    outline: 2.5px solid #2176ff;
}

/* Number badge */
.pet-number {
        margin: 0 auto;
        padding: 8px 0;
        border: 2px solid #6b00f7;
        border-radius: 16px;
        font-weight: 700;
        background-color: #18181c;
        font-size: 1.1em;
        letter-spacing: 1px;
        box-shadow: 0 2px 8px rgba(107,0,247,0.08);
        text-align: center;
        width: 80%;
        position: static;
        transform: none;
}

/* ===================== RESPONSIVE ===================== */


@media (max-width: 768px) {
    .pets-grid { grid-template-columns: repeat(2, 3fr); }
    .pets-section #searchBar { width: 70%; }
}

@media (max-width: 480px) {
        .pet-card p.pet-updated {
            margin-bottom: 40px !important;
        }
    .pets-grid {
        grid-template-columns: repeat(2, 1fr); /* Always 2 per row */
        gap: 14px 8px;
    }
    .pets-section #searchBar { width: 90%; }

    .pet-card {
        width: 98%;
        max-width: 180px;
        min-width: 0;
        margin: 0 auto;
        padding: 8px 6px 12px 6px;
        height: auto;
        min-height: 0;
        max-height: none;
        box-sizing: border-box;
    }
         
    .pet-image {
        height: 90px;
        min-height: 90px;
        max-height: 100px;
        border-radius: 12px;
        background-size: contain;
        background-position: center;
    }

    .pet-card h3 {
        font-size: 1em;           /* smaller text */
        margin: 1px 0 2px 0;
    }

    .pet-card p {
        margin: 1px 0 1px 0;
    .values-btn {
        padding: 4px 8px;
        font-size: 0.8em;
    }

    .pet-number {
        padding: 4px 8px;
        font-size: 0.8em;
    }
}


    .values-btn {
        padding: 4px 8px;
        font-size: 0.8em;
    }

    .pet-number {
        padding: 4px 8px;
        font-size: 0.8em;
    }
}