/* Основные стили */
:root {
    --transition-duration: 0.4s;
    --border-radius: 12px;
    --shadow-intensity: 0.25;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition:
        background-color var(--transition-duration),
        color var(--transition-duration),
        transform var(--transition-duration);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-container {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: brightness(0.7);
}

.background-image.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.6) 0%,
        transparent 100%
    );
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    backdrop-filter: blur(15px);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.kwd {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.name {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    opacity: 0.1;
    transition: opacity var(--transition-duration);
}

.nav-link:hover::before {
    opacity: 0.2;
}

.icon {
    font-size: 1.2em;
}

.text {
    font-weight: 500;
}

/* Основной контент */
.content {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero {
    max-width: 800px;
    text-align: center;
}

.main-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.subtitle {
    font-size: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }
}
.discord-link {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: inherit !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.discord-icon {
    height: 1em; /* Размер как у текста */
    width: auto;
    vertical-align: middle;
    filter:
        brightness(0.8)
        drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.discord-text {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
}

.discord-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

[data-theme="dark"] .discord-icon {
    filter:
        brightness(1.2)
        drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Адаптивность для мобилок */
@media (max-width: 768px) {
    .discord-link {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }

    .discord-icon {
        height: 40px;
    }
}

/* Стили для IP-адреса */
.ip-copy {
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.ip-copy:hover {
    color: var(--accent-color);
}

.ip-address {
    font-weight: 600;
    text-decoration: underline dotted;
}

.copy-notice {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 8px;
}

/* Анимация уведомления */
.copy-flash {
    position: absolute;
    background: var(--background-color);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 15px;
    box-shadow: 0 3px 10px var(--shadow-color);
    border: 1px solid var(--border-color);
    font-size: 0.9em;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: copyFloat 1s ease-out;
}

@keyframes copyFloat {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-25px); }
}