/* Marketplace Search Styles */

/* Font family for descriptions and paragraphs */
p, .description, [class*="description"] {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: rgb(55 65 81);
    font-size: 0.9375rem;
}

/* Line clamp utilities for truncating text */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card {
    background-color: white;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.badge-success {
    background-color: rgb(220 252 231);
    color: rgb(22 101 52);
    border-color: rgb(187 247 208);
}

.badge-warning {
    background-color: rgb(254 249 195);
    color: rgb(133 77 14);
    border-color: rgb(254 240 138);
}

.badge-primary {
    background-color: rgb(219 234 254);
    color: rgb(30 64 175);
    border-color: rgb(147 197 253);
}

.badge-danger {
    background-color: rgb(254 226 226);
    color: rgb(127 29 29);
    border-color: rgb(252 165 165);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: rgb(59 130 246);
    color: white;
    height: 3rem;
    padding: 0 1rem;
}

.btn-primary:hover {
    background-color: rgb(37 99 235);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: rgb(55 65 81);
    border-color: rgb(209 213 219);
    height: 2.5rem;
    padding: 0 1rem;
}

.btn-secondary:hover {
    background-color: rgb(249 250 251);
    color: rgb(55 65 81);
}

.btn-outline {
    background-color: white;
    color: rgb(37 99 235);
    border-color: rgb(37 99 235);
    height: 2rem;
    padding: 0 0.75rem;
    font-size: 0.8125rem;
}

.btn-outline:hover {
    background-color: rgb(239 246 255);
    color: rgb(29 78 216);
}

.form-input {
    display: block;
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid rgb(209 213 219);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    background-color: white;
    height: 3rem;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: rgb(59 130 246);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.form-select {
    display: block;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid rgb(209 213 219);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    transition: all 0.15s ease;
}

.form-select:focus {
    outline: none;
    border-color: rgb(59 130 246);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.25rem;
}

.pagination li {
    display: block;
}

.pagination a, .pagination span {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid rgb(209 213 219);
    background-color: white;
    color: rgb(55 65 81);
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.pagination a:hover {
    background-color: rgb(249 250 251);
    border-color: rgb(156 163 175);
}

.pagination .active span {
    background-color: rgb(59 130 246);
    color: white;
    border-color: rgb(59 130 246);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid rgb(229 231 235);
    border-top: 2px solid rgb(59 130 246);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Lazy loading styles */
.lazy-load {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.lazy-loaded {
    opacity: 1;
}
