/* Language Suggestion Banner
 * Shown once to users whose browser language matches a supported translation
 * but who haven't set an explicit language preference yet.
 */

.lang-banner {
    display: none; /* JS shows it when appropriate */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #1f2937;
    color: #f3f4f6;
    padding: 12px 20px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    animation: langBannerSlideUp 0.3s ease-out;
}

@keyframes langBannerSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lang-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.lang-banner-flag {
    font-size: 20px;
    line-height: 1;
}

.lang-banner-text {
    color: #e5e7eb;
}

.lang-banner-switch {
    background: #4C7CF5;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.lang-banner-switch:hover {
    background: #3b6ad6;
}

.lang-banner-stay {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #4b5563;
    padding: 6px 16px;
    border-radius: 6px;
    margin-left: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.lang-banner-stay:hover {
    color: #e5e7eb;
    border-color: #6b7280;
}

.lang-banner-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    padding: 0 0 0 4px;
    line-height: 1;
    transition: color 0.15s;
}

.lang-banner-close:hover {
    color: #e5e7eb;
}

/* Mobile: flag+text inline, buttons stacked below */
@media (max-width: 576px) {
    .lang-banner {
        padding: 14px 16px;
    }

    .lang-banner-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        text-align: center;
    }

    .lang-banner-flag,
    .lang-banner-text {
        display: inline;
    }

    .lang-banner-actions {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .lang-banner-switch,
    .lang-banner-stay {
        flex: 1;
        margin-left: 0;
    }

    .lang-banner-close {
        position: absolute;
        top: 8px;
        right: 12px;
    }
}
