@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, sans-serif;
    color: white;
    overflow-x: hidden;
}

/* =============================
   🔥 ANIMATED GRADIENT BACKGROUND
   ============================= */

.bg {
    background: linear-gradient(125deg, #0c0020, #1b0040, #001a33, #26004d);
    background-size: 400% 400%;
    animation: bgShift 16s ease infinite;
    min-height: 100vh;
    padding-bottom: 80px;
}

@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =============================
   TITLES + HEADER
   ============================= */

.title {
    text-align: center;
    font-size: 3rem;
    background: linear-gradient(90deg, #00c3ff, #7f00ff);
    -webkit-background-clip: text;
    color: transparent;
    margin-top: 25px;
}

.subtitle {
    opacity: 0.8;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 30px;
}

/* =============================
   SEARCH BOX + AUTOCOMPLETE
   ============================= */

.search-box {
    width: 90%;
    max-width: 450px;
    margin: auto;
    background: rgba(255, 255, 255, 0.08);
    padding: 22px;
    border-radius: 18px;
    backdrop-filter: blur(14px);
    box-shadow: 0 0 25px rgba(0,200,255,0.25);
}

.search-box input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 1rem;
}

.search-box button {
    margin-top: 14px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(90deg, #00c3ff, #7f00ff);
    color: white;
    transition: 0.2s;
}

.search-box button:hover {
    opacity: 0.85;
}

.error {
    color: #ff5a5a;
    margin-top: 8px;
    text-align: center;
}

/* =============================
   AUTOCOMPLETE DROPDOWN
   ============================= */

.ac {
    margin-top: 6px;
    background: rgba(0,0,0,0.35);
    border-radius: 12px;
    overflow: hidden;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 0 15px rgba(0,200,255,0.3);
    backdrop-filter: blur(10px);
}

.ac-item {
    padding: 12px 14px;
    cursor: pointer;
    transition: 0.2s;
}

.ac-item:hover {
    background: rgba(255,255,255,0.12);
}

.hidden { display: none; }

/* =============================
   PLAYER PROFILE PAGE
   ============================= */

.player-card {
    width: 90%;
    max-width: 700px;
    margin: 40px auto;
    background: rgba(255,255,255,0.10);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 35px rgba(0,180,255,0.30);
}

.player-top {
    display: flex;
    align-items: center;
    gap: 18px;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(0,200,255,0.4);
}

.uuid {
    opacity: 0.65;
}

/* =============================
   SCORE METER
   ============================= */

.meter {
    margin-top: 20px;
}

.meter-bg {
    width: 100%;
    height: 26px;
    background: rgba(255,255,255,0.12);
    border-radius: 50px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 0%;
    transition: width 1.2s ease;
    background: linear-gradient(90deg, #ff3b3b, #ffd900, #48ff00);
    box-shadow: 0 0 14px rgba(0,255,0,0.5);
}

.meter-label {
    margin-top: 8px;
    font-size: 1.1rem;
    text-align: center;
}

/* =============================
   STATS SECTION
   ============================= */

.stats {
    margin-top: 20px;
    font-size: 1.1rem;
}

/* =============================
   PUNISHMENT LIST
   ============================= */

.pun-item {
    margin-top: 12px;
    padding: 12px;
    border-left: 6px solid #7f00ff;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    font-size: 0.95rem;
    box-shadow: 0 0 10px rgba(127,0,255,0.25);
}

/* =============================
   LEADERBOARD TABS
   ============================= */

.tabs {
    margin: 25px auto;
    text-align: center;
}

.tab {
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: white;
    margin: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.tab:hover {
    background: rgba(255,255,255,0.18);
}

.tab.active {
    background: linear-gradient(90deg, #00c3ff, #7f00ff);
}

.lb-content {
    width: 90%;
    max-width: 700px;
    margin: auto;
    margin-top: 15px;
}

.lb-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    margin-bottom: 12px;
    border-left: 6px solid #7f00ff;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 18px rgba(127,0,255,0.25);
}

.lb-item img {
    width: 55px;
    height: 55px;
    border-radius: 10px;
}

.lb-uuid {
    opacity: 0.85;
    font-size: 0.9rem;
}

.lb-info {
    opacity: 0.7;
    font-size: 0.85rem;
}
