/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --background: hsl(0, 0%, 4%);
    --foreground: hsl(0, 0%, 100%);
    --card: hsl(0, 0%, 7%);
    --border: hsl(0, 0%, 14%);
    --muted-foreground: hsl(0, 0%, 58%);
    --discord: hsl(235, 85%, 64%);
    --telegram: hsl(199, 82%, 55%);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Unbounded', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading state */
.loading {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
}

.loading.hidden {
    display: none;
}

.loading-text {
    color: var(--muted-foreground);
    font-size: 1rem;
}

/* App container */
.app {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    padding: 1rem;
}

.app.hidden {
    display: none;
}

/* Плавное появление контента при загрузке (только начальная анимация) */
.app {
    animation: fadeIn 0.8s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Заголовок появляется чуть иначе */
.header {
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card */
.card {
    width: 100%;
    max-width: 56rem; /* 896px - хватит для 3 иконок */
    padding: 4rem; /* 64px */
    background-color: var(--card);
    border: 1px solid rgba(var(--border), 0.5);
    border-radius: 0.75rem;
    backdrop-filter: blur(8px);
    transition: all 0.5s ease;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem; /* 48px */
}

/* Header */
.header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* 12px */
}

.title {
    font-size: 6rem; /* 60px */
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    line-height: 1;
}

.subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--muted-foreground);
    font-family: 'Unbounded', sans-serif;
}

/* Socials container */
.socials-container {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 16px */
    width: 100%;
}

/* Section separator */
.section-separator {
    display: flex;
    align-items: center;
    margin: 1.5rem 0 1rem 0;
    position: relative;
}

.section-separator::before,
.section-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--border) 50%,
        transparent 100%);
}

.separator-title {
    padding: 0 1rem;
    font-size: 0.75rem; /* 12px */
    font-weight: 600;
    font-family: 'Unbounded', sans-serif;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Первый разделитель - без верхнего отступа */
.section-separator:first-child {
    margin-top: 0;
}

/* Social link */
.social-link {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem; /* 24px */
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
    background-color: #202020;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

/* Glow effect */
.social-glow {
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    filter: blur(24px);
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.social-link:hover .social-glow {
    opacity: 0.4;
}

.social-glow.discord {
    background-color: hsla(235, 85%, 64%, 0.3);
}

.social-glow.telegram {
    background-color: hsla(199, 82%, 55%, 0.3);
}

.social-glow.twitch {
    background-color: hsla(270, 100%, 65%, 0.3);
}

.social-glow.red {
    background-color: hsla(0, 100%, 65%, 0.3);
}

/* Icon container */
.icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem; /* 64px */
    height: 4rem; /* 64px */
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background-color: #1a1a1a;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Icon container gradients */
.icon-container.discord {
    background: linear-gradient(135deg,
        hsla(235, 85%, 64%, 0.15) 0%,
        hsla(235, 85%, 50%, 0.08) 50%,
        #1a1a1a 100%);
    border-color: hsla(235, 85%, 64%, 0.2);
}

.icon-container.red {
    background: linear-gradient(135deg,
        hsla(0, 82%, 55%, 0.15) 0%,
        hsla(0, 82%, 45%, 0.08) 50%,
        #1a1a1a 100%);
    border-color: hsla(199, 82%, 55%, 0.2);
}

.icon-container.telegram {
    background: linear-gradient(135deg,
        hsla(199, 82%, 55%, 0.15) 0%,
        hsla(199, 82%, 45%, 0.08) 50%,
        #1a1a1a 100%);
    border-color: hsla(199, 82%, 55%, 0.2);
}

.social-link:hover .icon-container.discord {
    background: linear-gradient(135deg,
        hsla(235, 85%, 64%, 0.25) 0%,
        hsla(235, 85%, 50%, 0.15) 50%,
        #1a1a1a 100%);
    border-color: hsla(235, 85%, 64%, 0.35);
}

.social-link:hover .icon-container.telegram {
    background: linear-gradient(135deg,
        hsla(199, 82%, 55%, 0.25) 0%,
        hsla(199, 82%, 45%, 0.15) 50%,
        #1a1a1a 100%);
    border-color: hsla(199, 82%, 55%, 0.35);
}

.icon-container.twitch {
    background: linear-gradient(135deg,
        hsla(270, 100%, 65%, 0.15) 0%,
        hsla(270, 100%, 55%, 0.08) 50%,
        #1a1a1a 100%);
    border-color: hsla(270, 100%, 65%, 0.2);
}

.social-link:hover .icon-container.twitch {
    background: linear-gradient(135deg,
        hsla(270, 100%, 65%, 0.25) 0%,
        hsla(270, 100%, 55%, 0.15) 50%,
        #1a1a1a 100%);
    border-color: hsla(270, 100%, 65%, 0.35);
}

.icon-container svg {
    width: 2rem; /* 32px */
    height: 2rem; /* 32px */
    fill: white;
    transition: fill 0.3s ease;
}

/* Social text container */
.social-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

/* Social name */
.social-name {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    font-family: 'Unbounded', sans-serif;
    color: white;
    line-height: 1.2;
}

/* Social description */
.social-description {
    font-size: 0.875rem; /* 14px */
    font-weight: 400;
    font-family: 'Unbounded', sans-serif;
    color: var(--muted-foreground);
    line-height: 1.4;
}

/* Live/Offline badge */
.live-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.625rem; /* 10px */
    font-weight: 700;
    font-family: 'Unbounded', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

/* Live badge - красный с анимацией */
.live-badge.live {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
    animation: pulse-badge-live 2s infinite;
}

/* Offline badge - серый без анимации */
.live-badge.offline {
    background: linear-gradient(135deg, #555555 0%, #3a3a3a 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.live-indicator {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

.offline-indicator {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

@keyframes pulse-badge-live {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 2px 16px rgba(255, 0, 0, 0.7);
    }
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.9);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        padding: 2rem;
        max-width: 100%;
    }

    .title {
        font-size: 4rem; /* 40px */
    }

    .subtitle {
        font-size: 1rem; /* 16px */
    }

    .social-link {
        padding: 1.25rem;
        gap: 1rem;
    }

    .icon-container {
        width: 3.5rem;
        height: 3.5rem;
    }

    .icon-container svg {
        width: 1.75rem;
        height: 1.75rem;
    }

    .social-name {
        font-size: 1rem;
    }

    .social-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1.5rem;
    }

    .title {
        font-size: 4rem; /* 32px */
    }

    .subtitle {
        font-size: 0.875rem; /* 14px */
    }

    .social-link {
        padding: 1rem;
        gap: 0.875rem;
    }

    .icon-container {
        width: 3rem;
        height: 3rem;
    }

    .icon-container svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .social-name {
        font-size: 0.875rem;
    }

    .social-description {
        font-size: 0.6875rem;
    }
}
