/* Attendees Page Styles */

/* Hero and header - inherits from style.css */

.breadcrumb {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    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 var(--border-color);
}

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

h1 {
    color: var(--bone) !important;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    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(--bone);
    color: var(--text-secondary);
    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: var(--text-muted);
    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: var(--ink);
}

.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: var(--text-muted);
    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: var(--text-muted);
}

/* 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);
    }
}
/* ══════════════════════════════════════════════════════════════════════════
   Dark ground — attendee roster on the illustration.
   ══════════════════════════════════════════════════════════════════════════ */

.subtitle {
    color: var(--mist);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.search-section {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: var(--space-xl);
}

.search-count {
    color: var(--mist);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Roster cards as glass. */
.attendee-card {
    background: rgba(30, 43, 48, 0.44);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid var(--border-light);
    box-shadow: none;
}

.attendee-card:hover {
    background: rgba(30, 43, 48, 0.58);
    border-color: rgba(172, 139, 71, 0.55);
    box-shadow: 0 10px 28px rgba(30, 43, 48, 0.34);
}

.attendee-info h3 {
    color: var(--bone);
    /* Plain sans — a person's name shouldn't be set in the display serif. */
    font-family: var(--font-primary);
    font-weight: var(--font-medium);
    letter-spacing: 0.005em;
}

.affiliation {
    color: var(--mist);
}

.attendee-image {
    border: 1px solid var(--border-light);
    background: rgba(30, 43, 48, 0.4);
}

.spinner,
.spinner-small {
    border-color: var(--border-light);
    border-top-color: var(--ochre);
}

.no-results p {
    color: var(--text-secondary);
}

/* ── LinkedIn links on roster cards ───────────────────────────────────────── */

/* The <a> becomes the grid item, so it must fill its track and pass the card's
   full height through — otherwise cards in a row stop matching. */
.attendee-link {
    display: block;
    height: 100%;
    text-decoration: none !important;
    color: inherit !important;
    border-radius: 12px;
}

.attendee-link .attendee-card {
    height: 100%;
}

/* Hover belongs to the link, so the whole card responds, not just the article. */
.attendee-link:hover .attendee-card {
    background: rgba(30, 43, 48, 0.58);
    border-color: rgba(172, 139, 71, 0.55);
    box-shadow: 0 10px 28px rgba(30, 43, 48, 0.34);
    transform: translateY(-2px);
}

.attendee-link:hover .attendee-info h3 {
    color: var(--ochre);
}

.attendee-link:focus-visible {
    outline: 2px solid var(--ochre);
    outline-offset: 3px;
}

/* No LinkedIn on file: not clickable, so don't imply it is. */
.attendee-card--unlinked {
    cursor: default;
}

.attendee-card--unlinked:hover {
    transform: none;
    background: rgba(30, 43, 48, 0.44);
    border-color: var(--border-light);
    box-shadow: none;
}

/* Persistent LinkedIn affordance. Positioned against the card, so it needs the
   card to establish a containing block. */
.attendee-link .attendee-card {
    position: relative;
}

.attendee-linkedin {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 1rem;
    height: 1rem;
    color: var(--mist);
    opacity: 0.65;
    transition: opacity 0.2s ease, color 0.2s ease;
    pointer-events: none;
}

.attendee-link:hover .attendee-linkedin,
.attendee-link:focus-visible .attendee-linkedin {
    color: var(--ochre);
    opacity: 1;
}
