/* ===========================================
   ENRICHISSEMENTS PROFESSIONNELS RECHERCHE.PHP
   =========================================== */

/* Page de recherche globale */
.search-page {
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

/* Hero recherche amélioré */
.search-hero {
    position: relative;
    z-index: 1;
}

/* Barre de recherche avancée */
.search-bar-section {
    margin-bottom: 2rem;
}

.advanced-search-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 2px solid rgba(30, 64, 175, 0.1);
    position: relative;
    overflow: hidden;
}

.advanced-search-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #0891b2 50%, #0891b2 100%);
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
}

.search-field {
    position: relative;
}

.search-field i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #1e40af;
    font-size: 18px;
    z-index: 1;
}

.search-field input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    background: white;
}

.search-field input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.search-field input::placeholder {
    color: #94a3b8;
}

/* Bouton de recherche premium */
.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.4);
}

/* Filtres avancés */
.advanced-filters {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

.btn-toggle-filters {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border: 2px solid rgba(30, 64, 175, 0.2);
    color: #1e40af;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-toggle-filters:hover {
    background: rgba(30, 64, 175, 0.15);
    border-color: #1e40af;
    transform: translateY(-2px);
}

.filter-badge {
    background: linear-gradient(135deg, #0891b2 0%, #f5576c 100%);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 0.5rem;
}

.filters-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
    border-radius: 12px;
    border: 2px dashed rgba(30, 64, 175, 0.2);
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.filter-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.filter-group select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.checkbox-label:hover {
    border-color: #1e40af;
    background: rgba(30, 64, 175, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1e40af;
}

/* Cartes de résultats premium */
.offers-list {
    display: grid;
    gap: 1.5rem;
}

.offer-card-list {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid rgba(30, 64, 175, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.offer-card-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #1e40af 0%, #0891b2 100%);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.offer-card-list:hover::before {
    transform: scaleY(1);
}

.offer-card-list:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.2);
    border-color: rgba(30, 64, 175, 0.2);
}

/* Offres exclusives - Style premium */
.offer-card-exclusive {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    position: relative;
}

.offer-card-exclusive::before {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    transform: scaleY(1);
}

.offer-card-exclusive:hover {
    border-color: #d97706;
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.3);
}

/* Ruban exclusivité */
.exclusive-ribbon {
    position: absolute;
    top: 12px;
    right: -35px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 4px 40px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
    z-index: 10;
    letter-spacing: 0.5px;
}

.exclusive-ribbon i {
    margin-right: 4px;
}

/* Badge exclusif inline */
.badge-inline.badge-exclusive {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-weight: 700;
    animation: exclusivePulse 2s ease-in-out infinite;
}

.badge-inline.badge-exclusive i {
    color: white;
}

@keyframes exclusivePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.6); }
}

/* Badge générique inline */
.badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.badge-inline.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-inline.badge-hot {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.badge-inline.badge-remote {
    background: #eff6ff;
    color: #3b82f6;
}

/* Empty state amélioré */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.no-results i {
    font-size: 80px;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    display: block;
}

.no-results h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.no-results p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 2rem;
}

/* Pagination premium */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-link {
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-link:hover {
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    border-color: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
}

.pagination-link.active {
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    border-color: #1e40af;
    color: white;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.pagination-ellipsis {
    padding: 0.75rem 0.625rem;
    color: #94a3b8;
    font-weight: 600;
    user-select: none;
}

/* Animations */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideInFromBottom 0.6s ease-out;
}

/* Responsive */
@media (max-width: 1024px) {
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .filters-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .advanced-search-form {
        padding: 1.5rem;
    }
    
    .search-field input {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
        font-size: 14px;
    }
    
    .btn-primary {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .offer-card-list {
        padding: 1.5rem;
    }
}

/* Effet de brillance sur hover */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.shine-effect {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    background-size: 200% 100%;
    animation: shine 2s infinite;
}

/* Badge premium live */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

