/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    min-height: 100vh;
    background-image: radial-gradient(circle at 10% 20%, rgba(64, 64, 255, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 90% 80%, rgba(255, 64, 128, 0.15) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Glassmorphism Base */
.glass, .glass-header, .glass-footer {
    background: rgba(30, 30, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-header {
    padding: 15px 0;
    margin: 20px 0 30px 0;
    border-radius: 30px;
}

.glass-footer {
    margin: 40px 0 20px 0;
    padding: 20px;
    border-radius: 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.data-badge {
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.2);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 12px;
    color: #b3adff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.data-badge i {
    color: #6c63ff;
    font-size: 14px;
}

/* Header */
.logo {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #6c63ff;
    font-size: 32px;
}
.highlight {
    color: #6c63ff;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: #aaa;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: 0.3s;
    padding: 8px 12px;
    border-radius: 30px;
}

nav a i {
    margin-right: 6px;
}

nav a:hover, nav a.active {
    color: #fff;
    background: rgba(108, 99, 255, 0.2);
}

/* Filters */
.filters-section {
    padding: 25px;
    margin-bottom: 30px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ccc;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 40px;
    color: #bbb;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.filter-btn i {
    margin-right: 5px;
}

.filter-btn:hover {
    background: rgba(108, 99, 255, 0.2);
    color: #fff;
    border-color: #6c63ff;
}

.filter-btn.active {
    background: #6c63ff;
    color: #fff;
    border-color: #6c63ff;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

/* Grid of servers */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 10px;
}

.server-card {
    background: rgba(20, 20, 35, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 22px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.15);
}

.server-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.server-card .card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-card .game-icon {
    font-size: 28px;
}

.server-card h3 {
    font-size: 18px;
    margin: 0;
    color: #fff;
    cursor: pointer;
}

.server-card .card-actions {
    display: flex;
    gap: 8px;
}

.server-card .copy-ip-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #888;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.server-card .copy-ip-btn:hover {
    background: rgba(108, 99, 255, 0.2);
    color: #fff;
}

.server-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #999;
    margin: 12px 0;
}

.server-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: rgba(108, 99, 255, 0.2);
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 11px;
    color: #b3adff;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.online-status {
    color: #4ade80;
}

/* Server Detail Page */
.server-detail {
    padding: 35px;
    max-width: 800px;
    margin: 0 auto;
}

.server-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.server-description {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-radius: 16px;
    margin: 15px 0;
    color: #ccc;
}

.ip-copy-block {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0,0,0,0.3);
    padding: 15px 20px;
    border-radius: 50px;
    margin: 15px 0;
}

.ip-copy-block span {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    word-break: break-all;
}

.btn-primary {
    background: #6c63ff;
    border: none;
    color: #fff;
    padding: 10px 25px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #5a52e0;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ddd;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.likes-comments {
    margin-top: 20px;
}

.like-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-like {
    background: rgba(255, 0, 80, 0.1);
    border: 1px solid rgba(255, 0, 80, 0.2);
    color: #ff4d6d;
    padding: 10px 25px;
    border-radius: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-like:hover {
    background: rgba(255, 0, 80, 0.2);
    transform: scale(1.05);
}

.btn-like.liked {
    background: rgba(255, 0, 80, 0.25);
    border-color: #ff4d6d;
}

.btn-like:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.comment-section {
    margin-top: 30px;
}

.comment-input {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.comment-input input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 14px;
}

.comment-input input:focus {
    outline: none;
    border-color: #6c63ff;
}

.comment-item {
    background: rgba(255,255,255,0.05);
    padding: 12px 18px;
    border-radius: 16px;
    margin-bottom: 10px;
    border-left: 3px solid #6c63ff;
}

.comment-item .comment-author {
    font-weight: 600;
    color: #b3adff;
}

.comment-item .comment-date {
    color: #888;
    font-size: 12px;
    margin-left: 10px;
}

/* Admin Panel */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.admin-form, .admin-stats {
    padding: 30px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #bbb;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 15px;
    transition: 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.stat-blocks {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.stat-item {
    background: rgba(255,255,255,0.05);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 15px;
}

.chart-placeholder {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
}

#adminServerList {
    list-style: none;
    margin-top: 10px;
}

#adminServerList li {
    padding: 10px 15px;
    background: rgba(255,255,255,0.03);
    margin-bottom: 8px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#adminServerList li button {
    background: rgba(255, 0, 0, 0.2);
    border: none;
    color: #ff6b6b;
    padding: 5px 15px;
    border-radius: 30px;
    cursor: pointer;
}

#adminServerList li button:hover {
    background: rgba(255, 0, 0, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    padding: 40px;
    max-width: 400px;
    width: 100%;
    position: relative;
}
.close {
    position: absolute;
    top: 15px; right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: #aaa;
}
.modal-content input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
    color: #fff;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(108, 99, 255, 0.3);
    padding: 15px 25px;
    border-radius: 16px;
    color: #fff;
    font-size: 14px;
    z-index: 2000;
    animation: slideUp 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.toast i {
    margin-right: 10px;
    color: #6c63ff;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    nav a {
        margin: 0 8px;
        font-size: 14px;
    }
    .server-detail {
        padding: 20px;
    }
    .ip-copy-block {
        flex-direction: column;
        align-items: stretch;
    }
    .server-meta {
        grid-template-columns: 1fr;
    }
    .servers-grid {
        grid-template-columns: 1fr;
    }
}