/* ============================================
   MARNYL - Leaderboard Styles
   ============================================ */

.marnyl-leaderboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Time Filter Buttons */
.marnyl-leaderboard-time-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.marnyl-time-filter-btn {
    padding: 12px 30px;
    background: #fff;
    border: 3px solid #000;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.marnyl-time-filter-btn:hover {
    background: #ff69b4;
    color: #000;
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #000;
}

.marnyl-time-filter-btn.active {
    background: #ff69b4;
    color: #000;
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #000;
}

/* Leaderboard Type Tabs */
.marnyl-leaderboard-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.marnyl-leaderboard-tab {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: #fff;
    border: 3px solid #000;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 700;
    font-size: 14px;
}

.marnyl-leaderboard-tab .tab-icon {
    font-size: 20px;
    filter: grayscale(0%);
}

.marnyl-leaderboard-tab .tab-label {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.marnyl-leaderboard-tab:hover {
    background: #ff69b4;
    color: #000;
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #000;
}

.marnyl-leaderboard-tab.active {
    background: #ff69b4;
    color: #000;
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 #000;
}

/* Loading State */
.marnyl-leaderboard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 25px;
}

.marnyl-leaderboard-loading .spinner {
    width: 80px;
    height: 80px;
    position: relative;
    background: #ff69b4;
    border-radius: 50%;
    border: 5px solid #000;
    animation: spinVinyl 1.5s linear infinite;
}

/* Center hole */
.marnyl-leaderboard-loading .spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: #000;
    border-radius: 50%;
}

/* Middle circle with half visible */
.marnyl-leaderboard-loading .spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #000;
    clip-path: polygon(0% 0%, 50% 0%, 50% 100%, 0% 100%);
}

@keyframes spinVinyl {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.marnyl-leaderboard-loading p {
    color: #000;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Leaderboard Header */
.marnyl-leaderboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 3px solid #000;
    box-shadow: 6px 6px 0 #000;
}

.marnyl-leaderboard-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.marnyl-leaderboard-header p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

/* Leaderboard Table Container */
.marnyl-leaderboard-table-container {
    background: #fff;
    border: 3px solid #000;
    box-shadow: 6px 6px 0 #000;
}

/* Leaderboard Table - EXACT COPY FROM DASHBOARD */
.marnyl-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: none;
}

.marnyl-leaderboard-table thead {
    background: #fff;
    border-bottom: 3px solid #000;
}

.marnyl-leaderboard-table thead th {
    padding: 15px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.marnyl-leaderboard-table thead th.rank-col {
    width: 100px;
    text-align: center;
}

.marnyl-leaderboard-table thead th.player-col {
    width: auto;
}

.marnyl-leaderboard-table thead th.value-col {
    width: 180px;
    text-align: right;
}

.marnyl-leaderboard-table thead th.date-col {
    width: 140px;
    text-align: right;
}

.marnyl-leaderboard-table tbody tr {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.marnyl-leaderboard-table tbody tr:last-child {
    border-bottom: none;
}

.marnyl-leaderboard-table tbody tr:hover {
    background: rgba(255, 105, 180, 0.05);
}

.marnyl-leaderboard-table tbody td {
    padding: 15px 20px;
    color: #000;
    font-weight: 600;
}

/* Rank Column */
.marnyl-leaderboard-table tbody td.rank-col {
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}

/* Medal styles for top 3 */
.marnyl-leaderboard-table tbody tr.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.marnyl-leaderboard-table tbody tr.rank-1:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.08) 100%);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.marnyl-leaderboard-table tbody tr.rank-1 td.rank-col {
    color: #FFD700;
    font-size: 20px;
}

.marnyl-leaderboard-table tbody tr.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(192, 192, 192, 0.05) 100%);
    border: 2px solid rgba(192, 192, 192, 0.3);
}

.marnyl-leaderboard-table tbody tr.rank-2:hover {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.08) 100%);
    box-shadow: 0 4px 20px rgba(192, 192, 192, 0.3);
}

.marnyl-leaderboard-table tbody tr.rank-2 td.rank-col {
    color: #C0C0C0;
    font-size: 18px;
}

.marnyl-leaderboard-table tbody tr.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(205, 127, 50, 0.05) 100%);
    border: 2px solid rgba(205, 127, 50, 0.3);
}

.marnyl-leaderboard-table tbody tr.rank-3:hover {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.08) 100%);
    box-shadow: 0 4px 20px rgba(205, 127, 50, 0.3);
}

.marnyl-leaderboard-table tbody tr.rank-3 td.rank-col {
    color: #CD7F32;
    font-size: 17px;
}

/* Player Column */
.marnyl-leaderboard-table tbody td.player-col {
    font-weight: 600;
    font-size: 15px;
}

/* Value Column */
.marnyl-leaderboard-table tbody td.value-col {
    text-align: right;
    font-weight: 700;
    font-size: 16px;
    color: #ff69b4;
}

/* Date Column */
.marnyl-leaderboard-table tbody td.date-col {
    text-align: right;
    font-size: 13px;
    color: #000;
    font-weight: 600;
}

/* Empty State */
.marnyl-leaderboard-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
}

.marnyl-leaderboard-empty p {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .marnyl-leaderboard-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .marnyl-leaderboard-table tbody td {
        padding: 12px;
        font-size: 14px;
    }

    .marnyl-leaderboard-header h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .marnyl-leaderboard-tabs {
        grid-template-columns: 1fr;
    }

    .marnyl-time-filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .marnyl-leaderboard-table thead th.value-col {
        width: 100px;
    }
}
