/* ===== LISTING PAGE ===== */
.listing-hero {
    padding: 4rem 0 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--lp-brand) 0%, #1a1a2e 100%);
    color: white;
}

.listing-hero-inner {
    max-width: 800px;
}

.listing-h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0;
    color: white;
}

.listing-hero-sub {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.listing-hero-sub strong {
    color: var(--lp-brand-light);
}

/* ===== LISTING SECTION ===== */
.listing-section {
    padding: 3rem 0;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ===== LISTING CARD ===== */
.listing-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.listing-card-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
}

.listing-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--lp-bg);
}

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

.listing-card-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-muted);
    background: var(--lp-bg);
}

.listing-card-content {
    flex: 1;
    min-width: 0;
}

.listing-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lp-text);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-card-meta {
    font-size: 0.85rem;
    color: var(--lp-muted);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-card-role {
    font-size: 0.8rem;
    color: var(--lp-brand);
    margin: 0;
    font-weight: 600;
}

.listing-card-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-muted);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.listing-card:hover .listing-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== LISTING EMPTY STATE ===== */
.listing-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--lp-muted);
}

.listing-empty p {
    font-size: 1.1rem;
}

/* ===== LISTING PAGINATION ===== */
.listing-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--lp-line);
}

.listing-pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--lp-brand);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.listing-pagination-btn:hover {
    background: var(--lp-brand-dark);
    transform: translateY(-2px);
}

.listing-pagination-info {
    color: var(--lp-muted);
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .listing-h1 {
        font-size: 1.8rem;
    }

    .listing-grid {
        grid-template-columns: 1fr;
    }

    .listing-pagination {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] .listing-card-arrow {
    transform: translateX(8px);
}

[dir="rtl"] .listing-card:hover .listing-card-arrow {
    transform: translateX(0);
}

[dir="rtl"] .listing-card-arrow svg {
    transform: rotate(180deg);
}
