/* style.css */
body {
    background-color: #05050a;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 60px; 
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- NEON BACKGROUND DESIGN --- */
.neon-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
}

.shard { position: absolute; opacity: 0.6; filter: blur(1px); }

.shard-1 {
    top: -5%; left: -5%; width: 400px; height: 400px;
    background: linear-gradient(45deg, transparent 50%, #ff00ff 50%, #ff00ff 51%, transparent 51%);
    filter: drop-shadow(0 0 15px #ff00ff);
}

.shard-2 {
    bottom: 10%; right: -5%; width: 500px; height: 500px;
    background: linear-gradient(-45deg, transparent 48%, #00ffff 48%, #00ffff 50%, transparent 50%);
    filter: drop-shadow(0 0 20px #00ffff);
    transform: rotate(10deg);
}

.shard-3 {
    bottom: -10%; right: 5%; width: 450px; height: 450px;
    background: linear-gradient(-30deg, transparent 48%, #ff00ff 48%, #ff00ff 50%, transparent 50%);
    filter: drop-shadow(0 0 15px #ff00ff);
}

.shard-4 {
    top: 15%; left: -2%; width: 600px; height: 2px;
    background: #00ffff; box-shadow: 0 0 20px #00ffff;
    transform: rotate(-25deg);
}

/* --- HEADER --- */
h1 {
    font-size: 3rem; text-transform: uppercase; letter-spacing: 5px; margin-bottom: 20px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 0, 255, 0.7)); position: relative;
}

/* --- NAVIGATION --- */
.category-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    gap: 15px; 
    margin-bottom: 40px; 
    flex-wrap: wrap; 
}

.category-link { text-decoration: none; display: inline-block; }

.search-wrapper {
    transform: skewX(-15deg);
}

#playerSearch {
    background: rgba(22, 15, 41, 0.8);
    border: 1px solid #00ffff;
    color: white;
    padding: 10px 15px;
    outline: none;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#playerSearch:focus {
    box-shadow: 0 0 20px #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

.category-btn {
    background: rgba(22, 15, 41, 0.6); border: 1px solid #ff00ff; color: #00ffff;
    padding: 10px 20px; text-transform: uppercase; font-weight: bold; font-size: 0.9em;
    letter-spacing: 1px; cursor: pointer; transform: skewX(-15deg);
    transition: all 0.3s ease; box-shadow: 0 0 10px rgba(255, 0, 255, 0.2); backdrop-filter: blur(5px);
}

.category-btn:hover {
    background: #ff00ff; color: #fff; box-shadow: 0 0 20px #ff00ff;
    transform: skewX(-15deg) translateY(-3px);
}

.category-btn.active {
    border-color: #00ffff; box-shadow: 0 0 15px #00ffff;
    background: rgba(0, 255, 255, 0.1); color: #fff;
}

/* --- LEADERBOARD & NAMEPLATES --- */
.leaderboard { width: 105%; max-width: 1226px; position: relative; margin: 0 auto; }

.nameplate {
    display: flex; align-items: center; background: rgba(22, 15, 41, 0.7);
    backdrop-filter: blur(5px); border-left: 5px solid #ff00ff; 
    box-shadow: -5px 0px 15px rgba(255, 0, 255, 0.3); margin-bottom: 18px;
    padding: 18px 30px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%; box-sizing: border-box; border-top-right-radius: 15px;
}

.nameplate:hover {
    transform: scale(1.02) translateX(20px); background: rgba(31, 20, 61, 0.9);
    border-left: 5px solid #00ffff; box-shadow: -5px 0px 25px rgba(0, 255, 255, 0.5);
}

.rank { 
    font-weight: 900; 
    font-size: 1.4em; 
    width: 90px; 
    color: rgb(255, 255, 255); 
    font-style: italic; 
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tier-label { font-family: 'Courier New', Courier, monospace; font-weight: bold; color: #00ffff; text-shadow: 0 0 10px rgba(0, 255, 255, 0.6); margin-right: 25px; min-width: 170px; }

/* --- THE FRIEND'S ALIGNMENT FEATURE --- */
.name { 
    flex-grow: 1; 
    font-size: 1.3em; 
    letter-spacing: 2px; 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    justify-content: space-between; /* Pushes badge to the right */
}

/* Shared Badge Properties - Removing margin-left to allow alignment */
.badge-t1, .badge-t2, .badge-t3, .badge-t4, .badge-t5, .badge-unr, .badge-ret {
    font-size: 0.65em;
    font-weight: 900;
    padding: 3px 12px; 
    background: rgba(0, 0, 0, 0.6); 
    display: inline-block;
    white-space: nowrap;
    font-style: italic;
    transform: skewX(-10deg);
    margin-left: 0 !important; /* Alignment fix override */
    margin-right: 20px;
}

/* Tier Specific Colors */
.badge-t1 { border: 2px solid #ffff00; color: #ffff00; text-shadow: 0 0 5px #ffff00; box-shadow: 0 0 10px rgba(255, 255, 0, 0.4); }
.badge-t2 { border: 2px solid #c0c0c0; color: #c0c0c0; text-shadow: 0 0 5px #c0c0c0; box-shadow: 0 0 10px rgba(192, 192, 192, 0.4); }
.badge-t3 { border: 2px solid #cd7f32; color: #cd7f32; text-shadow: 0 0 5px #cd7f32; box-shadow: 0 0 10px rgba(205, 127, 50, 0.4); }
.badge-t4 { border: 2px solid #00ff00; color: #00ff00; text-shadow: 0 0 5px #00ff00; box-shadow: 0 0 10px rgba(0, 255, 0, 0.4); }
.badge-t5 { border: 2px solid #bf00ff; color: #bf00ff; text-shadow: 0 0 5px #bf00ff; box-shadow: 0 0 10px rgba(191, 0, 255, 0.4); }
.badge-unr { border: 2px solid #ff0000; color: #ff0000; text-shadow: 0 0 5px #ff0000; box-shadow: 0 0 10px rgba(255, 0, 0, 0.4); }
.badge-ret { border: 2px solid #00e1ff; color: #00e1ff; text-shadow: 0 0 5px #00e1ff; box-shadow: 0 0 10px rgba(49, 204, 191, 0.4); }

.points { 
    font-weight: bold; 
    font-size: 1.3em; 
    color: #ff00ff; 
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8); 
    padding-left: 30px; 
    font-family: 'Courier New', monospace; 
    min-width: 100px; 
    text-align: right; 
}

/* --- MOBILE RESPONSIVE FIXES --- */
@media (max-width: 768px) {
    body { padding: 20px; }
    h1 { font-size: 1.8rem; letter-spacing: 2px; }
    .category-container { flex-direction: column; align-items: stretch; gap: 10px; }
    
    .search-wrapper, .category-btn, 
    .badge-t1, .badge-t2, .badge-t3, .badge-t4, .badge-t5 { 
        transform: none; 
        font-size: 0.75rem;
    }

    #playerSearch { width: 100%; box-sizing: border-box; }
    .nameplate { padding: 15px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .nameplate:hover { transform: scale(1.02); }
    .rank { width: auto; margin-bottom: 5px; }
    .tier-label { min-width: unset; margin-right: 0; }
    .points { padding-left: 0; font-size: 1.1em; text-align: left; }
    .name { justify-content: flex-start; gap: 15px; }
}

/* --- COMING SOON STYLES --- */
.coming-soon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 40vh;
    text-align: center;
}

.coming-soon {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 10px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.5));
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.8)); }
}

/* --- HEADER & DISCORD BUTTON LAYOUT --- */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 15px;
    position: relative;
}

.logo-home-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -50px;
    z-index: 10;
}

.main-logo {
    height: 100px; 
    width: auto;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.5));
}

.branding-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-left: -15px;
}

.tier-list-title {
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 2px;
}

.discord-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #5865F2;
    color: white;
    text-decoration: none;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-btn img { height: 14px; width: auto; }

.discord-btn:hover {
    background: #4752c4;
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

/* --- FOOTER & ABOUT --- */
.main-footer { width: 100%; text-align: center; padding: 40px 0; margin-top: 50px; }
.footer-divider {
    height: 1px; width: 80%; max-width: 600px;
    background: linear-gradient(90deg, transparent, #00e1ff, #ff00ff, transparent);
    margin: 0 auto 20px auto; opacity: 0.5;
}

.about-link {
    font-size: 1.1em; font-weight: 900; text-decoration: none; letter-spacing: 2px;
    font-style: italic; background: linear-gradient(90deg, #00e1ff, #ff00ff);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: inline-block;
}

.about-link:hover {
    text-shadow: 0 0 10px #ff00ff, 0 0 25px #ff00ff, 0 0 50px #00e1ff, 0 0 80px rgba(0, 225, 255, 0.6);
    transform: scale(1.15); filter: brightness(1.3);
}

.about-subheader {
    font-size: 1.3em; font-weight: 800; letter-spacing: 5px; margin-top: -8px; 
    text-transform: uppercase; font-style: italic;
    background: linear-gradient(90deg, #00e1ff, #ff00ff);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 225, 255, 0.5));
}

.about-section { position: relative; z-index: 10; max-width: 750px; margin: 60px auto; padding: 0 20px; text-align: center; }
.gradient-header {
    font-size: 2.8em; font-weight: 900; margin-top: 50px; margin-bottom: 20px;
    letter-spacing: 2px; font-style: italic; background: linear-gradient(90deg, #00e1ff, #ff00ff);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 0, 255, 0.4));
}

.about-text {
    color: #ffffff; line-height: 1.8; font-size: 1.05em; margin-bottom: 35px;
    background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(5px);
    padding: 25px; border-radius: 15px; border: 1px solid rgba(0, 225, 255, 0.1);
    border-left: 4px solid #00e1ff; text-align: left; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.back-nav { margin: 60px 0; }