#footer {
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 3rem;
}

#footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
}

#footer-social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

#footer-content .social-icon {
    height: 2.8rem;
    width: 2.8rem;
}

#footer-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

#footer-link-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--primary);
    width: 80%;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    white-space: nowrap;
}

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

#open-source-statement {
    text-align: center;
}

#open-source-statement p {
    color: var(--white);
    font-size: 1rem;
    margin: 0;
    font-style: italic;
}

#license-link {
    color: var(--primary);
    text-decoration: none;
}

#license-link:hover {
    color: var(--primary-dark);
}

#footer-badge-container {
    flex: 0 0 auto;
}

#codeberg-badge img {
    height: 4rem;
    transition: opacity 0.3s ease;
}

#codeberg-badge:hover img {
    opacity: 0.8;
}

@media (max-width: 1026px) {
    #footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    #footer-link-container {
        flex-direction: column;
        gap: 1rem;
    }

    #sfooter-social-links {
        justify-content: center;
    }

    .footer-link {
        font-size: 1.5rem;
    }

    #open-source-statement p {
        font-size: 1.3rem;
    }
}
