
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    margin-top: auto;
    padding: 2rem 0 1.1rem;
    width: 100%;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.social-section {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.social-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.social-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--bg-tertiary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background-color: var(--bg-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.social-link:focus {
    outline: 2px solid var(--text-hover);
    outline-offset: 2px;
}

.social-link:active {
    transform: translateY(-1px);
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    object-fit: contain;
}

/* Специфичные стили для каждой социальной сети */
.social-link.discord .social-icon,
.social-link.youtube .social-icon,
.social-link.telegram .social-icon,
.social-link.modrinth .social-icon,
.social-link.boosty .social-icon,
.social-link.namemc .social-icon {
    filter: brightness(0) invert(1);
}

[data-theme="light"] .social-link.discord .social-icon,
[data-theme="light"] .social-link.youtube .social-icon,
[data-theme="light"] .social-link.telegram .social-icon,
[data-theme="light"] .social-link.modrinth .social-icon,
[data-theme="light"] .social-link.boosty .social-icon,
[data-theme="light"] .social-link.namemc .social-icon {
    filter: brightness(0) invert(0);
}

.social-link.discord:hover {
    background-color: #5865f2;
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.social-link.youtube:hover {
    background-color: #ff0000;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.social-link.telegram:hover {
    background-color: #0088cc;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
}

.social-link.modrinth:hover {
    background-color: #00af5c;
    box-shadow: 0 8px 25px rgba(0, 175, 92, 0.3);
}

.social-link.boosty:hover {
    background-color: #f15f2a;
    box-shadow: 0 8px 25px rgba(241, 95, 42, 0.3);
}

.social-link.namemc:hover {
    background-color: #4a90e2;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-primary);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 0.25rem 0;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-hover);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--text-hover);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link:focus {
    outline: 2px solid var(--text-hover);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.5rem;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .social-list {
        gap: 1.2rem;
        max-width: 100%;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .social-icon {
        width: 22px;
        height: 22px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding-top: 0.8rem;
    }

    .footer-links {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

    .footer-container {
        padding: 0 0.75rem;
    }

    .footer-content {
        margin-bottom: 1.5rem;
    }

    .social-section {
        margin-bottom: 1rem;
    }

    .social-list {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .footer-bottom {
        gap: 0.5rem;
        padding-top: 1.2rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.2rem;
    }

    .footer-link {
        font-size: 0.85rem;
        padding: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .social-list {
        gap: 0.8rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-icon {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 1400px) {
    .footer-container {
        max-width: 1400px;
    }

    .social-link {
        width: 52px;
        height: 52px;
    }

    .social-icon {
        width: 26px;
        height: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .social-item,
    .social-link,
    .social-icon,
    .footer-link {
        transition: none;
    }

    .social-link::before {
        display: none;
    }

    .footer-link::after {
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .footer {
        border-top: 2px solid var(--text-hover);
    }

    .footer-bottom {
        border-top: 2px solid var(--text-hover);
    }

    .social-link {
        border: 1px solid var(--text-hover);
    }
}
