/**
 * Estilos para o widget de seleção de idioma
 * Design limpo e moderno com fundo branco
 */

/* Widget principal */
body .kryzeny-language-widget {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Helvetica Neue", sans-serif;
    transition: all 0.2s ease;
}

/* Posições do widget */
body .kryzeny-language-widget.bottom-left {
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

body .kryzeny-language-widget.bottom-right {
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

body .kryzeny-language-widget.top-left {
    top: 20px;
    left: 20px;
    z-index: 9999;
}

body .kryzeny-language-widget.top-right {
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Botão de alternância */
body .kryzeny-language-widget .kryzeny-language-toggle {
    display: flex;
    align-items: center;
    background-color: #FFFFFF !important;
    color: #333333 !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    outline: none;
    font-size: 14px;
    font-weight: 500;
}

body .kryzeny-language-widget .kryzeny-language-toggle:hover {
    background-color: #F9FAFB !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

body .kryzeny-language-widget .kryzeny-language-toggle img {
    margin-right: 10px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Modal */
body .kryzeny-language-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98) !important;
    z-index: 10000;
    overflow: auto;
}

body .kryzeny-language-modal.active {
    display: block;
}

body .kryzeny-language-modal-content {
    background-color: #FFFFFF !important;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    animation: kryzeny-modal-appear 0.3s ease;
}

@keyframes kryzeny-modal-appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Cabeçalho do modal */
body .kryzeny-language-modal-header {
    display: flex;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    background-color: #FFFFFF !important;
    z-index: 1;
}

body .kryzeny-language-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #111827 !important;
    flex-grow: 1;
}

body .kryzeny-language-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6B7280;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

body .kryzeny-language-close:hover {
    background-color: #F3F4F6;
    color: #111827;
}

/* Campo de pesquisa */
body .kryzeny-language-search {
    padding: 24px 32px;
    background-color: #FFFFFF !important;
    position: sticky;
    top: 73px;
    z-index: 1;
    border-bottom: 1px solid #E5E7EB;
}

body .kryzeny-language-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
    background-color: #F9FAFB !important;
}

body .kryzeny-language-search input:focus {
    border-color: #111827 !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.05);
}

/* Lista de países */
body .kryzeny-language-list {
    padding: 32px;
    background-color: #FFFFFF !important;
}

/* Estilo de grade */
body .kryzeny-language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

body .style-grid .kryzeny-language-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    background-color: #FFFFFF !important;
}

body .style-grid .kryzeny-language-item:hover {
    background-color: #F9FAFB !important;
    border-color: #D1D5DB !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

body .style-grid .kryzeny-language-item img {
    width: 24px;
    height: 18px;
    margin-right: 12px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body .style-grid .kryzeny-language-info {
    flex-grow: 1;
}

body .style-grid .kryzeny-country-name {
    color: #111827 !important;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

body .style-grid .kryzeny-language-name {
    color: #6B7280 !important;
    font-size: 14px;
}

body .style-grid .kryzeny-language-item.active {
    background-color: #F3F4F6 !important;
    border-color: #D1D5DB !important;
}

/* Responsividade */
@media (max-width: 767px) {
    body .kryzeny-language-modal-header,
    body .kryzeny-language-search {
        padding: 16px;
    }
    
    body .kryzeny-language-list {
        padding: 16px;
    }
    
    body .kryzeny-language-grid {
        grid-template-columns: 1fr;
    }
    
    body .kryzeny-language-modal-header h3 {
        font-size: 20px;
    }
    
    body .kryzeny-language-widget.bottom-left,
    body .kryzeny-language-widget.bottom-right {
        bottom: 15px;
    }

    body .kryzeny-language-widget.top-left,
    body .kryzeny-language-widget.top-right {
        top: 15px;
    }

    body .kryzeny-language-widget.bottom-left,
    body .kryzeny-language-widget.top-left {
        left: 15px;
    }

    body .kryzeny-language-widget.bottom-right,
    body .kryzeny-language-widget.top-right {
        right: 15px;
    }

    body .kryzeny-language-toggle {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* Forçar tema claro */
@media (prefers-color-scheme: dark) {
    body .kryzeny-language-toggle,
    body .kryzeny-language-modal,
    body .kryzeny-language-modal-content,
    body .kryzeny-language-modal-header,
    body .kryzeny-language-search input,
    body .style-grid .kryzeny-language-item {
        background-color: #FFFFFF !important;
    }
    
    body .kryzeny-language-toggle,
    body .kryzeny-language-modal-header h3,
    body .style-grid .kryzeny-country-name {
        color: #111827 !important;
    }
    
    body .kryzeny-language-name {
        color: #6B7280 !important;
    }
} 