/* 
   Project: Organic Minimalist
*/

/* Ensure the logo is separated from the nav links */
.logo {
    margin-right: auto;
    align-items: center;
    min-width: 150px;
}

.logo img {
    height: 40px;    /* Control the logo size here */
    width: auto;     /* Maintain proportions */
    display: block;
}

/* --- Flag Stack Fallback --- */
.flag-container {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--line-muted); /* Earthy placeholder circle */
    border-radius: 50%;
    overflow: hidden;
}

/* The Emoji sits behind the image as a fallback */
.flag-container::before {
    content: attr(data-emoji);
    position: absolute;
    font-size: 1.5rem;
    z-index: 1;
}

/* The actual Flag Image */
.flag-icon {
    position: relative;
    z-index: 2; /* Sits on top of the emoji */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.lang-switcher {
    display: flex;
    gap: 1rem;
    min-width: 150px;
    justify-content: flex-end;
}

.lang-link {
    cursor: pointer;
    /* FULL button reset */
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    transition: transform 0.3s ease;
}

.lang-link.active .flag-container {
    border: 2px solid var(--tortoise);
    transform: scale(1.1);
}

.lang-link:hover {
    transform: scale(1.15);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .logo, .lang-switcher {
        justify-content: center;
        min-width: auto;
    }
}