:root {
    --primary: #6a5acd;
    --primary-dark: #483d8b;
    --secondary: #ff7f50;
    --success: #32cd32;
    --danger: #ff4500;
    --dark: #2d2d3d;
    --light: #f8f9fa;
    --text: #e0e0e0;
    --bg-dark: #1a1a2e;
    --pixel-border: #4a4a4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rubik', sans-serif;
    color: var(--text);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Параллакс эффект */
.parallax {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.parallax-layer-back {
    background-image: url('../images/bg-layer-3.png');
    opacity: 0.2;
}

.parallax-layer-middle {
    background-image: url('../images/bg-layer-2.png');
    opacity: 0.4;
}

.parallax-layer-front {
    background-image: url('../images/bg-layer-1.png');
    opacity: 0.6;
}

/* Пиксельные границы */
.pixel-border {
    position: relative;
    border: 4px solid var(--pixel-border);
    box-shadow: 0 0 0 4px var(--dark), 
                0 0 0 8px var(--pixel-border),
                0 8px 0 8px var(--dark);
    background: var(--dark);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pixel-border::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 4px solid var(--primary);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.pixel-border:hover::before {
    opacity: 0.6;
}

.pixel-corners {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary);
}

/* Шапка */
header {
    text-align: center;
    padding: 2rem;
    margin-bottom: 3rem;
    background: rgba(42, 42, 72, 0.8);
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.logo-oc {
    color: var(--primary);
    text-shadow: 4px 4px 0 var(--primary-dark);
}

.logo-mc {
    color: var(--secondary);
    text-shadow: 4px 4px 0 #c0502d;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.8;
}

/* Карточка сервера */
.server-card {
    background: rgba(45, 45, 61, 0.8);
    border-radius: 0;
    margin-bottom: 3rem;
    transition: transform 0.3s;
}

.server-card:hover {
    transform: translateY(-5px);
}

.server-status {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Обновленный индикатор статуса сервера */
.status-icon {
    width: 80px;
    height: 80px;
    border: 4px solid var(--pixel-border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    /* Пиксельный эффект */
    clip-path: polygon(
        0% 0%, 
        0% 100%, 
        10% 100%, 
        10% 10%, 
        90% 10%, 
        90% 90%, 
        10% 90%, 
        10% 100%, 
        100% 100%, 
        100% 0%
    );
}

.status-light {
    width: 60px;
    height: 60px;
    background: #444;
    /* Пиксельный эффект */
    clip-path: polygon(
        0% 0%, 
        0% 100%, 
        10% 100%, 
        10% 10%, 
        90% 10%, 
        90% 90%, 
        10% 90%, 
        10% 100%, 
        100% 100%, 
        100% 0%
    );
    box-shadow: 
        inset 4px 0 0 rgba(255,255,255,0.1),
        inset -4px 0 0 rgba(0,0,0,0.3),
        inset 0 4px 0 rgba(255,255,255,0.1),
        inset 0 -4px 0 rgba(0,0,0,0.3);
}

.status-icon.online .status-light {
    background: var(--success); /* Зеленый цвет */
    box-shadow: 
        0 0 0 4px var(--success),
        inset 4px 0 0 rgba(255,255,255,0.3),
        inset -4px 0 0 rgba(0,100,0,0.3),
        inset 0 4px 0 rgba(255,255,255,0.3),
        inset 0 -4px 0 rgba(0,100,0,0.3);
    animation: pixel-pulse 1.5s infinite;
}

.status-icon.offline .status-light {
    background: var(--danger); /* Красный цвет */
    box-shadow: 
        0 0 0 4px var(--danger),
        inset 4px 0 0 rgba(255,255,255,0.2),
        inset -4px 0 0 rgba(100,0,0,0.3),
        inset 0 4px 0 rgba(255,255,255,0.2),
        inset 0 -4px 0 rgba(100,0,0,0.3);
}

/* Новая анимация для пиксельного эффекта */
@keyframes pixel-pulse {
    0% { 
        box-shadow: 
            0 0 0 0 var(--success),
            inset 4px 0 0 rgba(255,255,255,0.3),
            inset -4px 0 0 rgba(0,100,0,0.3),
            inset 0 4px 0 rgba(255,255,255,0.3),
            inset 0 -4px 0 rgba(0,100,0,0.3);
    }
    70% { 
        box-shadow: 
            0 0 0 10px rgba(50, 205, 50, 0),
            inset 4px 0 0 rgba(255,255,255,0.3),
            inset -4px 0 0 rgba(0,100,0,0.3),
            inset 0 4px 0 rgba(255,255,255,0.3),
            inset 0 -4px 0 rgba(0,100,0,0.3);
    }
    100% { 
        box-shadow: 
            0 0 0 0 rgba(50, 205, 50, 0),
            inset 4px 0 0 rgba(255,255,255,0.3),
            inset -4px 0 0 rgba(0,100,0,0.3),
            inset 0 4px 0 rgba(255,255,255,0.3),
            inset 0 -4px 0 rgba(0,100,0,0.3);
    }
}


.status-text h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.status-text p {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light);
}

.server-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-box {
    background: rgba(33, 33, 53, 0.6);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}

.info-box:hover {
    background: rgba(33, 33, 53, 0.9);
    transform: translateX(5px);
}

.info-box i {
    font-size: 2rem;
    color: var(--primary);
}

.info-box h4 {
    color: var(--text);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.info-box p {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--light);
}

.ip-box {
    position: relative;
    padding-right: 3.5rem;
}

.server-ip {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: var(--secondary);
}

/* Кнопка */
.pixel-button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--pixel-border);
    box-shadow: 0 4px 0 var(--primary-dark);
    transition: all 0.1s;
}

.pixel-button:hover {
    background: var(--primary-dark);
}

.pixel-button:active {
    transform: translateY(-40%);
    box-shadow: 0 2px 0 var(--primary-dark);
}

/* Особенности сервера */
.features-container {
    margin-top: 3rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 1rem;
}

.pixel-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: var(--secondary);
    text-shadow: 3px 3px 0 var(--primary-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 1.5rem;
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    background: rgba(45, 45, 61, 0.9);
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: white;
    border: 2px solid var(--pixel-border);
}

.feature-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text);
    opacity: 0.8;
    line-height: 1.6;
}

/* Футер */
footer {
    margin-top: 3rem;
    padding: 2rem;
    text-align: center;
    background: rgba(42, 42, 72, 0.8);
}

.footer-content p {
    margin-top: 1rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.pixel-social {
    width: 50px;
    height: 50px;
    background: var(--dark);
    border: 3px solid var(--pixel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text);
    transition: all 0.3s;
}

.pixel-social:hover {
    background: var(--primary);
    transform: translateY(-5px);
    color: white;
}

/* Навигация с центрированными вкладками */
.main-nav {
    background: rgba(42, 42, 72, 0.8);
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
    letter-spacing: 0;
}

.main-nav a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

.main-nav li.active a {
    color: var(--primary);
    background: rgba(106, 90, 205, 0.2);
    box-shadow: 
        inset 0 0 0 2px var(--primary),
        inset 0 0 0 4px rgba(0,0,0,0.3);
}

.main-nav .social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.main-nav .social-links a {
    color: var(--text);
    font-size: 1.2rem;
    padding: 0;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.main-nav .social-links a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

/* Игроки онлайн */
.players-online {
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(33, 33, 53, 0.6);
    transition: all 0.3s;
}

.player-card:hover {
    background: rgba(33, 33, 53, 0.9);
    transform: translateY(-3px);
}

.player-avatar img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.player-name {
    font-size: 0.9rem;
    color: var(--text);
}

/* Частицы */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .server-info-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .status-display {
        flex-direction: column;
        text-align: center;
    }

    .main-nav {
        font-size: 0.6rem;
    }
    
    .main-nav a {
        padding: 0.5rem 0.7rem;
    }
}