/* * Shady Corner Affiliate Leaderboard Styles 
 * Scoped tightly to .lb-main-container so it does not interfere with the active theme.
 */

.lb-main-container {
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}

.lb-main-container * {
    box-sizing: border-box;
}

/* Title Banner Area */
.lb-banner {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 25px;
    margin-top: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, rgba(112, 57, 155, 0.4), rgba(35, 29, 51, 0.8));
}

.lb-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://shadycorner.com/wp-content/uploads/2026/04/topcreate_banner.png');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

.lb-banner h2 {
    font-weight: 700;
    font-size: 38px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
    z-index: 2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8), 0 0 20px rgba(234, 106, 151, 0.5);
}

/* Folder Layout Structure */
.lb-folder-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.lb-tabs {
    display: flex;
    gap: 4px;
}

.lb-tab {
    background: rgba(35, 29, 51, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    color: #a99bb8;
    padding: 10px 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lb-tab:hover {
    color: #fff;
    background: rgba(112, 57, 155, 0.5);
}

.lb-tab.active {
    background: #181423;
    color: #ea6a97;
    border: 1px solid rgba(234, 106, 151, 0.5);
    border-bottom: 2px solid #181423;
    padding-bottom: 11px;
}

.lb-search-container {
    padding-bottom: 8px;
}

.lb-search-input {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 8px 18px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    width: 220px;
    outline: none;
    transition: all 0.2s;
}

.lb-search-input:focus {
    border-color: #ea6a97;
    box-shadow: 0 0 10px rgba(234, 106, 151, 0.2);
    background: rgba(0,0,0,0.6);
}

/* Folder Body */
.lb-folder-body {
    background: #181423;
    border: 1px solid rgba(234, 106, 151, 0.5);
    border-radius: 8px;
    padding: 35px 25px 20px 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1;
}

.leaderboard-content {
    display: none;
    animation: fadeIn 0.3s ease-out forwards;
}

.leaderboard-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Podium (Top 3) */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Keeps content pushed to bottom naturally */
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 10px 5px;
    width: 140px;
    position: relative;
}

/* Increased heights slightly to prevent flex-shrink from hiding the names */
.podium-1 { order: 2; height: 150px; border-color: rgba(255, 215, 0, 0.4); box-shadow: inset 0 2px 10px rgba(255, 215, 0, 0.1); }
.podium-2 { order: 1; height: 130px; border-color: rgba(192, 192, 192, 0.3); box-shadow: inset 0 2px 8px rgba(192, 192, 192, 0.05); }
.podium-3 { order: 3; height: 120px; border-color: rgba(205, 127, 50, 0.3); box-shadow: inset 0 2px 8px rgba(205, 127, 50, 0.05); }

.crown {
    position: absolute;
    animation: float 3s infinite ease-in-out;
    filter: drop-shadow(0 0 5px currentColor);
}

.crown svg {
    width: 100%;
    height: 100%;
}

.crown-1 { color: #ffd700; width: 32px; height: 32px; top: -38px; z-index: 4; }
.crown-2 { color: #c0c0c0; width: 24px; height: 24px; top: -28px;}
.crown-3 { color: #cd7f32; width: 24px; height: 24px; top: -28px;}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.lb-pfp-podium {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    border: 2px solid;
    margin-bottom: 8px;
    background: #111;
    flex-shrink: 0; /* Prevents avatar from squishing */
}

.podium-1 .lb-pfp-podium { width: 55px; height: 55px; border-color: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
.podium-2 .lb-pfp-podium { border-color: #c0c0c0; }
.podium-3 .lb-pfp-podium { border-color: #cd7f32; }

.podium-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    flex-shrink: 0; /* Prevents text from collapsing vertically */
}

.podium-1 .podium-name { font-size: 14px; color: #ffd700; }

.podium-stat {
    background: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
    font-weight: 600;
    color: #ea6a97;
    font-size: 11px;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Compact Grid List Cards */
.lb-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 850px;
    margin: 0 auto;
}

.lb-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    padding: 8px 15px;
    transition: all 0.2s;
}

.lb-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #ea6a97;
    transform: translateX(2px);
}

.lb-rank {
    font-weight: 700;
    font-style: italic;
    font-size: 15px;
    color: rgba(103, 160, 255, 0.7);
    width: 35px;
    text-align: center;
    margin-right: 10px;
}

.lb-card .lb-pfp {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.1);
    margin: 0 12px 0 0;
    object-fit: cover;
    background: #111;
}

.lb-name {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 600;
    color: #e5b7e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-stat {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
}

/* Pagination Container */
.lb-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.lb-page-btn {
    background: rgba(35, 29, 51, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a99bb8;
    padding: 6px 14px;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lb-page-btn:hover {
    background: rgba(112, 57, 155, 0.5);
    color: #fff;
    border-color: #ea6a97;
}

.lb-page-btn.active {
    background: #ea6a97;
    color: #fff;
    border-color: #ff38a2;
    box-shadow: 0 0 10px rgba(255, 56, 162, 0.3);
}

/* Integrated User Status Footer */
.lb-user-footer {
    max-width: 850px;
    margin: 25px auto 0 auto;
    border-top: 1px dashed rgba(255,255,255,0.1);
    padding-top: 15px;
}

.lb-become-creator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(112,57,155,0.3), rgba(234,106,151,0.2));
    border: 1px solid rgba(234,106,151,0.3);
    border-radius: 6px;
    padding: 12px 20px;
}

.lb-become-creator span {
    font-size: 14px;
    font-weight: 600;
    color: #e5b7e0;
}

.lb-become-creator a {
    background: #ea6a97;
    color: #fff;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.2s;
}

.lb-become-creator a:hover {
    background: #ff38a2;
    box-shadow: 0 0 10px rgba(255, 56, 162, 0.5);
}

.lb-my-rank {
    background: rgba(234, 106, 151, 0.08);
    border-left: 3px solid #ea6a97;
    border-top: 1px solid rgba(234, 106, 151, 0.2);
    border-right: 1px solid rgba(234, 106, 151, 0.2);
    border-bottom: 1px solid rgba(234, 106, 151, 0.2);
    max-width: 100%;
    margin: 0;
}

.lb-my-rank .lb-name {
    color: #ea6a97;
}

.lb-my-rank-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.6;
    margin-right: 15px;
    letter-spacing: 1px;
}

/* Responsive Overrides */
@media only screen and (max-width: 768px) {
    .lb-banner { height: 100px; }
    .lb-banner h2 { font-size: 26px; }
    .lb-folder-header { flex-direction: column-reverse; align-items: stretch; gap: 10px; padding: 0;}
    .lb-tabs { justify-content: space-between; gap: 2px; }
    .lb-tab { flex-grow: 1; text-align: center; padding: 10px 5px; font-size: 12px; }
    .lb-search-input { width: 100%; box-sizing: border-box; }
    .podium-container { gap: 2px; }
    .podium-item { width: 32%; padding: 8px 2px; }
    .podium-1 { height: 130px; } /* Increased for mobile */
    .podium-2 { height: 110px; } /* Increased for mobile */
    .podium-3 { height: 100px; } /* Increased for mobile */
    .lb-pfp-podium { width: 30px; height: 30px; }
    .podium-1 .lb-pfp-podium { width: 40px; height: 40px; }
    .podium-name { font-size: 10px; }
    .podium-1 .podium-name { font-size: 11px; }
    .crown-1 { width: 24px; height: 24px; top: -30px; }
    .crown { width: 18px; height: 18px; top: -20px; }
    .lb-card { padding: 6px 8px; }
    .lb-rank { font-size: 13px; width: 22px; margin-right: 5px; }
    .lb-card .lb-pfp { width: 22px; height: 22px; margin-right: 6px; }
    .lb-name { font-size: 12px; }
    .lb-stat { font-size: 11px; padding: 2px 6px; min-width: 35px; }
    .lb-become-creator { flex-direction: column; gap: 10px; text-align: center; }
    .lb-pagination { gap: 4px; }
    .lb-page-btn { padding: 5px 10px; font-size: 12px; }
}