/* ============================================================
   Google Translate Widget - Custom Styles
   ============================================================ */

/* --- Floating Translate Button --- */
.gt-translate-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gt-translate-trigger {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #4285f4;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gt-translate-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.6);
}

/* --- Dropdown Panel --- */
.gt-translate-panel {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 280px;
    max-height: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 10000;
}

.gt-translate-panel.show {
    display: block;
    animation: gtSlideUp 0.25s ease;
}

@keyframes gtSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gt-panel-header {
    padding: 12px 16px;
    background: #4285f4;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gt-panel-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    opacity: 0.8;
}

.gt-panel-close:hover {
    opacity: 1;
}

.gt-panel-search {
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.gt-panel-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.gt-panel-search input:focus {
    border-color: #4285f4;
}

.gt-lang-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 4px 0;
}

.gt-lang-list::-webkit-scrollbar {
    width: 4px;
}

.gt-lang-list::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

.gt-lang-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gt-lang-item:hover {
    background: #f0f4ff;
}

.gt-lang-item.active {
    background: #e8f0fe;
    color: #4285f4;
    font-weight: 600;
}

.gt-lang-flag {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.gt-lang-native {
    color: #888;
    font-size: 11px;
    margin-left: auto;
}

.gt-panel-actions {
    padding: 8px 12px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
}

.gt-panel-actions button {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
}

.gt-panel-actions button:hover {
    background: #f5f5f5;
}

.gt-panel-actions button.primary {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
}

.gt-panel-actions button.primary:hover {
    background: #3367d6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .gt-translate-float {
        bottom: 16px;
        right: 16px;
    }

    .gt-translate-panel {
        width: 260px;
        right: -8px;
    }
}
