/* ==========================================================================
   People Page Styles
   ========================================================================== */

/* Alphabet Navigation */
.people-alpha-nav {
    position: sticky;
    top: 60px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200, #E5E7EB);
    padding: 12px 0;
}

.people-alpha-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.people-alpha-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md, 8px);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition-fast, 150ms ease);
    color: var(--gray-700, #374151);
    background: var(--gray-50, #F9FAFB);
    border: 1px solid transparent;
}

.people-alpha-link:hover:not(.people-alpha-disabled) {
    background: var(--primary-color, #A855F7);
    color: #fff;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.people-alpha-disabled {
    color: var(--gray-400, #9CA3AF);
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* Letter Headings */
.people-letter-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.people-letter-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200, #E5E7EB);
    scroll-margin-top: 120px;
    color: var(--gray-900, #111827);
}

/* People Grid */
.people-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 991px) {
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .people-grid {
        grid-template-columns: 1fr;
    }
}

/* Person Card */
.person-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--gray-200, #E5E7EB);
    border-radius: var(--radius-lg, 12px);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base, 200ms ease);
    background: #fff;
    box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
}

.person-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1), 0 4px 8px -4px rgba(0, 0, 0, 0.06);
    color: inherit;
    text-decoration: none;
}

/* Avatar */
.person-card-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
}

.person-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-card-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100, #F3F4F6);
    font-size: 26px;
    color: var(--gray-400, #9CA3AF);
}

/* Card Info */
.person-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.person-card-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-900, #111827);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.person-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--gray-500, #6B7280);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-card-location i {
    font-size: 12px;
    flex-shrink: 0;
}

/* Tags */
.person-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.person-card-tags .post-card-tag {
    font-size: 11px;
    padding: 2px 8px;
}

/* Stats */
.person-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.person-card-stats .user-stat-badge {
    font-size: 11px;
    padding: 2px 8px;
}

/* Arrow */
.person-card-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient, linear-gradient(90deg, #A855F7 0%, #EC4899 100%));
    color: #fff;
    font-size: 14px;
    transition: all var(--transition-base, 200ms ease);
    box-shadow: 0 2px 6px rgba(168, 85, 247, 0.25);
}

.person-card:hover .person-card-arrow {
    transform: translateX(2px);
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.35);
}

@media (max-width: 575px) {
    .person-card-arrow {
        display: none;
    }
}

/* ==========================================================================
   Dark Mode
   ========================================================================== */

body.dark .people-alpha-nav {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark .people-alpha-link {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

body.dark .people-alpha-link:hover:not(.people-alpha-disabled) {
    background: var(--primary-color, #A855F7);
    color: #fff;
}

body.dark .people-alpha-disabled {
    color: rgba(255, 255, 255, 0.25);
}

body.dark .people-letter-heading {
    color: #f1f5f9;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark .person-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark .person-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.3), 0 4px 8px -4px rgba(0, 0, 0, 0.2);
}

body.dark .person-card-avatar .avatar-placeholder {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
}

body.dark .person-card-name {
    color: #f1f5f9;
}

body.dark .person-card-location {
    color: #94a3b8;
}

body.dark .person-card-tags .post-card-tag {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

body.dark .person-card-stats .user-stat-badge {
    background: rgba(168, 85, 247, 0.15);
    color: #A78BFA;
    border-color: rgba(168, 85, 247, 0.25);
}
