/* ===================================================
   1. BASE & LAYOUT
   =================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background-color: hsl(0, 0%, 5%); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    overflow-x: hidden;
    color: #fff;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.08) 0%, transparent 70%);
    top: 10%;
    left: 15%;
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

body::after {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.08) 0%, transparent 70%);
    bottom: 10%;
    right: 15%;
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

.dashboard-container {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1120px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
}

.column:last-child {
    width: 480px;
}

/* ===================================================
   2. GRID ITEMS (COMMON)
   =================================================== */
.grid-item {
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    background: rgba(24, 24, 24, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.grid-item:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.block-title {
    position: absolute;
    top: 25px;
    left: 25px;
    color: white;
    font-weight: 700;
    font-size: 1.35em;
    z-index: 10;
    letter-spacing: -0.3px;
}

/* ===================================================
   3. LEFT COLUMN (IP & LOGO)
   =================================================== */
.ip-block { 
    height: 310px;
    background: #1e90ff; 
}

.container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 10%, transparent 20%);
    background-size: 30px 30px;
    animation: moveBackground 8s linear infinite;
    z-index: 1;
}

.server-logo {
    width: 140px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.ip-block-copy {
    background: rgba(24, 24, 24, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.ip-block-copy:hover { 
    background: rgba(34, 34, 34, 0.95); 
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.copy-icon { 
    width: 20px; 
    height: 20px; 
}

/* ===================================================
   4. MIDDLE COLUMN (STATUS & DISCORD)
   =================================================== */
.status-block { 
    background: #0E487B; 
    height: 200px; 
    flex-direction: column; 
    justify-content: center;
    padding: 20px;
}

.cookie-img { 
    width: 60px; 
    margin-bottom: 4px; 
}

.status-info { 
    text-align: center; 
    color: white; 
}

.status-info small { 
    font-size: 0.9rem; 
    opacity: 0.9;
    display: block;
}

#player-count {
    display: block;
    font-size: 3.2em;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1.5px;
}

.version-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.3px;
}

@keyframes pulseDot {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(85, 255, 85, 0.7); }
    70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 8px rgba(85, 255, 85, 0); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(85, 255, 85, 0); }
}

#status-dot { 
    display: inline-block; 
    width: 9px; 
    height: 9px; 
    background: #55FF55; 
    border-radius: 50%; 
    margin-right: 5px;
    animation: pulseDot 2s infinite;
}

.discord-block { 
    background: #5865F2; 
    height: 190px; 
    text-decoration: none; 
}

.discord-logo { 
    width: 85px; 
    margin-top: 15px;
    animation: discordFloat 3s ease-in-out infinite;
}

@keyframes discordFloat {
    0% { transform: translateY(0px); }
    50% { transform: scale(1.1); }
    100% { transform: translateY(0px); }
}

/* ===================================================
   5. RIGHT COLUMN (JOIN)
   =================================================== */
.join-block { 
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../assets/join-bg.png') center/cover;
    height: 410px; 
}

/* ===================================================
   6. TOAST NOTIFICATION
   =================================================== */
.toast-card {
    position: fixed;
    bottom: 30px;
    right: -450px;
    width: 320px;
    z-index: 10000;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-card.show { 
    right: 30px; 
}

/* ===================================================
   7. MOBILE SUPPORT (RESPONSIVE)
   =================================================== */
@media (max-width: 1024px) {
    body { 
        align-items: flex-start; 
        padding: 20px; 
    }

    body::before, body::after {
        display: none;
    }

    .dashboard-container { 
        flex-direction: column; 
        gap: 15px; 
    }

    .column { 
        width: 100% !important; 
    }

    .grid-item { 
        border-radius: 20px; 
    }

    .ip-block { 
        height: 260px; 
    }

    .server-logo { 
        width: 100px; 
    }

    .ip-block-copy { 
        order: -1; 
        font-size: 0.9em; 
        margin-bottom: 5px; 
    }

    .status-block { 
        height: 185px; 
    }

    #player-count { 
        font-size: 3em; 
    }

    .cookie-img { 
        display: none; 
    }

    .join-block {
        height: 240px;
        background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../assets/join-bg-mobile.png');
    }

    .discord-block { 
        height: 150px; 
    }

    .toast-card {
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
        bottom: 15px;
        transform: translateY(150px);
    }

    .toast-card.show { 
        transform: translateY(0); 
        left: 15px; 
        right: 15px;
    }
}