/* Sellers Leaderboard Page Styles */

/* Hero Section */
.sellers-hero {
    background: linear-gradient(180deg, rgba(30, 30, 35, 0.8) 0%, rgba(18, 18, 20, 0) 100%);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgba(251, 191, 36, 0.3);
}

.sellers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.sellers-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.sellers-hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Leaderboard Container */
.leaderboard-container {
    max-width: 1050px;
    margin: 0 auto 5rem;
}

.leaderboard-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--bg-card);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 1rem;
}

/* Leaderboard Rows */
.seller-row {
    display: flex;
    align-items: center;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    color: var(--text-primary);
}

/* Dynamic Left Border */
.seller-row::before {
    content: '';
    position: absolute;
    top: 50%; 
    left: 0;
    width: 4px;
    height: 0%;
    background: var(--glass-border);
    transition: all 0.3s ease;
    transform: translateY(-50%);
    border-radius: 4px;
}

.seller-row:hover {
    background: rgba(30, 30, 35, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.015) translateX(5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.seller-row:hover::before {
    height: 70%;
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
}

/* Rank Numbers */
.s-rank {
    width: 40px;
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    text-align: center;
    margin-right: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

/* Top 3 Ranks Custom Styling */
.seller-row:nth-child(1) .s-rank { color: #fbbf24; text-shadow: 0 0 15px rgba(251,191,36,0.6); font-size: 2.2rem; } /* Gold */
.seller-row:nth-child(2) .s-rank { color: #e5e7eb; text-shadow: 0 0 15px rgba(229,231,235,0.4); font-size: 2rem;} /* Silver */
.seller-row:nth-child(3) .s-rank { color: #b45309; text-shadow: 0 0 15px rgba(180,83,9,0.5); font-size: 2rem;} /* Bronze */

/* Info Section (Logo + Name) */
.s-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 2;
}

.s-logo {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 2px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    transition: var(--transition);
}

.seller-row:hover .s-logo {
    border-color: rgba(255,255,255,0.3);
    color: var(--text-primary);
}

/* Specific Logo Overrides */
.seller-row:nth-child(1) .s-logo { color: var(--warning); border-color: rgba(249,115,22,0.3); }
.seller-row:nth-child(1):hover .s-logo { border-color: var(--warning); box-shadow: 0 0 15px rgba(249,115,22,0.3); }

.s-name-group {
    display: flex;
    flex-direction: column;
}

.s-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.s-type {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.verified-badge {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

/* Metrics Section */
.s-metrics {
    display: flex;
    gap: 2rem;
    flex: 2.5;
    justify-content: space-around;
}

.s-metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.s-val {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.s-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Actions Section */
.s-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.s-actions .btn {
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.seller-row:hover .s-actions .btn {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    border-color: transparent;
}

/* Responsive */
@media (max-width: 900px) {
    .seller-row {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        border-radius: 20px;
    }
    
    .s-rank {
        position: absolute;
        top: 10px;
        left: 15px;
        font-size: 3rem !important;
        opacity: 0.1; /* Make it a watermarked background number */
        margin: 0;
        z-index: 0;
    }
    
    .s-info {
        width: 100%;
        justify-content: flex-start;
        z-index: 1;
    }
    
    .s-metrics {
        width: 100%;
        gap: 0.5rem;
        justify-content: space-between;
        background: rgba(0,0,0,0.2);
        padding: 1rem;
        border-radius: 12px;
    }
    
    .s-metric-item {
        flex: 1;
    }
    
    .s-val {
        font-size: 1.1rem;
    }
    
    .s-lbl {
        font-size: 0.7rem;
    }
    
    .s-actions {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .s-actions .btn {
        width: 100%;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3.5rem;
}

.page-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.page-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.page-btn.disabled {
    background: transparent;
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.disabled:hover {
    background: transparent;
}
