/* Player List Styles */
.player-list-container {
    max-width: 600px;
    margin: 20px auto;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--mc-border);
    padding: 20px;
    /* border-radius: 8px; */
    animation: fadeIn 0.5s ease;
}

.player-list-title {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    color: var(--mc-blue-light);
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid var(--mc-border);
    padding-bottom: 10px;
}

.online-players-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.online-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
}

.online-player img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 5px;
    border: 2px solid var(--mc-border);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.online-player span {
    font-size: 0.7rem;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #111;
    border: 2px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23222' fill-opacity='0.4' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--mc-blue);
    border-color: var(--mc-blue);
}

.profile-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(30,41,59,0.8), transparent);
    position: relative;
}

.profile-username {
    font-family: 'Technor Semibold', sans-serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 0 #000;
}

.profile-badges-top {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.top-badge {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 4px;
    font-family: 'Technor Regular', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
}

.title-badge {
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
    border: 1px solid #8b5cf6;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.points-badge {
    color: var(--mc-blue-light);
    border-color: var(--mc-blue-light);
}

.profile-avatar-container {
    margin: 0 auto 2rem;
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-avatar {
    height: 150px;
    width: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    animation: float 4s ease-in-out infinite;
}

.rank-diamond {
    position: absolute;
    bottom: -15px;
    width: 36px;
    height: 36px;
    background: #111;
    border: 2px solid;
    border-image: linear-gradient(to bottom, #555 0%, #fff 100%) 1;
    transform: rotate(45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    margin-top: 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
}
/* Top 1: Gold */
.rank-diamond.rank-1 {
    border-image: linear-gradient(to bottom, #eab308 0%, #fffbe6 100%) 1;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.2);
    color: #eab308;
}
/* Top 2: Silver */
.rank-diamond.rank-2 {
    border-image: linear-gradient(to bottom, #8ea5c2 0%, #ffffff 100%) 1;
    box-shadow: 0 0 15px rgba(226, 232, 240, 0.2);
    color: #e2e8f0;
}
/* Top 3: Bronze */
.rank-diamond.rank-3 {
    border-image: linear-gradient(to bottom, #f97316 0%, #fff0e0 100%) 1;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.rank-diamond span {
    transform: rotate(-45deg);
    color: white;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.profile-links {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.profile-tiers-section {
    padding: 0 2rem 2rem;
}

.section-title {
    text-align: center;
    color: #94a3b8;
    font-family: 'Technor Semibold', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title::before, .section-title::after {
    content: '';
    height: 1px;
    width: 50px;
    background: #334155;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 4px;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
    transition: transform 0.2s;
    margin-top: 8px;
}

.badge-item:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

.badge-icon-wrapper {
    width: 38px;
    height: 44px; 
    background: #334155;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2px;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.3));
}

/* Tier 1: Golden */
.badge-icon-wrapper.tier-border-1 {
    background: linear-gradient(135deg, #a16207 0%, #facc15 50%, #a16207 100%);
}

.tier-color-1 {
    color: #facc15 !important;
}

/* Tier 2: Silverish Iron */
.badge-icon-wrapper.tier-border-2 {
    background: linear-gradient(135deg, #394454 0%, #a9e9fd 50%, #394454 100%);
}

.tier-color-2 {
    color: #a9e9fd !important;
}

/* Tier 3: Brownly Bronze */
.badge-icon-wrapper.tier-border-3 {
    background: linear-gradient(135deg, #260e02 0%, #c17746 50%, #260e02 100%);
}

.tier-color-3 {
    color: #c17746 !important;
}

/* Tier 4: Reddish Copper */
.badge-icon-wrapper.tier-border-4 {
    background: linear-gradient(135deg, #390d0d 0%, #ff7070 50%, #390d0d 100%);
}

.tier-color-4 {
    color: #ff7070 !important;
}

/* Tier 5: Greyish White */
.badge-icon-wrapper.tier-border-5 {
    background: linear-gradient(135deg, #15181c 0%, #e5e7eb 50%, #15181c 100%);
}

.tier-color-5 {
    color: #e5e7eb !important;
}

.badge-icon-wrapper .badge-inner {
    width: 100%;
    height: 100%;
    background: #1e293b;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-icon-content {
    width: 20px;
    height: 20px;
    object-fit: contain;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-label {
    font-family: 'Technor', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
    padding: 1px 4px;
    border-radius: 4px;
    margin-top: 2px;
}

.ht-text { color: #f4fb78; }
.lt-text { color: #c68832; }

.retired-section {
    opacity: 0.6;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

/* Tooltip */
.mc-tooltip {
    position: fixed;
    background-color: rgba(16, 0, 16, 0.95);
    border: 2px solid;
    border-top-color: var(--mc-blue-light);
    border-left-color: var(--mc-blue-light);
    border-bottom-color: var(--mc-blue-dark);
    border-right-color: var(--mc-blue-dark);
    /* border-radius: 4px; */
    padding: 8px 12px;
    color: white;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    min-width: 180px;
    opacity: 0;
    transition: opacity 0.1s;
    line-height: 1.4;
    visibility: hidden;
}


.mc-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.mc-tooltip-title {
    color: white; 
    font-weight: bold;
    margin-bottom: 6px;
    border-bottom: 2px solid #333;
    padding-bottom: 4px;
    display: block;
    text-shadow: 2px 2px 0 #000;
}

.mc-tooltip-line {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 2px;
}

.mc-tooltip-line .key {
    color: #aaa;
}
.mc-tooltip-line .value {
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
}
