/* TenderSpy Custom Styles - Phase 2 Search MVP */

/* Contract card hover */
.contract-card {
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}
.contract-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border-color: #bfdbfe;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    line-height: 1;
    white-space: nowrap;
}

.badge-live {
    background-color: #dcfce7; /* green-100 */
    color: #166534; /* green-800 */
    border: 1px solid #86efac;
}

.badge-awarded {
    background-color: #dbeafe; /* blue-100 */
    color: #1e40af; /* blue-800 */
    border: 1px solid #93c5fd;
}

.badge-sme {
    background-color: #ffedd5; /* orange-100 */
    color: #9a3412; /* orange-800 */
    border: 1px solid #fdba74;
}

.badge-source-cf {
    background-color: #f3f4f6; /* gray-100 */
    color: #374151; /* gray-700 */
    border: 1px solid #d1d5db;
}

.badge-source-fts {
    background-color: #f3e8ff; /* purple-100 */
    color: #6b21a8; /* purple-800 */
    border: 1px solid #d8b4fe;
}

/* Deadline urgency */
.deadline-urgent {
    background-color: #fef2f2; /* red-50 */
    color: #b91c1c; /* red-700 */
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* Paywall blur overlay for results 4+ */
.paywall-blur {
    position: relative;
    filter: blur(3px);
    opacity: 0.65;
    pointer-events: none;
    user-select: none;
}

.paywall-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.4) 0%,
        rgba(255,255,255,0.85) 35%,
        rgba(255,255,255,0.95) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0.5rem;
}

.paywall-banner {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    max-width: 420px;
    width: 100%;
    margin: 0 1rem;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    text-align: center;
}

/* Navbar logo accent */
.logo-text {
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Form input focus rings (Tailwind + custom) */
.search-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

/* Pagination */
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.pagination a {
    color: #374151;
    border: 1px solid #e5e7eb;
}
.pagination a:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.pagination .current {
    background-color: #0f172a;
    color: white;
    border-color: #0f172a;
}

.pagination .disabled {
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

/* Results count */
.results-count {
    font-size: 0.875rem;
    color: #64748b;
}

/* Detail page */
.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 1rem;
    color: #0f172a;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .contract-card {
        margin-bottom: 0.75rem;
    }
}
