﻿/* Hover Effects */
.hover-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .hover-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
    }

/* Backdrop blur for badges */
@supports (backdrop-filter: blur(8px)) {
    .badge {
        backdrop-filter: blur(8px);
    }
}

/* Ensure buttons are clickable over stretched link */
.card-body .btn {
    position: relative;
    z-index: 2;
}

.results-header {
    background: linear-gradient(180deg, #fafcff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e5e7eb;
}

.results-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.results-header-kicker {
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.results-header-title {
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    font-weight: 700;
    line-height: 1.2;
}

.results-header-subtitle {
    color: #64748b;
    font-size: 0.9rem;
}

.search-result-card {
    border-radius: 18px;
    overflow: hidden;
}

.search-match-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.search-match-reason {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.72rem;
    font-weight: 600;
}

.search-card-name {
    font-size: 1rem;
}

.search-verified-badge {
    width: 1.15rem;
    height: 1.15rem;
    min-width: 1.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, #2aa7ff 0%, #0a7cff 100%);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(10, 124, 255, 0.28), 0 0 0 1px rgba(10, 124, 255, 0.16);
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.search-verified-badge i {
    font-size: 0.58rem;
}

.search-card-role {
    color: #64748b;
}

.search-rating-row {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eef2f7;
}

.search-confidence-grid {
    display: grid;
    gap: 0.55rem;
}

.search-confidence-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.5;
}

.search-confidence-item strong {
    color: #0f172a;
    font-weight: 600;
}

.search-price-block {
    margin-top: 0.25rem;
}

.search-card-actions .btn {
    min-height: 44px;
}

.search-empty-state .card-body {
    text-align: center;
}

.search-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.search-empty-related-title {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.search-empty-related-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.search-empty-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #dbe4f0;
    background: #f8fbff;
    color: #334155;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

.search-empty-chip:hover {
    color: #1d4ed8;
    border-color: #bfdbfe;
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .card-img-top {
        height: 280px !important;
    }

    .card-body {
        padding: 1.25rem !important;
    }

    /* Larger touch targets */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .results-header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .search-result-card .card-body {
        padding: 1rem !important;
    }

    .search-empty-actions,
    .search-empty-related-list {
        flex-direction: column;
    }
}

/* Tablet adjustments */
@media (min-width: 577px) and (max-width: 991px) {
    .card-img-top {
        height: 220px !important;
    }
}
