/* Attendees Page Styles */

/* Hero section with banner */
.hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.logo-badge {
    max-width: 600px;
    margin: 0 auto;
}

.logo-badge img {
    width: 100%;
    height: auto;
}

.breadcrumb {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
}

.back-link:hover {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

h1 {
    color: #000 !important;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

#attendee-search {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid var(--form-element-border-color);
    background-color: var(--form-element-background-color);
    transition: border-color 0.2s;
}

#attendee-search:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 0.125rem rgba(47, 78, 157, 0.25);
}

.search-count {
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* Attendees Grid */
.attendees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Attendee Card */
.attendee-card {
    background: var(--card-background-color);
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.attendee-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.attendee-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--secondary-background);
    display: flex;
    align-items: center;
    justify-content: center;
}

.attendee-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attendee-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: #000;
}

.affiliation {
    color: var(--primary);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(47, 78, 157, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

/* Infinite Scroll Loader */
.scroll-loader {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

.spinner-small {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(47, 78, 157, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

.scroll-loader p {
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

#scroll-sentinel {
    width: 100%;
    height: 1px;
    visibility: hidden;
}

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

/* No Results Message */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .attendees-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .attendee-card {
        padding: 1rem;
    }

    .attendee-image {
        width: 80px;
        height: 80px;
    }

    .attendee-info h3 {
        font-size: 1rem;
    }

    .affiliation {
        font-size: 0.85rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .attendee-card {
        background: var(--card-background-color);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .attendee-card:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }

    #attendee-search {
        background-color: var(--form-element-background-color);
        border-color: var(--form-element-border-color);
    }

    .attendee-image {
        background: rgba(255, 255, 255, 0.05);
    }
}