/* style.css */
:root {
    --primary: #433878;
    --secondary: #7E60BF;
    --accent: #E4B1F0;
    --light: #FFE1FF;
    --dark: #2A2540;
    --text: #f0f0f0;
    --text-dark: #333;
    --shadow: rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background-color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

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

.section {
    padding: 80px 0;
}

.section-dark {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin: 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--light);
    text-shadow: 0 0 10px rgba(228, 177, 240, 0.5);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: var(--accent);
}

/* Header */
.header {
    background-color: rgba(67, 56, 120, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--light);
}

.logo i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.nav-menu a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: var(--light);
    margin-bottom: 4px;
    border-radius: 5px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.modrinth.com/data/cached_images/623ffb4917b3b58424395bdee2cb172c2c549290.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

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

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 10px;
    color: var(--light);
    text-shadow: 0 0 15px rgba(228, 177, 240, 0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--accent);
}

.server-info {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.online-status, .ip-address, .players-online {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-indicator.active {
    background-color: #4CAF50;
    box-shadow: 0 0 10px #4CAF50;
}

.ip-address {
    cursor: pointer;
    transition: color 0.3s;
    padding: 8px 15px;
    background-color: rgba(126, 96, 191, 0.3);
    border-radius: 5px;
}

.ip-address:hover {
    color: var(--accent);
}

.ip-address i {
    margin-left: 10px;
    font-size: 1.2rem;
}

.players-online i {
    margin-right: 10px;
    color: var(--accent);
    font-size: 1.2rem;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--light);
}

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-features {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-card {
    flex: 1;
    min-width: 200px;
    background-color: rgba(126, 96, 191, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(126, 96, 191, 0.3);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background-color: rgba(67, 56, 120, 0.5);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(126, 96, 191, 0.3);
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--accent);
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Shop Section */
.shop-container {
    margin-top: 50px;
}

.custom-amount, .predefined-packages {
    background-color: rgba(67, 56, 120, 0.3);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(126, 96, 191, 0.3);
}

.custom-amount h3, .predefined-packages h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--light);
}

.custom-amount p {
    margin-bottom: 30px;
    color: var(--accent);
}

.amount-selector {
    max-width: 600px;
    margin: 0 auto;
}

.amount-display {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

#amount-slider {
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    outline: none;
    border-radius: 10px;
    margin-bottom: 10px;
}

#amount-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid var(--light);
}

.amount-range {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    color: var(--light);
}

.price-display {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--light);
    font-family: 'Orbitron', sans-serif;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.package-card {
    background-color: rgba(67, 56, 120, 0.5);
    border-radius: 10px;
    padding: 30px;
    position: relative;
    transition: all 0.3s;
    border: 1px solid rgba(126, 96, 191, 0.3);
}

.package-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.package-card.popular {
    border: 2px solid var(--accent);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.package-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(126, 96, 191, 0.3);
}

.package-header h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.package-amount {
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

.package-price {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 25px;
    color: var(--light);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.old-price {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 10px;
}

.package-features {
    list-style: none;
    margin-bottom: 30px;
}

.package-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.package-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.package-card .btn-primary, .package-card .btn-secondary {
    width: 100%;
    text-align: center;
}

/* Connection Steps */
.connection-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    background-color: rgba(67, 56, 120, 0.5);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(126, 96, 191, 0.3);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.step h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Footer */
.footer {
    background-color: var(--primary);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-info, .footer-links, .footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent);
    color: var(--dark);
    transform: translateY(-5px);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary);
    color: var(--light);
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 10000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background-color: var(--primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .section {
        padding: 60px 0;
    }
    
    .package-card.popular {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .server-info {
        flex-direction: column;
        gap: 15px;
    }
}

.status-indicator.inactive {
    background-color: #f44336 !important;
    box-shadow: 0 0 10px #f44336 !important;
}

/* Дополнительные улучшения для отображения онлайна */

.players-online {
    position: relative;
}

/* Анимация для обновления онлайна */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.players-online.updating {
    animation: pulse 0.5s ease-in-out;
}

/* Стиль для ошибки соединения */
.server-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Прогресс-бар для заполнения онлайна */
.online-progress {
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.online-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 3px;
    transition: width 0.5s ease;
}