/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    background: #0a0a0a url('assets/bg-dark.jpg') no-repeat center center/cover;
    color: #eee;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Анимированный фон (сетка) */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(66, 133, 244, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(66, 133, 244, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* Glassmorphism эффект */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Шапка */
header {
    text-align: center;
    padding: 60px 20px 30px;
}

header .logo {
    width: 120px;
    border: 2px solid #00f7ff;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 0 15px #00f7ff;
    margin-bottom: 15px;
    transition: all 0.3s;
}

header .logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px #00f7ff, 0 0 30px #9d00ff;
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    color: #fff;
    position: relative;
    display: inline-block;
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00f7ff, #9d00ff, transparent);
    border-radius: 2px;
}

header h1 span {
    color: #00f7ff;
    text-shadow: 0 0 10px #00f7ff;
}

header p {
    font-size: 1.1em;
    color: #aaa;
}

/* Навигация */
.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s;
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.3), transparent);
    transition: 0.6s;
    z-index: -1;
    border-radius: 8px;
}

.nav a:hover::before {
    left: 100%;
}

.nav a:hover {
    color: #00f7ff;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
    transform: translateY(-2px);
}

.nav a.active {
    background: rgba(0, 123, 255, 0.3);
    color: #00f7ff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Основной контент */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    animation: fadeInUp 0.8s ease 1s forwards;
}

main h2 {
    color: #00f7ff;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
    text-shadow: 0 0 5px #00f7ff;
}

/* Карточки */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 247, 255, 0.2);
}

.card h3 {
    color: #00f7ff;
    margin-bottom: 15px;
    font-size: 1.4em;
    text-shadow: 0 0 5px #00f7ff;
}

/* Кнопки с анимацией */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background: transparent;
    color: #00f7ff;
    border: 2px solid #00f7ff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 10px 10px 0;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 1.2s forwards;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.3), transparent);
    transition: 0.6s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    color: #fff;
    background: rgba(0, 247, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.5);
    transform: translateY(-3px);
    border-color: #00bfff;
}

/* Статус сервера */
.status-box {
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-size: 1.1em;
    margin: 10px 0;
    background: rgba(0, 255, 0, 0.1);
    border-left: 4px solid #0f0;
    color: #0f0;
}

.status-box.offline {
    background: rgba(255, 0, 0, 0.1);
    border-left: 4px solid #f00;
    color: #f00;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    animation: fadeInUp 0.8s ease 1.4s forwards;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background: rgba(0, 123, 255, 0.4);
    color: white;
    border-radius: 6px 6px 0 0;
}

tr:hover {
    background: rgba(0, 247, 255, 0.05);
    transform: scale(1.01);
    transition: all 0.2s;
}

/* Футер */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
}

footer a {
    color: #00f7ff;
    text-shadow: 0 0 5px #00f7ff;
    transition: color 0.3s;
}

footer a:hover {
    color: #fff;
}

/* Адаптивность */
@media (max-width: 768px) {
    header h1 { font-size: 2.2em; }
    .nav { flex-direction: column; }
    .nav a { width: 80%; }
    main { padding: 20px; }
    .card { padding: 20px; }
}
/* Размер иконок соцсетей */
.social img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
    transition: transform 0.2s;
}

.social img:hover {
    transform: scale(1.1);
}
