/* Базовые стили */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Inter", sans-serif;
    background: #0a0a12;
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: center;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
    background: rgba(0,0,0,0.3);
}

header img {
    height: 40px;
    cursor: pointer;
}

/* Main */
main {
    margin: 80px auto 20px;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* чтобы блоки занимали всю ширину контейнера */
    padding: 0 15px;
    box-sizing: border-box;
}

/* Заголовки */
h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 15px;
    color: #3da9fc;
}

h3 {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
    margin: 10px 0 5px;
}

/* Блоки серверов */
.server-status-block {
    margin-bottom: 30px;
    width: 100%;
}

.server-status {
    background: rgba(255,255,255,0.05);
    margin: 10px 0; /* только вертикальные отступы */
    padding: 15px 20px;
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    transition: background 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.status {
    font-weight: bold;
    margin-bottom: 5px;
}

.status.online { color: #4caf50; }
.status.offline { color: #f44336; }
.status.warning { color: #ff9800; }

.ping {
    font-size: 0.8rem;
    color: #9aa0ac;
    margin-top: 3px;
}

button {
    padding: 6px 12px;
    cursor: pointer;
    background: #1e1e1e;
    color: #3da9fc;
    border: 1px solid #3da9fc;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: 0.2s;
}

button:hover {
    background: #3da9fc;
    color: #0a0a12;
}

/* Фоновая сетка (как лёгкая анимация) */
body::before {
    content: "";
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    animation: moveBg 20s linear infinite;
}

@keyframes moveBg {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

/* Мобилки */
@media (max-width: 600px) {
    main {
        padding: 0 10px;
    }
    .server-status {
        width: 100%;
        margin: 8px 0;
    }
}
