/* Modern Discord Stats Styling */
.discord-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.discord-main h1 {
    text-align: center;
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Server Tabs - Modern Style */
.server-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.server-tab {
    display: inline-block;
    padding: 12px 24px;
    cursor: pointer;
    background: rgba(30, 30, 40, 0.7);
    border: 1px solid rgba(136, 136, 136, 0.3);
    color: #aaa;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.server-tab:hover {
    background: rgba(88, 101, 242, 0.3);
    border-color: rgba(88, 101, 242, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

.server-tab.active {
    background: linear-gradient(135deg, #5865F2 0%, #7289da 100%);
    color: #fff;
    border-color: #7289da;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

/* Search Bar - Modern Style */
.search-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.search-bar input {
    padding: 12px 18px;
    width: 350px;
    max-width: 90%;
    border-radius: 10px;
    border: 1px solid rgba(136, 136, 136, 0.3);
    background: rgba(30, 30, 40, 0.8);
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
}

.search-bar button {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #5865F2 0%, #7289da 100%);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

/* Stats Row - Grid Layout */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

/* Stats Box - Modern Card Style */
.stats-box {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.95) 0%, rgba(20, 20, 30, 0.98) 100%);
    border: 1px solid rgba(136, 136, 136, 0.15);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.stats-box:hover {
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.stats-box h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(136, 136, 136, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-box h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #5865F2, #7289da);
    border-radius: 2px;
}

.stats-box p {
    color: #ccc;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.stats-box p:hover {
    background: rgba(88, 101, 242, 0.1);
}

.stats-box p strong {
    color: #888;
    font-weight: 500;
}

/* Tables - Modern Style */
.stats-box table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.stats-box table th {
    background: rgba(88, 101, 242, 0.2);
    color: #7289da;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-box table th:first-child {
    border-radius: 10px 0 0 0;
}

.stats-box table th:last-child {
    border-radius: 0 10px 0 0;
}

.stats-box table td {
    padding: 12px 15px;
    color: #ccc;
    border-bottom: 1px solid rgba(136, 136, 136, 0.1);
    transition: background 0.2s ease;
}

.stats-box table tr:hover td {
    background: rgba(88, 101, 242, 0.08);
}

.stats-box table tr:last-child td {
    border-bottom: none;
}

.stats-box table tr:last-child td:first-child {
    border-radius: 0 0 0 10px;
}

.stats-box table tr:last-child td:last-child {
    border-radius: 0 0 10px 0;
}

.stats-box table a {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.stats-box table a:hover {
    color: #81d4fa;
    text-decoration: underline;
}

/* Game links purple */
.stats-box table a[style*="ce93d8"] {
    color: #ce93d8 !important;
}

.stats-box table a[style*="ce93d8"]:hover {
    color: #f3e5f5 !important;
}

/* User Stats Section */
#user-stats {
    width: 100%;
    max-width: none;
    margin-bottom: 25px;
}

.stats-periods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    width: 100%;
}

.stats-periods>div {
    background: rgba(20, 20, 30, 0.6);
    border-radius: 12px;
    padding: 15px;
}

.stats-periods h4 {
    color: #7289da;
    margin-bottom: 12px;
    font-size: 1rem;
}

/* Bot Invite Button */
.discord-main .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-main .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
}

/* Separator */
.stats-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.5), transparent);
    margin: 30px 0;
}

/* Autocomplete Styling */
.ui-autocomplete {
    background: rgba(30, 30, 40, 0.98) !important;
    border: 1px solid rgba(88, 101, 242, 0.3) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    max-height: 300px;
    overflow-y: auto;
}

.ui-autocomplete .ui-menu-item {
    padding: 10px 15px !important;
    color: #ccc !important;
    border-bottom: 1px solid rgba(136, 136, 136, 0.1) !important;
}

.ui-autocomplete .ui-menu-item:hover,
.ui-autocomplete .ui-state-active {
    background: rgba(88, 101, 242, 0.2) !important;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .stats-box {
        padding: 15px;
    }

    .stats-box h3 {
        font-size: 1rem;
    }

    .stats-box table th,
    .stats-box table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .server-tabs {
        flex-direction: column;
        align-items: center;
    }

    .search-bar {
        flex-direction: column;
        align-items: center;
    }

    .search-bar input {
        width: 100%;
    }

    .discord-main {
        padding: 15px 10px;
    }

    .discord-main h1 {
        font-size: 1.5rem;
    }
}

/* Footer */
.discord-footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.85rem;
    margin-top: 30px;
}

.discord-footer a {
    color: #4fc3f7;
    text-decoration: none;
}

.discord-footer a:hover {
    text-decoration: underline;
}