/* ===============================
   Global Styles
================================ */
body {
    margin: 0;
    background: #0f0f10;
    font-family: "Inter", sans-serif;
    color: #e0e0e0;
    user-select: none;
}

/* ===============================
   Header
================================ */
.top-header {
    background: #131416;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #222;
}

.top-header h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 1px;
    color: #00ff88;
}

/* ===============================
   Layout
================================ */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* ===============================
   Updates Panel
================================ */
.updates-card {
    background: #16181c;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 0 20px rgba(0, 255, 120, 0.06);
    height: fit-content;
    position: sticky;
    top: 30px;
}

.updates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.updates-list li {
    background: #101114;
    border: 1px solid #1e2024;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.update-date {
    display: block;
    font-size: 0.75rem;
    color: #6ccf92;
    margin-bottom: 6px;
}

/* ===============================
   Update Badges
================================ */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: #00ff88;
    color: #062b1c;
}

.badge-maintenance {
    background: #ffb300;
    color: #2a1a00;
}

/* ===============================
   Main Content
================================ */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ===============================
   Cards
================================ */
.server-card,
.players-card {
    background: #181a1e;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 0 25px rgba(0, 255, 150, 0.08);
    transition: transform 0.2s ease;
}

.server-card:hover,
.players-card:hover {
    transform: translateY(-4px);
}

.server-title {
    text-align: center;
    color: #00ff99;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

/* ===============================
   Server Icon
================================ */
#icon-container img {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    display: block;
    margin: 0 auto 15px auto;
    box-shadow: 0 0 12px rgba(0, 255, 170, 0.3);
}

/* ===============================
   Info Grid
================================ */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.info-item {
    background: #111214;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #1c1d20;
}

.motd-item {
    grid-column: span 2;
}

.label {
    display: block;
    font-size: 0.8rem;
    color: #8a8a8a;
    margin-bottom: 4px;
}

.value {
    font-size: 1.1rem;
    color: #dfffe8;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ===============================
   Server Extras Fix
================================ */
/* ===============================
   Server Extras
   (Display below main server info)
================================ */
.server-extras {
    background: #16181c;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 0 20px rgba(0, 255, 120, 0.06);
    margin-top: 30px; /* space below main content */
    width: 96%;      /* full width of main content */
    display: block;
}

.server-extras .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.server-extras .full-width {
    grid-column: span 2;
}

.info-item ul {
    margin-top: 8px;
}

.info-item .value {
    display: block; /* override flex for complex content */
}


/* ===============================
   Plugin List
================================ */
#plugin-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

#plugin-list li {
    background: #111214;
    border: 1px solid #1f2022;
    border-radius: 10px;
    padding: 6px 8px;
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
}

/* ===============================
   Player List
================================ */
.player-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.player-list li {
    padding: 10px;
    background: #111214;
    border: 1px solid #1f2022;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* ===============================
   Copy-to-Clipboard Buttons
================================ */
.copy-btn {
    margin-left: 8px;
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 999px;
    border: 1px solid #1f2022;
    background: #0f1113;
    color: #6ccf92;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #00ff88;
    color: #062b1c;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.copy-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ===============================
   Ping Quality Indicator
================================ */
.ping-badge {
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #333;
    color: #aaa;
}

.ping-good {
    background: #00ff88;
    color: #062b1c;
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.6);
}

.ping-medium {
    background: #ffcc00;
    color: #2a1a00;
    box-shadow: 0 0 6px rgba(255, 204, 0, 0.6);
}

.ping-bad {
    background: #ff4d4d;
    color: #2a0000;
    box-shadow: 0 0 6px rgba(255, 77, 77, 0.6);
}

/* ===============================
   Footer + Uptime Graph
================================ */
.minecraft-footer {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #222;
    font-size: 0.9rem;
    line-height: 1.5;
}

.minecraft-footer a {
    color: #6ccf92;
    text-decoration: none;
}

.minecraft-footer a:hover {
    color: #a4d6b3;
}

.uptime-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.uptime-label {
    font-size: 0.75rem;
    color: #8a8a8a;
}

.uptime-graph {
    display: flex;
    gap: 3px;
}

.uptime-bar {
    width: 10px;
    height: 16px;
    border-radius: 4px;
    background: #333;
}

.uptime-bar.online {
    background: #00ff88;
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.6);
}

.uptime-bar.offline {
    background: #ff4d4d;
    box-shadow: 0 0 6px rgba(255, 77, 77, 0.6);
}

/* ===============================
   Responsive
================================ */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .updates-card {
        position: relative;
        top: 0;
    }
}
/* ===============================
   Tooltips
================================ */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #181a1e;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: 0 0 6px rgba(0,255,136,0.4);
    z-index: 10;
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* ===============================
   Plugin List Enhancements
================================ */
.plugin-list li {
    background: #111214;
    border: 1px solid #1f2022;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.plugin-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    background: #0f1a17;
    cursor: help;
}
/* ===============================
   Player Role Tags
================================ */
.player-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-name {
    font-weight: 500;
}

/* ===============================
   Player Role Tags (Updated Colors)
================================ */
.role-tag {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Admin – Glowing Green */
.role-admin {
    background: #00ff88;
    color: #062b1c;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.75);
}

/* Moderator – Glowing Blue */
.role-moderator {
    background: #4da6ff;
    color: #081d33;
    box-shadow: 0 0 8px rgba(77, 166, 255, 0.75);
}

/* Guest – Glowing White / Grey */
.role-guest {
    background: #d6d6d6;
    color: #1a1a1a;
    box-shadow: 0 0 6px rgba(220, 220, 220, 0.6);
}
/* ===============================
   Supporter Role Tag
================================ */
.role-supporter {
    background: #ffd24d;        /* Gold */
    color: #3a2a00;
    box-shadow: 0 0 8px rgba(255, 210, 77, 0.8);
}
/* ===============================
   Player List with Skins
================================ */
.player-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #111214;
    border: 1px solid #1f2022;
    border-radius: 12px;
    margin-bottom: 10px;
}

.player-skin {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    image-rendering: pixelated;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.player-name {
    font-size: 1rem;
    color: #e0e0e0;
    flex-grow: 1;
}
