/* Top Bar Styles */
.top-bar {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--light-color);
    padding: 8px 0;
    position: relative;
    z-index: 1000;
}

.top-bar-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
}

.top-bar .language-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    margin-left: auto;
}

.top-bar .language-switcher .lang-link {
    color: var(--light-color);
    margin: 0 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar .language-switcher .lang-link:hover {
    transform: scale(1.15);
}

.top-bar .language-switcher .lang-link.active::after {
    background-color: var(--accent-color);
}

/* Footer Language Switcher (for other pages) */
.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    padding: 0 1rem;
}

.language-switcher .lang-link {
    display: inline-block;
    margin: 0 5px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease;
    position: relative;
}

.language-switcher .lang-link:hover {
    transform: scale(1.2);
}

.language-switcher .lang-link.active {
    font-weight: bold;
    position: relative;
}

.language-switcher .lang-link.active::after {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color, #e74c3c);
}

/* Mobile language switcher */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    .language-switcher {
        margin: 10px auto;
        padding: 5px 0;
    }
}

/* Footer language switcher */
.invitation-footer .language-switcher {
    margin: 15px auto;
    justify-content: center;
}
