/**
 * MedGtranslatePro - Modern Design CSS
 * @author Mediacom87
 */

.medgtranslatepro-modern {
    position: relative;
    display: inline-block;
}

.gtranslate-modern-container {
    position: relative;
}

.gtranslate-modern-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gtranslate-modern-trigger:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.gtranslate-modern-panel {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 320px;
    max-height: 450px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 1000;
}

.gtranslate-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: #fff;
}

.gtranslate-modern-title {
    font-weight: 600;
    font-size: 16px;
}

.gtranslate-modern-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
    line-height: 1;
}

.gtranslate-modern-close:hover {
    opacity: 1;
}

.gtranslate-modern-search {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.gtranslate-modern-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.gtranslate-modern-search-input:focus {
    outline: none;
    border-color: currentColor;
}

.gtranslate-modern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 12px;
    max-height: 280px;
    overflow-y: auto;
}

.gtranslate-modern-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.gtranslate-modern-item:hover,
.gtranslate-modern-item.active {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .gtranslate-modern-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        border-radius: 16px 16px 0 0;
    }

    .gtranslate-modern-grid {
        grid-template-columns: 1fr;
    }
}
