/**
 * PROFEAT Annonces - Style Shotgun/Calendar
 * Minimal cards with square image and info below
 */

/* Debug box */
.profeat-debug {
    background: rgba(112, 49, 237, 0.1);
    border: 1px solid #7031ed;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #b0b0b0;
}
.profeat-debug strong { color: #fff; }
.profeat-debug code { background: #222; padding: 2px 6px; border-radius: 3px; color: #7031ed; }

/* Error / empty messages */
.profeat-error,
.profeat-empty {
    padding: 20px;
    text-align: center;
    color: #888;
}

/* Annonces filter shell */
.profeat-annonces-page .profeat-map-header {
    position: relative;
    z-index: 5;
    margin: 0 0 24px;
    padding: 8px 0 0;
}

.profeat-annonces-page .profeat-search-bar {
    position: relative;
    max-width: 520px;
    margin: 0 0 12px;
}

.profeat-annonces-page .profeat-search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 18px;
    height: 18px;
    color: #8f8fa3;
    transform: translateY(-50%);
    pointer-events: none;
}

.profeat-annonces-page .profeat-search-input {
    width: 100%;
    padding: 13px 18px 13px 42px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(19, 19, 27, 0.92);
    color: #f2efff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.profeat-annonces-page .profeat-search-input::placeholder {
    color: #8c889b;
}

.profeat-annonces-page .profeat-search-input:focus {
    border-color: var(--pf-accent-primary, #7031ed);
    background: rgba(27, 27, 38, 0.96);
}

.profeat-annonces-page .profeat-pill-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}

.profeat-annonces-page .profeat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(19, 19, 27, 0.92);
    color: #f2efff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.profeat-annonces-page .profeat-pill:hover,
.profeat-annonces-page .profeat-pill.is-active {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(31, 31, 42, 0.96);
}

.profeat-annonces-page .profeat-pill.has-value {
    border-color: var(--pf-accent-primary, #7031ed);
    background: rgba(112, 49, 237, 0.18);
    color: #ffffff;
}

.profeat-annonces-page .profeat-pill svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.profeat-annonces-page .profeat-pill-label {
    text-transform: uppercase;
}

.profeat-annonces-page .profeat-pill-value {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profeat-annonces-page .profeat-pill-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 11px;
    line-height: 1;
}

.profeat-annonces-page .profeat-dropdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: none;
}

.profeat-annonces-page .profeat-dropdown-overlay.is-visible {
    display: block;
}

.profeat-annonces-page .profeat-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 120;
    width: 360px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: rgba(16, 16, 23, 0.98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.profeat-annonces-page .profeat-dropdown-search {
    width: 100%;
    margin: 0 0 12px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(31, 31, 42, 0.98);
    color: #f2efff;
    font-size: 14px;
    outline: none;
}

.profeat-annonces-page .profeat-dropdown-search::placeholder {
    color: #8c889b;
}

.profeat-annonces-page .profeat-dropdown-label {
    margin: 0 0 8px;
    color: #8f8fa3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.profeat-annonces-page .profeat-dropdown-list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 260px;
    overflow-y: auto;
}

.profeat-annonces-page .profeat-dropdown-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    color: #f2efff;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.profeat-annonces-page .profeat-dropdown-list li:hover {
    background: rgba(255, 255, 255, 0.06);
}

.profeat-annonces-page .profeat-dropdown-list li.is-selected {
    background: rgba(112, 49, 237, 0.18);
    color: #c9b7ff;
}

.profeat-annonces-page .profeat-dropdown-list .city-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.profeat-annonces-page .profeat-annonces-results {
    min-height: 120px;
}

/* Grid layout */
.profeat-annonces-grid {
    display: grid;
    gap: 24px;
}
.profeat-cols-2 { grid-template-columns: repeat(2, 1fr); }
.profeat-cols-3 { grid-template-columns: repeat(3, 1fr); }
.profeat-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1200px) {
    .profeat-cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .profeat-cols-3, .profeat-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .profeat-cols-2, .profeat-cols-3, .profeat-cols-4 { grid-template-columns: 1fr; }

    .profeat-annonces-page .profeat-search-bar {
        max-width: none;
    }

    .profeat-annonces-page .profeat-pill-filters {
        gap: 8px;
    }

    .profeat-annonces-page .profeat-pill {
        padding: 8px 15px;
        font-size: 12px;
    }

    .profeat-annonces-page .profeat-dropdown {
        width: calc(100vw - 32px);
    }
}

/* Card - Minimal style */
.profeat-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: transform 0.2s ease;
}
.profeat-card:hover {
    transform: translateY(-2px);
}

.profeat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Avatar - Square with rounded corners */
.profeat-card-avatar {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    margin-bottom: 12px;
}
.profeat-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.profeat-card:hover .profeat-card-avatar img {
    transform: scale(1.05);
}

/* Heart icon overlay (like Shotgun) */
.profeat-card-avatar::after {
    content: '♡';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.profeat-card:hover .profeat-card-avatar::after {
    opacity: 1;
}

/* Content below image */
.profeat-card-content {
    padding: 0;
    line-height: 1.4;
}

/* Name - Main title */
.profeat-card-name,
.profeat-card .profeat-card-name,
.profeat-card-link .profeat-card-name,
a .profeat-card-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profeat-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    text-decoration: none;
}

.profeat-card-rating .profeat-rating-summary-value {
    font-size: 14px;
    font-weight: 700;
    color: #f5f5f5;
}

.profeat-card-rating .profeat-rating-summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profeat-card-rating .profeat-rating-summary-count {
    font-size: 12px;
    color: #b9b0d1;
}

.profeat-card-rating .profeat-stars {
    display: inline-flex;
    gap: 2px;
}

.profeat-card-rating .profeat-star {
    font-size: 13px;
    line-height: 1;
}

.profeat-card-rating .profeat-star-filled {
    color: #f5a623;
}

.profeat-card-rating .profeat-star-empty {
    color: rgba(255, 255, 255, 0.18);
}

/* Member type - Purple for Artiste */
.profeat-card-type {
    display: block;
    color: #7031ED;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* Orange for Organisateur */
.profeat-card-type-organizer {
    color: #ff6b36 !important;
}

/* City - Lighter gray for dark theme */
.profeat-card-city {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 13px;
    color: #d1d1d1 !important;
    margin: 0;
    line-height: 1.4;
}
.profeat-card-city .profeat-icon {
    display: none; /* Hide emoji for cleaner look */
}

/* Bio - Lighter gray, 4 lines max */
.profeat-card-bio {
    font-size: 13px;
    line-height: 1.4;
    color: #d1d1d1 !important;
    margin: 4px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Placeholder bio - slightly italic */
.profeat-card-bio-placeholder {
    font-style: italic;
    color: #F2F4F5 !important;
}

/* ========================
   PAGINATION
   ======================== */

.profeat-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.profeat-page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.profeat-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #333;
}

.profeat-page-link:hover {
    background: var(--pf-accent-hover, #7a34e0);
    border-color: var(--pf-accent-hover, #7a34e0);
    color: #fff;
}

.profeat-page-current {
    background: var(--pf-accent-primary, #7031ed);
    border-color: var(--pf-accent-primary, #7031ed);
    color: #fff;
    cursor: default;
}

.profeat-page-prev,
.profeat-page-next {
    padding: 0 16px;
}

.profeat-page-dots {
    color: #666;
    padding: 0 4px;
}

/* Light mode */
@media (prefers-color-scheme: light) {
    .profeat-page-link {
        background: #f5f5f5;
        color: #333;
        border-color: #ddd;
    }
    
    .profeat-page-link:hover,
    .profeat-page-current {
        background: var(--pf-accent-hover, #7a34e0);
        border-color: var(--pf-accent-hover, #7a34e0);
        color: #fff;
    }
}

/* Meta info (instruments, genres) - Hide for cleaner look */
.profeat-card-meta {
    display: none;
}

/* Actions - Hide buttons for cleaner look, whole card is clickable */
.profeat-card-actions {
    display: none;
}

/* Tabs */
.profeat-annonces-container {
    margin-bottom: 30px;
}

.profeat-annonces-header {
    margin-bottom: 20px;
}

.profeat-annonces-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.profeat-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.profeat-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: #1a1a1a;
    color: #888;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    transition: all 0.2s ease;
}
.profeat-tab:hover {
    color: #fff;
    border-color: #444;
}
.profeat-tab.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.profeat-panel {
    display: none;
}
.profeat-panel.active {
    display: block;
}

/* ============================================
   PAGINATION
   ============================================ */
.profeat-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.profeat-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #1a1a1a;
    color: #888;
    border: 1px solid #2a2a2a;
}

.profeat-page-link:hover {
    color: #fff;
    border-color: var(--pf-accent-hover, #7a34e0);
    background: var(--pf-accent-hover, #7a34e0);
}

.profeat-page-current {
    background: var(--pf-accent-primary, #7031ed);
    color: #fff;
    border-color: var(--pf-accent-primary, #7031ed);
}

.profeat-page-prev,
.profeat-page-next {
    font-weight: 600;
}

.profeat-page-numbers {
    display: flex;
    gap: 4px;
    align-items: center;
}

.profeat-page-dots {
    padding: 0 8px;
    color: #666;
}

/* Responsive pagination */
@media (max-width: 600px) {
    .profeat-pagination {
        gap: 4px;
    }
    .profeat-page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }
    .profeat-page-prev,
    .profeat-page-next {
        padding: 0 10px;
    }
}

/* Light theme pagination */
body:not(.bb-dark-theme):not(.dark-mode) .profeat-page-link {
    background: #f5f5f5;
    color: #666;
    border-color: #e0e0e0;
}
body:not(.bb-dark-theme):not(.dark-mode) .profeat-page-link:hover {
    color: #fff;
    border-color: var(--pf-accent-hover, #7a34e0);
    background: var(--pf-accent-hover, #7a34e0);
}
body:not(.bb-dark-theme):not(.dark-mode) .profeat-page-current {
    background: var(--pf-accent-primary, #7031ed);
    color: #fff;
    border-color: var(--pf-accent-primary, #7031ed);
}


/* Added final overrides */
.bb-dark-theme .profeat-card-name,
.dark-mode .profeat-card-name,
body.bb-dark-theme .profeat-card-name,
body.dark-mode .profeat-card-name,
.profeat-annonces-grid .profeat-card .profeat-card-name,
.profeat-annonces-grid a .profeat-card-name {
    color: #ffffff !important;
}
/* ============================================
   HEART BUTTON - Favorites Toggle
   ============================================ */

.profeat-card-avatar {
    position: relative;
}

.profeat-heart {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.profeat-heart:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.profeat-heart-icon {
    font-size: 18px;
    color: #fff;
    line-height: 1;
    transition: all 0.2s ease;
}

/* Active/favorited state */
.profeat-heart-active .profeat-heart-icon {
    color: #ff4d6d;
}

.profeat-heart-active {
    background: rgba(255, 77, 109, 0.2);
}

.profeat-heart-active:hover {
    background: rgba(255, 77, 109, 0.3);
}

/* Hide the CSS pseudo-element heart, we use real button now */
.profeat-card-avatar::after {
    display: none !important;
}

/* ============================================
   FAVORITES PAGE
   ============================================ */

.profeat-favoris-container {
    margin-bottom: 30px;
}

.profeat-favoris-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 24px;
}

.profeat-favoris-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.profeat-favoris-count {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

/* Empty state */
.profeat-empty {
    padding: 60px 20px;
    text-align: center;
    color: #888;
    font-size: 15px;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed #333;
}

/* Login required */
.profeat-login-required {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed #333;
}
