/* ============================================
   CHATRENCONTRE - Annonces CSS
   Styles pour les annonces publiques
   ============================================ */

/* Annonce Card */
.annonce-card {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(15, 15, 15, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.annonce-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e63946, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.annonce-card:hover {
    border-color: rgba(230, 57, 70, 0.2);
    transform: translateY(-2px);
    box-shadow:
        0 20px 40px -15px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(230, 57, 70, 0.1);
}

.annonce-card:hover::before {
    opacity: 1;
}

/* Annonce Header */
.annonce-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    width: 100%;
}

.annonce-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.annonce-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e63946, #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
}

.annonce-avatar.homme {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.annonce-avatar.femme {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

.annonce-avatar.couple {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

/* Avatar avec image */
.annonce-avatar.has-image {
    padding: 0;
    overflow: hidden;
}

.annonce-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.annonce-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.annonce-pseudo {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #fff;
}

.annonce-pseudo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

.annonce-distance {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(230, 57, 70, 0.15);
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* Bouton de géolocalisation */
.geolocate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.geolocate-btn:hover:not(:disabled) {
    background: rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.4);
    color: #e63946;
}

.geolocate-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.annonce-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Annonce Content */
.annonce-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.annonce-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
}

/* Annonce Footer */
.annonce-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.annonce-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.annonce-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.annonce-contact-btn {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #e63946 0%, #c62828 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.annonce-contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(230, 57, 70, 0.5);
}

.annonce-contact-btn:active {
    transform: translateY(0);
}

/* Annonce List Grid */
.annonces-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .annonces-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .annonces-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Filter Tags */
.filter-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.filter-tag.active {
    background: rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.4);
    color: #e63946;
}

/* Search Type Icons */
.search-type-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.search-type-icon.rencontre {
    background: rgba(230, 57, 70, 0.15);
    color: #e63946;
}

.search-type-icon.amitie {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.search-type-icon.discussion {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* Empty State */
.annonces-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.annonces-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.annonces-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.annonces-empty-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 300px;
}

/* Boosted Annonce */
.annonce-card.boosted {
    border-color: rgba(212, 168, 83, 0.3);
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(20, 18, 15, 0.95) 100%);
}

.annonce-card.boosted::before {
    background: linear-gradient(90deg, transparent, #d4a853, transparent);
    opacity: 1;
}

.annonce-boosted-badge {
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #d4a853, #f0c674);
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1a1a1a;
}

.own-annonce-badge {
    padding: 0.25rem 0.625rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 0.5rem;
}

/* ============================================
   FILTER BAR - Nouvelle structure
   ============================================ */

.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-location {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 0.75rem;
}

/* Distance Slider */
.distance-slider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.distance-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.distance-range {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    appearance: none;
    cursor: pointer;
}

.distance-range::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #e63946;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.4);
}

.distance-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #e63946;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.distance-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e63946;
    min-width: 3.5rem;
    text-align: right;
}

/* Filter Row */
.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Filter Groups */
.filter-group {
    display: flex;
    gap: 0.375rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow-x: auto;
}

.filter-group.profile-types {
    flex-shrink: 0;
}

/* Filter Chips */
.filter-chip {
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.filter-chip.active {
    background: rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.3);
    color: #e63946;
}

.filter-chip.loading {
    opacity: 0.5;
    cursor: default;
}

.filter-chip .spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

/* Filter Categories */
.filter-categories {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-categories::-webkit-scrollbar {
    display: none;
}

.filter-chip.category {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Filter Reset Button */
.filter-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 8px;
    color: #e63946;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-reset:hover {
    background: rgba(230, 57, 70, 0.2);
    border-color: rgba(230, 57, 70, 0.4);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}