/* ========================================
   LEADERBOARD - FULL RESPONSIVE DARK CSS
   Horizontal Scroll on Mobile | All Centered
   Slide-in Hamburger Menu
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
.btn-view {
    color: white;
}
a {
  text-decoration: none;
}
/* PAGINATION (CREATORS) */
#creatorsPagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.btn-paginate {
    background: #2c2c2c;
    color: #ccc;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
}
.btn-paginate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-paginate:hover:not(:disabled) {
    background: #f0b90b;
    color: #000;
}
#creatorPageInfo {
    color: #aaa;
    font-size: 0.9em;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.wraped {
    border: solid 1px #444;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 6px 6px #2c2c2c;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f1f1f;
    padding: 20px 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo img {
    width: 50px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.logo img:hover {
    transform: scale(1.1);
}
.logo span {
    font-weight: 700;
    color: #f0b90b;
    font-size: 1.1em;
}

/* Desktop Nav */
.navbar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #1f1f1f;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    padding: 80px 20px 20px;
    overflow-y: auto;
}
.navbar.active {
    right: 0;
}
.navbar ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0;
}
.navbar li {
    margin: 0;
    border-bottom: 1px solid #333;
}
.navbar a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: #bbbbbb;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
}
.navbar a:hover,
.navbar a.active {
    background: #2c2c2c;
    color: #f0b90b;
    padding-left: 28px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: #bbbbbb;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   LEADERBOARD SECTION
   ======================================== */
.leaderboard-section {
    padding: 40px 20px;
    text-align: center;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
}
h1 {
    color: #f0b90b;
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 700;
}
.leaderboard-section p {
    color: #aaaaaa;
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* ========================================
   HORIZONTAL SCROLL TABLE
   ======================================== */
.leaderboard-table {
    background: #1f1f1f;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    overflow: hidden;
    margin: 0 12px;
}
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}
.table-wrapper::-webkit-scrollbar {
    height: 8px;
}
.table-wrapper::-webkit-scrollbar-track {
    background: #2c2c2c;
    border-radius: 10px;
}
.table-wrapper::-webkit-scrollbar-thumb {
    background: #f0b90b;
    border-radius: 10px;
}
.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #d9a008;
}
table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}
.table-header {
    background: #2c2c2c;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.95em;
}
.table-header th {
    padding: 16px 12px;
    text-align: center;
    border-bottom: 2px solid #444;
}
.table-row td {
    padding: 16px 12px;
    text-align: center;
    border-bottom: 1px solid #333;
    font-size: 0.95em;
}
.table-row:hover {
    background: #2c2c2c;
}
.table-row:last-child td {
    border-bottom: none;
}

/* Column Styles */
.rank {
    font-weight: 700;
    color: #f0b90b;
    font-size: 1.1em;
}
.address {
    font-family: 'Courier New', monospace;
    color: #60a5fa;
    font-weight: 500;
}
.points,
.earned {
    color: #34d399;
    font-weight: 600;
}

/* Loading & Empty */
.loading,
.empty {
    padding: 40px;
    color: #888;
    font-style: italic;
    text-align: center;
    font-size: 1.1em;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    .hamburger {
        display: flex;
    }
    .navbar {
        right: -100%;
    }
    .navbar.active {
        right: 0;
    }
    .table-header th,
    .table-row td {
        padding: 12px 8px;
        font-size: 0.9em;
    }
    .rank {
        font-size: 1.2em;
    }
}
@media (min-width: 769px) {
    .hamburger,
    .menu-overlay {
        display: none;
    }
    .navbar {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        transition: none;
    }
    .navbar ul {
        flex-direction: row;
        gap: 30px;
    }
    .navbar li {
        border-bottom: none;
    }
    .navbar a {
        padding: 0;
        font-size: 1em;
    }
    .navbar a:hover,
    .navbar a.active {
        background: none;
        padding-left: 0;
    }
}