@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans', 'sans-serif';
    font-weight: 400;
    font-size: 22px;
    color: #ffffff;
    animation: pageLoad 1s ease;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

:root {
    --bg: #224f7b;
    --bg-card: #111114;
    --bg-elevated: #21374f;
    --border: rgba(255, 255, 255, 0.06);
    --text: #ffffff;
    --text-muted: #8b8b95;
    --primary: #E74C3C;
    --primary-dark: #c0392b;
    --primary-light: #ff6b5b;
    --primary-glow: rgba(231, 76, 60, 0.15);
    --discord: #5865F2;
    --success: #22c55e;
    --error: #ef4444;
    --radius: 12px;
    --radius-lg: 20px;
}

.wrapper {
    background: -webkit-linear-gradient(45deg, rgb(11, 18, 24), rgb(34, 79, 123) 79%);
    background: -moz-linear-gradient(45deg, rgb(11, 18, 24), rgb(34, 79, 123) 79%);
    background: linear-gradient(45deg, rgb(11, 18, 24), rgb(34, 79, 123) 79%);
    width: 100%;
    overflow-x: hidden;
    padding-top: 50px;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 25px;
}

header {
    padding: 50px 0;
    animation: slideDown 0.8s ease;
}

header .logo,
footer .blocks .logo {
    text-transform: uppercase;
    font-size: 29px;
    font-weight: 800px;
}

header nav {
    float: right;
    width: 50%;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
}

header nav ul li {
    display: inline-block;
}

header nav ul li a {
    color: #ffffff;
}

header nav ul li:not(.active):not(.btn) a:hover {
    border-bottom: 5px solid #3583d2;
}

header nav ul li.btn a {
    background: #3583d2;
    padding: 9px 17px;
    border-radius: 5px;
    transition: all 500ms ease;
}

header nav ul li.active::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: #3583d2;
    border-radius: 10px;
    position: relative;
    top: 5px;
    left: 3px;
}

header nav ul li.btn a:hover {
    background: #1a63ac;
}

.hero {
    padding-bottom: 100px;
    position: relative;
    animation: fadeIn 1s ease 0.2s both;
}

.hero--info {
    width: 600px;
    padding-top: 40px;
}

.hero--info h2 {
    color: #3583d2;
    font-size: 90px;
    font-weight: 600;
}

.hero--info h1 {
    font-size: 50px;
    font-weight: 500;
}

.hero--info p {
    font-weight: 400;
    line-height: 140%;
    margin: 20px 0;
}

.hero--info .btn,
.hero-info .info .btn {
    background: #3583d2;
    border-radius: 40px;
    padding: 20px 35px;
    border: 0;
    transition: all 500ms ease;
    font-size: 22px;
    font-weight: 600;
}

.hero--info .btn:hover,
.hero-info .info .btn:hover {
    cursor: pointer;
    transform: scale(1.15);
}

.hero img {
    position: absolute;
    top: 50px;
    right: -50px;
    width: 800px;
    height: 800px;
}


/* info.html */

.hero-info {
    position: relative;
}

.hero-info img {
    position: absolute;
    right: -400px;
    top: 0;
    width: 1000px;
    height: 600px;
}

.hero-info .info {
    width: 500px;
    padding: 200px 0;
}

.hero-info .info h1 {
    margin-bottom: 15px;
    font-size: 30px;
}

.hero-info .info .btn {
    margin-top: 20px;
}

/* server info */

.serverinfo .serverinfo-title {
    font-size: 50px;
    text-align: center; 
     margin-bottom: 60px;
}

.parent-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.server-showcase {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.servers-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.servers-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.server-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.server-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.5),
        0 0 25px rgba(53,131,210,0.5);
}

/* Модификаторы для разных серверов */
.server-card--main {
    color: white;
}

.server-card--prism {
    color: white;

}

/* Старый класс для обратной совместимости */
.server-main {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.server-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.server-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
}

.status-online .status-dot {
    background: #22c55e;
    animation: onlinePulse 1.5s infinite;
}

@keyframes onlinePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34,197,94,0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34,197,94,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34,197,94,0);
    }
}

.status-offline .status-dot {
    background: var(--error);
}

.status-online { color: var(--success); }
.status-offline { color: var(--error); }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.8); }
}

.copy-ip-btn {
    background: #3583d2;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.copy-ip-btn:hover {
    background: #1a63ac;
    transform: scale(1.05);
}

.server-badge-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.15); /* Лёгкий красный фон для контраста */
    border: 1px solid var(--error); /* Используем красную переменную */
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3); /* Небольшое свечение */
    border-radius: 6px;
    color: var(--error); /* Чтобы текст тоже был красный, либо оставить white */
}

.server-card-content,
.server-main-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.server-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.server-desc {
    color: white;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.server-connection {
    display: flex;
    gap: 20px;
}

.connection-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: white;
    padding: 10px 16px;
    background: var(--bg);
    border-radius: 8px;
}

.connection-item i {
    color: white;
}

.server-progress-wrapper {
    margin-bottom: 24px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgb(207, 207, 207);
    margin-bottom: 8px;
}

.server-progress {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg,#3583d2,#4aa3ff);
    border-radius: 4px;
    transition: width 1s ease;
}

.server-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-box {
    text-align: center;
    padding: 16px;
    background: var(--bg);
    border-radius: 10px;
}

.stat-box-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-box-label {
    font-size: 1.1rem;
    color: #000;
    margin-top: 4px;
}

.server-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-top: 1px solid var(--border);
}

/* Кнопка JOIN */

.join-btn {
    background: linear-gradient(135deg,#3583d2,#4aa3ff);
    padding: 12px 24px;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.25s ease;
}

.join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(53,131,210,0.5);
}

/* Кнопка COPY */

.copy-ip-btn {
    position: relative;
    background: #1a1a1a;
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.copy-ip-btn:hover {
    background: #2a2a2a;
}

/* Уведомление */

.copy-notify {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #22c55e;
    color: white;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}

.copy-notify.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}



/* anim */

/* Класс для анимируемых элементов */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

/* Когда элемент становится видимым */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Разные варианты анимации */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* footer */

footer {
    background: #000;
    padding: 50px 0;
    color: white;
}

footer .blocks {
    display: flex;
    justify-content: space-between;
}

footer .blocks p {
    width: 300px;
    margin: 15px 0;
}

footer .blocks h4 {
    font-weight: 600;
    font-size: 25px;
}

footer .blocks ul {
    list-style: none;
}

footer .blocks ul li {
    margin-top: 10px;
    opacity: 0.8;
    font-size: 15px;
}

footer .blocks ul li a {
    color: white;
}

footer hr {
    margin: 30px 0;
    border: 0;
    height: 0.6px;
    background: #ccc;
}

footer > p {
    text-align: center;
    font-size: 14px;
}