/* =============================================================================
   Project Phoenix — Attending Guests Public Page
   Scoped under .pp-guests-wrap
   ============================================================================= */

.pp-guests-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 60px;
    font-family: inherit;
    color: inherit;
    box-sizing: border-box;
}

.pp-guests-wrap *,
.pp-guests-wrap *::before,
.pp-guests-wrap *::after {
    box-sizing: inherit;
}

/* ---- View switcher (Track / A–Z) ---- */
.pp-guests-view-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.pp-view-label {
    font-size: 0.875em;
    font-weight: 600;
    color: var(--global-palette6, #64748b);
    white-space: nowrap;
}

.pp-view-btn {
    padding: 5px 16px;
    font: inherit;
    font-size: 0.875em;
    font-weight: 600;
    color: var(--global-palette6, #64748b);
    background: none;
    border: 2px solid var(--global-palette7, #e2e8f0);
    border-radius: 20px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    line-height: 1.4;
}

.pp-view-btn:hover {
    color: var(--global-palette3, #1e293b);
    border-color: var(--global-palette3, #1e293b);
}

.pp-view-btn:focus,
.pp-view-btn:active {
    outline: none;
    box-shadow: none;
    background: none;
}

.pp-view-btn:focus-visible {
    outline: 2px solid var(--global-palette1, #2563eb);
    outline-offset: 2px;
}

.pp-view-btn.pp-view-active {
    color: #fff;
    background: var(--global-palette1, #2563eb);
    border-color: var(--global-palette1, #2563eb);
}

/* ---- Alpha view: letter quick-nav ---- */
.pp-alpha-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-bottom: 28px;
}

.pp-alpha-key {
    padding: 2px 0;
    font: inherit;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--global-palette6, #cbd5e1);
    background: none;
    border: none;
    cursor: default;
    line-height: 1.4;
    transition: color 0.15s;
}

.pp-alpha-key--active {
    color: var(--global-palette1, #2563eb);
    cursor: pointer;
}

.pp-alpha-key--active:hover {
    color: var(--global-palette3, #1e293b);
}

.pp-alpha-key:disabled {
    cursor: default;
}

.pp-alpha-key:focus-visible {
    outline: 2px solid var(--global-palette1, #2563eb);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ---- Alpha sections ---- */
.pp-alpha-sections {
    /* no extra styles needed — sections stack naturally */
}

.pp-alpha-section {
    margin-bottom: 40px;
}

.pp-alpha-heading {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--global-palette3, #1e293b);
    border-bottom: 2px solid var(--global-palette7, #e2e8f0);
    padding-bottom: 8px;
    margin: 0 0 20px;
}

/* ---- Tab scroll wrapper & arrows ---- */
.pp-tabs-scroll-wrap {
    position: relative;
    margin-bottom: 32px;
}

.pp-tabs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #475569;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    z-index: 2;
    transition: opacity 0.2s, color 0.15s;
    line-height: 1;
    padding: 0;
}

.pp-tabs-arrow:hover {
    color: #1e293b;
    border-color: #94a3b8;
}

.pp-tabs-arrow:focus,
.pp-tabs-arrow:active {
    outline: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    background: #fff;
    color: #475569;
}

.pp-tabs-arrow-left  { left: -16px; }
.pp-tabs-arrow-right { right: -16px; }

.pp-tabs-arrow-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ---- Tab Bar ---- */
.pp-guests-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 0;
    padding-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.pp-guests-tabs::-webkit-scrollbar {
    height: 4px;
}

.pp-guests-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.pp-guests-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.pp-guests-tab {
    padding: 10px 18px;
    font: inherit;
    font-weight: 600;
    color: var(--global-palette6, #64748b);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    line-height: 1.3;
}

.pp-guests-tab:hover {
    color: var(--global-palette3, #1e293b);
    border-bottom-color: var(--global-palette7, #cbd5e1);
}

.pp-guests-tab:focus,
.pp-guests-tab:active {
    outline: none;
    box-shadow: none;
    background: none;
    color: #64748b;
}

.pp-guests-tab:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.pp-guests-tab.pp-tab-active {
    color: var(--global-palette1, #2563eb);
    border-bottom-color: var(--global-palette1, #2563eb);
}

/* ---- Panels wrapper — holds min-height so footer doesn't jump ---- */
.pp-guests-panels-wrap {
    position: relative;
}

/* ---- Tab Panels ---- */
.pp-guests-panel {
    display: none;
}

.pp-guests-panel.pp-panel-active {
    display: block;
}

/* ---- Guest Grid ---- */
.pp-guests-grid {
    display: grid;
    grid-template-columns: repeat(var(--pp-guests-columns, 2), 1fr);
    gap: 32px 40px;
}

/* ---- Guest Card ---- */
.pp-guest-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}

.pp-guest-photo-wrap {
    width: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #f1f5f9;
}

.pp-guest-photo-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: top center;
}

/* Placeholder silhouette when no headshot */
.pp-guest-photo-placeholder {
    width: 120px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #94a3b8;
}

.pp-guest-photo-placeholder svg {
    width: 56px;
    height: 56px;
    opacity: 0.5;
}

/* Content: name + bio */
.pp-guest-content {
    flex: 1;
    min-width: 0;
}

.pp-guest-name {
    margin: 0 0 8px;
    line-height: 1.3;
}

.pp-guest-bio {
    line-height: 1.65;
    margin: 0;
}

/* ---- Social media icons ---- */
.pp-guest-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.pp-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #94a3b8;
    border-radius: 5px;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.pp-social-icon:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.pp-social-icon svg {
    width: 17px;
    height: 17px;
    display: block;
    flex-shrink: 0;
}

/* Per-platform brand colours on hover */
.pp-social-icon.pp-social-x:hover         { color: #000000; }
.pp-social-icon.pp-social-bluesky:hover   { color: #0085ff; }
.pp-social-icon.pp-social-tiktok:hover    { color: #010101; }
.pp-social-icon.pp-social-facebook:hover  { color: #1877f2; }
.pp-social-icon.pp-social-instagram:hover { color: #e1306c; }
.pp-social-icon.pp-social-youtube:hover   { color: #ff0000; }
.pp-social-icon.pp-social-twitch:hover    { color: #9146ff; }
.pp-social-icon.pp-social-website:hover   { color: #2563eb; }

/* ---- Empty state ---- */
.pp-guests-empty {
    color: #94a3b8;
    font-style: italic;
    padding: 20px 0;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .pp-guests-tab {
        padding: 8px 12px;
        font-size: 16px;
    }

    .pp-guests-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .pp-guest-photo-wrap {
        width: 90px;
    }

    .pp-guest-photo-placeholder {
        width: 90px;
        height: 112px;
    }
}
