/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0A0E13;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Yellow/Orange Brand Gradients */
.gradient-text {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.gradient-bg {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
}

.gradient-border {
    position: relative;
    background: #0D0D0F;
    border-radius: 12px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    border-radius: 12px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Navigation */
.top-nav {
    position: sticky;
    top: 0;
    background: #0F1419;
    border-bottom: 1px solid #1E2328;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.back-btn {
    color: #FF8C00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-btn:hover {
    color: #FF8C00;
}

/* Font Awesome Icon Styling */
.gradient-text i {
    margin-right: 0.5rem;
    color: #FFD700;
}

.live-indicator i {
    margin-right: 0.3rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Main Layout */
.leaderboard-main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Leaderboard Header */
.leaderboard-header {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.header-content {
    text-align: center;
    margin-bottom: 2rem;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.header-subtitle {
    font-size: 1.2rem;
    color: #B0B5BC;
    max-width: 600px;
    margin: 0 auto;
}

.leaderboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid #1E2328;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #B0B5BC;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

.live-indicator {
    color: #FFD700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.time-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    background: #1E2328;
    border: 1px solid #2D3339;
    color: #FFFFFF;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    border-color: transparent;
    color: #000000;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-select {
    background: #1E2328;
    border: 1px solid #2D3339;
    color: #FFFFFF;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

/* Leaderboard Table */
.leaderboard-container {
    background: #0F1419;
    border: 1px solid #1E2328;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.leaderboard-table {
    width: 100%;
}

.table-header {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr 1.5fr 1.5fr 1fr 1fr;
    background: #1E2328;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #B0B5BC;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-body {
    max-height: 800px;
    overflow-y: auto;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr 1.5fr 1.5fr 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid #1E2328;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.leaderboard-row:hover {
    background: rgba(255, 140, 0, 0.05);
}

.rank-cell {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.rank-1 { color: #FFD700; }
.rank-2 { color: #C0C0C0; }
.rank-3 { color: #CD7F32; }

.token-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.token-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.token-info {
    display: flex;
    flex-direction: column;
}

.token-name {
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.25rem;
}

.token-symbol {
    font-size: 0.875rem;
    color: #B0B5BC;
}

.price-cell {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.change-cell {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.change-positive {
    color: #FFD700;
}

.change-negative {
    color: #FF6B6B;
}

.volume-cell,
.market-cap-cell,
.holders-cell {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.actions-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    background: #FF8C00;
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.action-btn:hover {
    background: #FFA500;
}

/* Podium Section */
.podium-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.podium-item {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
    min-width: 250px;
}

.podium-item:hover {
    transform: translateY(-5px);
}

.podium-1 {
    order: 2;
    transform: scale(1.1);
    border-color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.podium-2 {
    order: 1;
}

.podium-3 {
    order: 3;
}

.podium-rank {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.podium-token-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.podium-token-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.podium-token-details {
    text-align: left;
}

.podium-token-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.podium-token-symbol {
    color: #B0B5BC;
    font-weight: 500;
}

.podium-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.podium-market-cap {
    font-weight: 700;
    font-size: 1.2rem;
}

.podium-change {
    font-weight: 600;
}

/* Creator Spotlight */
.creator-spotlight {
    background: #0F1419;
    border: 1px solid #1E2328;
    border-radius: 16px;
    padding: 2rem;
}

.creator-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.creator-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.creator-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.creator-tokens {
    color: #B0B5BC;
}

.creator-stats {
    display: flex;
    gap: 2rem;
}

.creator-stat {
    text-align: center;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 19, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #1E2328;
    border-top: 3px solid #FF8C00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: #1E2328;
    border: 1px solid #2D3339;
    border-radius: 8px;
    padding: 1rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.toast.error {
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .table-header,
    .leaderboard-row {
        grid-template-columns: 50px 2fr 1fr 1fr 1fr 1fr 80px 80px;
    }
}

@media (max-width: 900px) {
    .table-header,
    .leaderboard-row {
        grid-template-columns: 40px 2fr 1fr 1fr 1fr;
    }
    
    .col-volume,
    .col-holders,
    .col-actions {
        display: none;
    }
    
    .podium-container {
        flex-direction: column;
        align-items: center;
    }
    
    .podium-1 {
        order: 1;
        transform: none;
    }
    
    .creator-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .leaderboard-main {
        padding: 1rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .leaderboard-header {
        padding: 1rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
} 