/* Gemini Auto Translate — Language Bar */

#gat-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #1a1a2e;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

/* Button on the LEFT */
#gat-bar .gat-reset {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #90caf9;
    text-decoration: none;
    border: 1px solid #90caf9;
    padding: 4px 12px;
    border-radius: 4px;
    line-height: 1.4;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

#gat-bar .gat-reset:hover {
    background: #90caf9;
    color: #1a1a2e;
}

/* "View in English" — primary line */
#gat-bar .gat-reset-en {
    font-weight: 600;
    font-size: 13px;
}

/* Native language translation — secondary line */
#gat-bar .gat-reset-native {
    font-size: 11px;
    opacity: 0.8;
}

#gat-bar .gat-icon {
    font-size: 16px;
}

#gat-bar .gat-label {
    /* label sits to the right of the icon, fills remaining space */
}

/* ── Translating overlay (shown only during manual switch) ──────────── */

#gat-translating-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gat-fade-in 0.15s ease;
}

@keyframes gat-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.gat-translating-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #1a1a2e;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.gat-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gat-spin 0.7s linear infinite;
}

@keyframes gat-spin {
    to { transform: rotate(360deg); }
}
