/* Google Translate Custom Nigerian Switcher */
:root {
    --gt-green: #008751;
    --gt-green-dark: #005a36;
    --gt-green-light: #00b36b;
    --gt-bg-glass: rgba(255, 255, 255, 0.98);
    --gt-border: rgba(0, 135, 81, 0.2);
    --gt-shadow: 0 14px 40px rgba(0, 0, 0, 0.2), 0 4px 14px rgba(0, 135, 81, 0.15);
    --gt-radius: 16px;
    --gt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 100% Completely Hide Google Translate Top Banner & Fix Body Offset */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-ftab-frame,
#goog-gt-vt,
.goog-te-spinner-pos {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html, body {
    top: 0px !important;
    position: static !important;
    margin-top: 0px !important;
    padding-top: 0px !important;
}

.goog-tooltip {
    display: none !important;
}
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Off-screen active Google Translate Container */
#google_translate_element {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Hide login name / admin author details from front end */
.author,
.byline,
.post-author,
.entry-author,
.posted-by,
.logged-in-as a[href*="profile.php"],
#wp-admin-bar-my-account .display-name {
    display: none !important;
}

/* Floating Trigger Wrapper */
#lingo-widget-wrapper {
    position: fixed;
    z-index: 999999;
    font-family: var(--gt-font);
}

.lingo-pos-bottom-right { bottom: 24px; right: 24px; }
.lingo-pos-bottom-left { bottom: 24px; left: 24px; }
.lingo-pos-top-right { top: 24px; right: 24px; }
.lingo-pos-top-left { top: 24px; left: 24px; }

/* Floating Button - Never Translated */
#lingo-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gt-green) 0%, var(--gt-green-dark) 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(0, 135, 81, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    outline: none;
}

#lingo-trigger-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 135, 81, 0.45);
    background: linear-gradient(135deg, var(--gt-green-light) 0%, var(--gt-green) 100%);
}

.lingo-pulse-ring {
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: 50px;
    border: 2px solid var(--gt-green-light);
    animation: gt-pulse 2.2s infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes gt-pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0; }
    100% { transform: scale(1.15); opacity: 0; }
}

.lingo-flag-pill {
    font-size: 18px;
    line-height: 1;
}

.lingo-active-code {
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
}

.lingo-chevron {
    font-size: 11px;
    opacity: 0.8;
    transition: transform 0.25s ease;
}

#lingo-trigger-btn[aria-expanded="true"] .lingo-chevron {
    transform: rotate(180deg);
}

/* Modal Flyout */
.lingo-modal-container {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: var(--gt-bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--gt-border);
    border-radius: var(--gt-radius);
    box-shadow: var(--gt-shadow);
    overflow: hidden;
    flex-direction: column;
    animation: gt-slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000000;
}

.lingo-pos-bottom-left .lingo-modal-container { right: auto; left: 0; }
.lingo-pos-top-right .lingo-modal-container { bottom: auto; top: 60px; }
.lingo-pos-top-left .lingo-modal-container { bottom: auto; top: 60px; right: auto; left: 0; }

.lingo-modal-container.active {
    display: flex;
}

@keyframes gt-slideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Header */
.lingo-modal-header {
    background: linear-gradient(135deg, var(--gt-green) 0%, var(--gt-green-dark) 100%);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lingo-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lingo-header-title .lingo-flag-icon {
    font-size: 26px;
}

.lingo-header-title h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}

.lingo-header-title p {
    margin: 2px 0 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
}

#lingo-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#lingo-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Language List */
.lingo-lang-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    max-height: 320px;
}

.lingo-lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.lingo-lang-item:hover {
    background: #f0fdf4;
    border-color: rgba(0, 135, 81, 0.2);
    transform: translateX(3px);
}

.lingo-lang-item.active {
    background: #e6f7ef;
    border-color: var(--gt-green);
}

.lingo-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lingo-item-badge {
    background: #f1f5f9;
    color: var(--gt-green-dark);
    font-weight: 800;
    font-size: 10px;
    padding: 4px 7px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.lingo-lang-item.active .lingo-item-badge {
    background: var(--gt-green);
    color: #ffffff;
    border-color: var(--gt-green);
}

.lingo-item-info {
    display: flex;
    flex-direction: column;
}

.lingo-item-native {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.lingo-item-name {
    font-size: 11px;
    color: #64748b;
}

.lingo-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
}

.lingo-greeting-preview {
    font-size: 11px;
    font-style: italic;
    color: #059669;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lingo-check-icon {
    display: none;
    color: var(--gt-green);
    font-weight: 900;
    font-size: 14px;
}

.lingo-lang-item.active .lingo-check-icon {
    display: inline-block;
}

/* Modal Footer */
.lingo-modal-footer {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
}

.lingo-modal-footer a {
    color: var(--gt-green);
    text-decoration: none;
    font-weight: 600;
}
.lingo-modal-footer a:hover {
    text-decoration: underline;
}

/* Shortcode Inline Switcher */
.lingo-shortcode-switcher {
    display: inline-flex;
    align-items: center;
    margin: 8px 0;
}

.lingo-inline-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--gt-border);
    border-radius: 30px;
    padding: 4px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lingo-inline-flag {
    font-size: 16px;
}

.lingo-inline-dropdown {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    cursor: pointer;
}
