/* PUBG MARKET | RATING PREMIUM STYLES 
    Theme: Gold, Carbon & Stealth Black
*/

:root {
    --gold: #ffc107;
    --gold-glow: rgba(255, 193, 7, 0.5);
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --bg-dark: #0b0e11;
    --card-bg: #1c2127;
    --text-main: #ffffff;
    --text-muted: #9ba3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Oswald', sans-serif;
}

body.rating-page {
    background-color: var(--bg-dark);
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    color: var(--text-main);
    overflow-x: hidden;
}

.rating-app-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px; /* Footer uchun joy */
}

/* --- HEADER --- */
.rating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(28, 33, 39, 0.9), transparent);
}

.back-btn {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
}

.header-title { text-align: center; }
.header-title h1 { 
    font-size: 22px; 
    color: var(--gold); 
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--gold-glow);
}
.header-title span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; }

.header-icon { font-size: 24px; color: var(--gold); }

/* --- PODIUM (TOP 3) --- */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 40px 10px 20px;
    gap: 10px;
}

.podium-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Shohsupa balandliklari */
.first { order: 2; transform: translateY(-20px); }
.second { order: 1; }
.third { order: 3; }

.avatar-box {
    position: relative;
    margin-bottom: 15px;
}

.user-img-placeholder {
    width: 65px;
    height: 65px;
    background: #242f3d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid var(--text-muted);
}

.first .user-img-placeholder { 
    width: 85px; height: 85px; 
    border: 3px solid var(--gold); 
    box-shadow: 0 0 20px var(--gold-glow);
}
.second .user-img-placeholder { border-color: var(--silver); }
.third .user-img-placeholder { border-color: var(--bronze); }

.medal-icon {
    position: absolute;
    top: -15px;
    right: -5px;
    width: 30px;
    z-index: 2;
}

.user-info h3 { font-size: 14px; margin-bottom: 2px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; max-width: 100px; text-align: center;}
.price { color: var(--gold); font-size: 13px; font-weight: bold; }

.step {
    margin-top: 10px;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: rgba(255,255,255,0.2);
}

.first .step { height: 80px; background: linear-gradient(to top, rgba(255,193,7,0.2), transparent); font-size: 40px; color: var(--gold); }
.second .step { height: 60px; font-size: 30px; }
.third .step { height: 45px; font-size: 25px; }

/* --- RATING LIST --- */
.rating-list-card {
    margin: 20px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.list-header {
    display: grid;
    grid-template-columns: 50px 1fr 100px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.list-body { min-height: 200px; }

.list-row {
    display: grid;
    grid-template-columns: 50px 1fr 100px;
    padding: 15px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: 0.3s;
}

.list-row:last-child { border-bottom: none; }
.list-row:active { background: rgba(255,255,255,0.05); }

.rank-num { font-weight: bold; color: var(--text-muted); }
.user-cell { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.sum-cell { text-align: right; color: var(--gold); font-weight: bold; }

/* --- MY RANK FOOTER --- */
.my-rank-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    background: #1c2127;
    border-top: 2px solid var(--gold);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.5);
    z-index: 100;
}

.my-rank-info { display: flex; align-items: center; gap: 15px; }
.my-pos { 
    background: var(--gold); 
    color: black; 
    padding: 2px 10px; 
    border-radius: 5px; 
    font-weight: bold; 
}
.my-text { text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }
.my-amount { font-size: 18px; color: var(--gold); font-weight: bold; }

/* --- LOADER --- */
.loader-inner {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}
