/* Oyuncular: profil, başarı tablosu, kullanıcı arama kartları (rütbe stilleri ranks.css). */

.player-profile {
    max-width: 620px;
    margin: 28px auto 42px;
}

.player-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 36px 28px 28px;
    border: 1px solid rgba(142, 43, 178, .1);
    border-top: 5px solid var(--mustard-line);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff 0%, #fcf7fe 100%);
    text-align: center;
}

.player-profile-avatar-ring {
    position: relative;
    display: inline-flex;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--mustard-line) 0%, var(--mustard-line-strong) 100%);
    -webkit-box-shadow: 0 6px 18px rgba(142, 43, 178, .18);
    box-shadow: 0 6px 18px rgba(142, 43, 178, .18);
}

.player-profile-avatar {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    background: #ece0f4;
}

.player-profile-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.player-profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-profile-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    box-shadow: 0 4px 12px rgba(116, 32, 142, .3);
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.player-profile-edit:hover { transform: translate3d(0, -1px, 0); box-shadow: 0 6px 16px rgba(116, 32, 142, .42); }

.player-profile-edit-icon { display: block; width: 13px; height: 13px; }

.player-profile-edit--avatar {
    position: absolute;
    right: 4px;
    bottom: 4px;
    border: 2px solid #fff;
}

.player-profile-name {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: #5a2874;
    word-break: break-word;
}

.player-profile-username {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #9a7cb0;
    word-break: break-word;
}

.player-profile-rank {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 10px 26px;
    border-radius: 999px;
    color: #7a5200;
    background: linear-gradient(180deg, #ffd96a, #f3b321);
    -webkit-box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);
}

.player-profile-rank-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.player-profile-rank-value { font-size: 20px; font-weight: 800; line-height: 1; }

.player-profile-rank--none {
    color: #6b4b86;
    background: #ece0f4;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.player-profile-rank--none .player-profile-rank-value { font-size: 14px; font-weight: 700; }

.player-profile-stats {
    display: flex;
    width: 100%;
    margin: 18px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(142, 43, 178, .12);
    list-style: none;
}

.player-profile-stat {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
}

.player-profile-stat + .player-profile-stat { border-left: 1px solid rgba(142, 43, 178, .12); }

.player-profile-stat-value { font-size: 22px; font-weight: 800; line-height: 1.1; color: var(--purple-1); }
.player-profile-stat-label { font-size: 12px; font-weight: 600; color: #8a6aa0; }

@media (max-width: 560px) {
    .player-profile { margin-top: 20px; }
    .player-profile-card { padding: 28px 18px 22px; }
    .player-profile-avatar { width: 104px; height: 104px; }
    .player-profile-name { font-size: 22px; }
    .player-profile-stats { margin-top: 14px; padding-top: 14px; }
    .player-profile-stat { padding: 0 4px; }
    .player-profile-stat-value { font-size: 18px; }
    .player-profile-stat-label { font-size: 11px; }
}

.top-gamers-section { max-width: 760px; margin-right: auto; margin-left: auto; }

.top-gamers-section .section-head { text-align: center; }
.top-gamers-section .section-head p { color: rgba(255, 255, 255, .88); }

.top-gamers-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-gamers-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border: 1px solid rgba(142, 43, 178, .1);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #fcf7fe 100%);
    transition: transform .18s ease, border-color .18s ease;
}

.top-gamers-item:hover {
    border-color: rgba(142, 43, 178, .28);
    transform: translate3d(0, -1px, 0);
}

.top-gamers-item.is-clickable { cursor: pointer; }
.top-gamers-item.is-clickable:hover .top-gamers-name { color: var(--purple-1); }

.top-gamers-item--medal { border-top: 3px solid var(--mustard-line); }

.top-gamers-rank {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
    color: #5a2874;
    background: #ece0f4;
    -webkit-box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
}

.top-gamers-item--rank-1 .top-gamers-rank { color: #7a5200; background: linear-gradient(180deg, #ffd96a, #f3b321); }
.top-gamers-item--rank-2 .top-gamers-rank { color: #4a5568; background: linear-gradient(180deg, #e6e9ef, #c2c8d2); }
.top-gamers-item--rank-3 .top-gamers-rank { color: #7a4a22; background: linear-gradient(180deg, #f0c08a, #d08a4e); }

.top-gamers-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    background: #efe6f5;
    -webkit-box-shadow: 0 4px 12px rgba(100, 21, 111, .14);
    box-shadow: 0 4px 12px rgba(100, 21, 111, .14);
}

.top-gamers-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .18s ease;
}

.top-gamers-name:hover { color: var(--purple-1); }

.top-gamers-meta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.top-gamers-score {
    font-size: 20px;
    font-weight: 800;
    color: var(--purple-1);
    white-space: nowrap;
}

.top-gamers-score-unit { font-size: 13px; font-weight: 700; color: rgba(142, 43, 178, .6); }

.top-gamers-lockbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(120, 42, 160, .1);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 238, 251, .88));
}

.top-gamers-lock-content { display: grid; gap: 6px; }
.top-gamers-lock-content strong { color: #5a2874; font-size: 16px; }
.top-gamers-lock-content p { margin: 0; color: rgba(58, 36, 76, .76); }
.top-gamers-lock-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.top-gamers-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 46px;
    padding: 0 22px;
    border: 2px solid var(--mustard-line);
    border-radius: 14px;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    color: #fff4c7;
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.top-gamers-cta-button:hover {
    transform: translate3d(0, -1px, 0);
    border-color: #ffd15a;
    background: linear-gradient(180deg, #9f32c7 0%, var(--purple-3) 100%);
}

.top-gamers-cta-button:active { transform: translate3d(0, 0, 0); }

.top-gamers-empty {
    margin: 0;
    padding: 28px 20px;
    border: 1px dashed rgba(142, 43, 178, .25);
    border-radius: 18px;
    text-align: center;
    color: rgba(58, 36, 76, .76);
    background: linear-gradient(180deg, #fff 0%, #fcf7fe 100%);
}

@media (max-width: 720px) {
    .top-gamers-lockbox { flex-direction: column; align-items: center; text-align: center; }
    .top-gamers-lock-content { width: 100%; justify-items: center; }
    .top-gamers-lock-actions { width: 100%; flex-direction: column; align-items: center; }
    .top-gamers-cta-button { width: 100%; max-width: 240px; min-width: 0; }

    .top-gamers-item { gap: 10px; padding: 10px 12px; }

        .top-gamers-item .gsc-tier-badge { padding: 5px; }
    .top-gamers-item .gsc-tier-badge-name { display: none; }
    }

@media (prefers-reduced-motion: reduce) {
    .top-gamers-item,
    .top-gamers-cta-button { transition: none; }
}

.user-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

.user-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 12px 16px;
    border: 1px solid rgba(142, 43, 178, .1);
    border-top: 3px solid var(--mustard-line);
    border-radius: 22px;
    text-decoration: none;
    color: var(--text-dark);
    background: #fff;
    overflow: hidden;
    contain: layout paint style;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.user-card:hover {
    transform: translate3d(0, -3px, 0);
    border-color: var(--mustard-line-strong);
    background: #fffdf7;
}

.user-card-xp {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    color: rgba(107, 33, 125, .6);
}

.user-card .gsc-tier-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5px;
}

.user-card .gsc-tier-badge-name { display: none; }

.user-card-avatar {
    display: inline-flex;
    margin-bottom: 12px;
    line-height: 0;
    border-radius: 50%;
    --gsc-ring-w: 3px;
}

.user-card-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.user-card-name {
    max-width: 100%;
    overflow: hidden;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-card-handle {
    margin-top: 2px;
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    color: rgba(107, 33, 125, .55);
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) { .user-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .user-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* "Sen de bu listeye gir" kutusu yalnız misafire (html.is-member, oturum işaret çerezinden ilk boyamadan önce). */
.is-member .top-gamers-lockbox { display: none; }
