:root {
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

.card-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Shared form field style used across sell / manage / filter forms */
.field {
    margin-top: 0.5rem;
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.9rem;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field:hover {
    border-color: #cbd5e1;
}

.field:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 9999px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background-image: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(249, 115, 22, 0.55);
}

.btn-primary:hover {
    box-shadow: 0 10px 24px -6px rgba(249, 115, 22, 0.7);
}

.btn-secondary {
    border: 1px solid #cbd5e1;
    color: #334155;
    background: #fff;
}

.btn-secondary:hover {
    border-color: #f97316;
    color: #f97316;
}

.btn-danger {
    border: 1px solid #fecaca;
    color: #dc2626;
    background: #fff;
}

.btn-danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

/* Spec chips / status badges */
.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #334155;
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 500;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-available {
    background: #dcfce7;
    color: #15803d;
}

.badge-sold {
    background: #fee2e2;
    color: #b91c1c;
}

/* Listing card */
.listing-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -22px rgba(15, 23, 42, 0.35);
    border-color: #fed7aa;
}

.loading-skeleton {
    animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.4;
    }
}

@media print {

    header,
    footer,
    #sellForm {
        display: none !important;
    }

    #submissionMessage {
        display: block !important;
    }
}
