﻿/* site.css – PawsHome
   All main styles are inline trong _Layout.cshtml.
   File này tồn tại để asp-append-version không bị 404.
   Bạn có thể chuyển toàn bộ CSS từ _Layout vào đây nếu muốn. */

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

a {
    transition: color .2s;
}

body,
button,
input,
select,
textarea,
.btn,
.nav-links a {
    font-family: "Times New Roman", Times, serif !important;
}

.btn-info {
    background: #e7f0ff;
    color: #2563a7;
}

    .btn-info:hover {
        background: #cfe2ff;
    }

.btn-warning {
    background: #fff3d8;
    color: #9a5b00;
}

    .btn-warning:hover {
        background: #ffe3a8;
    }

.actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.table-responsive {
    width: min(1180px, calc(100% - 2rem));
    margin: 2rem auto;
    overflow-x: auto;
    background: #fff;
    border: 1px solid rgba(123, 79, 46, .14);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(30, 18, 8, .08);
}

.pet-table {
    min-width: 760px;
}

    .pet-table .pet-name {
        font-weight: 700;
        color: var(--dark);
    }

.pet-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5ede0;
    display: grid;
    place-items: center;
    font-size: 2rem;
    border: 1px solid rgba(123, 79, 46, .14);
}

    .pet-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    padding: .28rem .72rem;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

    .status-badge::before {
        content: "";
        width: .45rem;
        height: .45rem;
        border-radius: 50%;
        background: currentColor;
    }

.status-available {
    color: #2f7d4c;
    background: #e4f5ea;
}

.status-reserved {
    color: #a05a00;
    background: #fff3d8;
}

.status-sold {
    color: #687386;
    background: #eef1f5;
}

.form-page,
.delete-page,
.detail-page {
    width: min(920px, calc(100% - 2rem));
    margin: 2rem auto;
    background: #fff;
    border: 1px solid rgba(123, 79, 46, .14);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(30, 18, 8, .08);
    padding: 1.5rem;
}

    .form-page h1,
    .delete-page h1,
    .detail-page h1 {
        font-family: 'Playfair Display', serif;
        font-size: clamp(1.4rem, 3vw, 1.9rem);
        margin-bottom: 1.25rem;
    }

.pet-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

    .pet-form-grid .full {
        grid-column: 1 / -1;
    }

.form-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.image-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 1rem;
    align-items: start;
}

.image-preview {
    width: 150px;
    aspect-ratio: 1;
    border-radius: 14px;
    border: 2px dashed var(--sand);
    background: #f5ede0;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
}

    .image-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.detail-card {
    background: #faf8f5;
    border: 1px solid #ede8df;
    border-radius: 14px;
    padding: 1.25rem;
}

.pet-detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    gap: 1.5rem;
    align-items: start;
}

.pet-detail-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: #f5ede0;
    display: grid;
    place-items: center;
    font-size: 4rem;
}

    .pet-detail-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.pet-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin: 1rem 0;
}

.pet-meta-item {
    background: #fff;
    border: 1px solid #ede8df;
    border-radius: 12px;
    padding: .85rem 1rem;
}

.pet-meta-label {
    color: #8a7560;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.pet-meta-value {
    font-weight: 700;
}

.delete-summary {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.delete-warning {
    margin: 1rem 0 0;
    color: #92400e;
    line-height: 1.6;
}

@media (max-width: 720px) {
    .pet-form-grid,
    .image-field,
    .pet-detail-layout,
    .pet-meta-grid {
        grid-template-columns: 1fr;
    }

    .image-preview {
        width: 100%;
        max-height: 220px;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.page-header-inner,
.pets-page,
.categories-page {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.page-header-inner {
    position: relative;
    z-index: 1;
}

    .page-header-inner h1 {
        display: flex;
        align-items: center;
        gap: .8rem;
    }

.pets-page,
.categories-page {
    padding: 2.6rem 0 4.2rem;
}

.pet-filter-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 14px 36px rgba(30, 18, 8, .08);
    margin-bottom: 1.5rem;
}

.pet-filter-form {
    display: flex;
    gap: .5rem;
    min-width: 280px;
    flex: 1;
}

    .pet-filter-form .form-control {
        margin: 0;
    }

.pet-category-pills {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.pet-category-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem .9rem;
    border-radius: 9px;
    background: #eadfce;
    color: var(--dark);
    text-decoration: none;
    font-size: .86rem;
    font-weight: 700;
}

    .pet-category-pill.active,
    .pet-category-pill:hover {
        background: var(--caramel);
        color: #fff;
    }

.pet-result-count {
    color: #9b8c7e;
    margin: 1rem 0 1.2rem;
}

.pets-page .pet-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
}

.pets-page .pet-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 34px rgba(30, 18, 8, .08);
}

    .pets-page .pet-card:hover {
        transform: translateY(-4px);
    }

    .pets-page .pet-card img,
    .pets-page .img-placeholder {
        height: 200px;
    }

.pet-card-tags {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    margin-bottom: .65rem;
}

.pet-card .badge-cat,
.pet-card .badge-danger {
    font-size: .78rem;
    font-weight: 700;
}

.pet-card-subtitle {
    color: #9b8c7e;
    font-size: .88rem;
    margin: .15rem 0 .35rem;
}

.pets-page .pet-card-body .price {
    color: var(--caramel);
    font-size: 1.25rem;
}

.pets-page .pet-card-actions .btn-danger {
    padding-inline: .75rem;
}

.categories-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

    .categories-page-header h2 {
        font-family: 'Playfair Display', serif;
        font-size: 1.7rem;
        line-height: 1.2;
        margin: 0;
    }

.categories-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(30, 18, 8, .08);
}

.categories-table {
    min-width: 720px;
    table-layout: fixed;
}

    .categories-table thead th:first-child {
        border-top-left-radius: 14px;
    }

    .categories-table thead th:last-child {
        border-top-right-radius: 14px;
    }

    .categories-table td,
    .categories-table th {
        padding: 1rem 1.05rem;
        vertical-align: middle;
    }

.category-icon-cell {
    font-size: 1.55rem;
}

.categories-index .page-header {
    min-height: 162px;
    padding: 3.05rem 2rem 2.55rem;
}

.categories-index .page-header-inner,
.categories-index.categories-page {
    width: min(1200px, calc(100% - 2rem));
}

.categories-index .page-header h1 {
    font-family: "Times New Roman", Times, serif !important;
    font-size: 2.55rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.categories-index .page-header p {
    font-size: 1.05rem;
    margin-top: .35rem;
}

.categories-index .categories-page-header .btn {
    min-width: 166px;
    height: 39px;
    justify-content: center;
    border-radius: 9px;
    font-size: .96rem;
}

.categories-index .categories-table-wrap {
    border-radius: 14px;
}

.categories-index .categories-table thead th {
    height: 44px;
    background: #1e1208;
    font-size: .95rem;
    font-weight: 800;
}

.categories-index .categories-table tbody td {
    height: 61px;
    font-size: .98rem;
}

.categories-index .categories-table th:nth-child(1),
.categories-index .categories-table td:nth-child(1) {
    width: 60px;
    padding-left: 1rem;
}

.categories-index .categories-table th:nth-child(2),
.categories-index .categories-table td:nth-child(2) {
    width: 310px;
}

.categories-index .categories-table th:nth-child(3),
.categories-index .categories-table td:nth-child(3) {
    width: 610px;
}

.categories-index .categories-table th:nth-child(4),
.categories-index .categories-table td:nth-child(4) {
    width: 220px;
}

.categories-index .actions .btn {
    height: 31px;
    border-radius: 8px;
    padding: .35rem .82rem;
    font-size: .9rem;
}

.categories-index .actions .btn-danger {
    width: 38px;
    justify-content: center;
    padding-inline: 0;
}

@media (max-width: 760px) {
    .pet-filter-form {
        min-width: 100%;
    }

        .pet-filter-form .btn {
            padding-inline: 1rem;
        }

    .categories-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

        .categories-page-header .btn {
            width: 100%;
            justify-content: center;
        }
}
