/* 
 * Hemicycle Front Explorer - Premium Styles
 * Typography: Inter (system-ui fallback)
 * Theme: Glassmorphism / Modern Cards
 */

.hemicycle-explorer-container {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(255, 255, 255, 0.3);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-lg: 16px;
    --radius-md: 12px;
    
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Glassmorphism Filters */
.hemicycle-filters-glass {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

.hemicycle-filter-group {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.hemicycle-filter-group input,
.hemicycle-filter-group select {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.2s ease;
    appearance: none;
    outline: none;
}

.hemicycle-filter-group input:focus,
.hemicycle-filter-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.hemicycle-filter-group select {
    cursor: pointer;
}

.hemicycle-filter-group .filter-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.hemicycle-filter-group .select-icon {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Grid Layout */
.hemicycle-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Card Design */
.hemicycle-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    position: relative;
    display: flex;
    flex-direction: column;
}

.hemicycle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #e5e7eb;
}

.hemicycle-card-header {
    height: 100px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    position: relative;
}

/* Group Colors - Can be customized */
.hemicycle-card-header.groupe-RN { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.hemicycle-card-header.groupe-RE { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.hemicycle-card-header.groupe-LFI { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.hemicycle-card-header.groupe-LR { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.hemicycle-card-header.groupe-ECO { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.hemicycle-card-header.groupe-SOC { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }

.hemicycle-card-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    position: absolute;
    bottom: -40px;
    left: 20px;
    background: #f3f4f6;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hemicycle-card-body {
    padding: 50px 20px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hemicycle-card-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-main);
}

.hemicycle-card-group {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
}

.hemicycle-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.hemicycle-card-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.hemicycle-card-meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Loader */
.hemicycle-loader {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Pagination */
.hemicycle-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.hemicycle-btn {
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.hemicycle-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
}

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

#hemicycle-page-info {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
    .hemicycle-filters-glass {
        flex-direction: column;
    }
    .hemicycle-results-grid {
        grid-template-columns: 1fr;
    }
}
